ajay1kumar1

Events happening in the community are now at Drupal community events on www.drupal.org.
ajay1kumar1's picture

imagemagick with drupal 6.17

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
Subscribe with RSS Syndicate content