PDF BLOB to image BLOB
Posted: 2010-01-13T05:22:37-07:00
Hi !
I'm having issues when trying to convert a PDF blob to an image BLOB.
What I do is :
Create magick wand
set wand format to 'PDF'
set wand resolution to 72 x 72
read image from blob
thumbnailimage
set image format to 'JPG'
write image to BLOB
Resulting blob is 0 bytes long.
If I export the same BLOB to a disk file, it converts fine.
What am I doing wrong ? Should I also set Image format to PDF after reading from blob and before thumbnailimage ?
Thanks
I'm having issues when trying to convert a PDF blob to an image BLOB.
What I do is :
Create magick wand
set wand format to 'PDF'
set wand resolution to 72 x 72
read image from blob
thumbnailimage
set image format to 'JPG'
write image to BLOB
Resulting blob is 0 bytes long.
If I export the same BLOB to a disk file, it converts fine.
What am I doing wrong ? Should I also set Image format to PDF after reading from blob and before thumbnailimage ?
Thanks