Posted: 2005-09-07T08:05:18-07:00
Code: Select all
MagickEchoImagesBlob($w);
In the MagickWand API, if you set a MagickWand's image format, when you retrieve the MagickWand's blob (or write it), the operation obeys the rules of that format.
If the MagickWand contains multiple images, and you set the MagickWand's format to a multi-frame image capable format (like GIF or PDF), then all the frames are echoed/written as the multi-frame image; if however, the format is not multi-frame image capable (like JPEG), then the first image in the MagickWand is echoed/written.
Instead of setting individual image atributes, and retrieving the individual Images, you have set the MagickWand's attributes, and retrieved the MagickWand's blob.
Change
Code: Select all
MagickSetFormat($w, 'JPG');
Code: Select all
MagickSetImageFormat($w, 'JPG');
Code: Select all
MagickEchoImagesBlob($w);
Code: Select all
MagickEchoImageBlob($w);