Use imagemagick on a image blob

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
mdrattitude

Use imagemagick on a image blob

Post by mdrattitude »

Hi,

I store my image in my database as a blob image.
So to use it, i have to create it with the functions : imagecreatefromstring(), imagecreatetruecolor() and imagecopyresampled()

with the correct header i got the image displayed.

I would like to know how i could apply some features of imagemagick on this image.

I tried something like :

Code: Select all

exec('convert.exe '.$source.' image.png');
where $source contain the blob image but it seems to not work.

Anyone has the same problem or could help me ?

Thanks
Clement
Post Reply