Progressive JPEG

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
ethelward
Posts: 1
Joined: 2013-08-19T11:17:10-07:00
Authentication code: 6789

Progressive JPEG

Post by ethelward » 2013-08-19T11:25:09-07:00

Hello,

I have a progressive/interlaced JPEG that I cut at half the file in order to play with partial images. So, with

Code: Select all

display file.jpeg
I don't have any problem, I can see the pixelated JPEG. However, when I try to open it with Magick++ I get a WarningCorruptImage (normal, I can see in the terminal that display catch the same).

Then, I try to get the partially rendered image with

Code: Select all

Magick::PixelPacket *pixels = image.getPixels(0, 0, width, height);
in my C++ code, but there pixels is a null pointer. So, how can I do like the display utility and get the pixels of the "blurry" image ?

Post Reply