This is a SOC imagemagick group. DIscussions related to the Imagemagick integration will be held here
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 2 weeks to go; what's your status?
We should be seeing a mostly finished product by now. Please report on your status.
Read moreImagemagick Api calls
Single Function call:
<?php
function image_imagemagick2_resize($source,$dest,$width,$height){
$convobj=new stdClass();
$convobj->source=$source;
$convobj->dest=$dest;
$convobj->functioncall='resize';
$convobj->params=array('width'=>$width,'height'=>$height);
return image_imagemagick2_convert($convobj);
}
?>Multiple functions call:
<?php
function image_imagemagick2_resize_and_flip($source,$dest,$width,$height){
$convobj=new stdClass();
$convob->multiple = TRUE;
$convobj->source=$source;
$convobj->dest=$dest;
$convobj->functioncall=array('resize','flip');
Conjuring API
ImageMagick integration for Drupal
from http://drupal.org/node/61133
- Become familiar with the following items: Imagemagick, File API, Image API , Form API
- Identify x image manipulation actions that could be automated.
- Identify what processes are required, and how to accomplish them using ImageMagick.
- Develop functions for each of the operations, clearly documenting their use and parameters.
- Develop a hook that allows a developer to define 'effects', by specifying a series of operations
to be called on an image, and a set of parameters.
Imagemagick Project
Project intial code released.
Code contains:
imagemagick2.inc (contains the library wrapper of imagemagick)
--> integrated with image.module (Another Image Handling toolkit)
Link to the project: http://drupal.org/project/imagemagick
Read moreGreat to see a group!
Could you also pleas provide links to any external resources related to this project, such as the Project page on drupal.org, and any blog or wiki material that you may have written elsewhere? Thanks!
Read more


