Page 1 of 1

Use imagemagick on a image blob

Posted: 2009-04-01T08:08:05-07:00
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