Search found 5 matches
- 2012-06-15T11:46:50-07:00
- Forum: IMagick
- Topic: Output images to array
- Replies: 7
- Views: 19555
Re: Output images to array
DJ Mike: Yeah, unfortunately I can't write anything to disk in this app, ever, for security reasons. I'm crossing my fingers that once this gets pushed onto the production machine, that the slight increase in headroom from moving outside a VM will help.
- 2012-06-13T13:23:03-07:00
- Forum: IMagick
- Topic: Output images to array
- Replies: 7
- Views: 19555
Re: Output images to array
Well, poop.Bonzo wrote:Imagick is not written or supported by the Imagemagick developers; the main person involved in it stopped answering any comments on his blog in 2009.
What documentation there is is confusing and an example will work in one version and not another; basicaly I think it is dying.
- 2012-06-13T13:09:05-07:00
- Forum: IMagick
- Topic: Output images to array
- Replies: 7
- Views: 19555
Re: Output images to array
I found a way to achieve what I need, but it's ugly, inefficient and I'm sure slow but there didn't seem to be any other way. function PdfToImg3($pdf_in) { $img_array = array(); $im = new imagick(); $im->readimageblob($pdf_in); $num_pages = $im->getnumberimages(); $i = 0; for($x = 1;$x <= $num_pages ...
- 2012-06-13T12:01:26-07:00
- Forum: IMagick
- Topic: Output images to array
- Replies: 7
- Views: 19555
Re: Output images to array
DJ Mike: That is almost what I'm lo0oking for, but I've gotten that far with the code I'm using. What I can't do is get ImageMagick to return anything but a page at a time. nextImage() and previousImage seem to have no effect whatsoever. seIteratorIndex(0); allows me to retrieve the first page, but ...
- 2012-06-13T08:58:41-07:00
- Forum: IMagick
- Topic: Output images to array
- Replies: 7
- Views: 19555
Output images to array
I'm attempting to use Imagick to convert a multipage PDF into PNG images, using an array as input and also storing the resulting images in an array. I figured out how to use readimageblob() to load the PDF, and getimageblob() to output to a string, but imagick is only returning the last page of ...