imagemagick with drupal 6.17
Posted by ajay1kumar1 on July 2, 2010 at 10:52am
i made a separate module for add my additional process.
<?php
// Hook into the convert PDF to images and save it in database.
function convert_nodeapi($node, $op){ //echo $node->type;die;
if( ($op == 'insert' || $op == 'update') && $node->type == 'magazine'){
// echo "
"; print_r($node->field_pdf[0]);echo "
";echo $node->nid;
$fid = $node->field_pdf[0]['fid']; // Source file id
$uid = $node->field_pdf[0]['uid']; // user id
$nid = $node->nid; // node id
$cdir = "sites/default/files/nodes/".$nid."/"; // current directory
Read more 