[Bug 704531] Re: certain jpeg causes undue resource consumption
Cristy
704531 at bugs.launchpad.net
Tue Oct 11 14:33:59 UTC 2011
ImageMagick is behaving properly. The zzzbad1.jpeg image is 26400x20400
pixels and as described in the architecture document @
http://www.imagemagick.org/script/architecture.php, image pixels are
sometimes cached to disk if memory resources are consumed. The user
could try increasing the area limit which might permit the image to be
processed in memory:
export MAGICK_AREA_LIMIT=12gb
convert zzzbad1.jpeg zzzbad1.png
You can also reduce the memory requirements significantly if you use the
Q8 (8-bits per pixel) version of ImageMagick instead of the default Q16
build.
We were able to convert the image from JPEG to PNM in memory on our 4GB
Fedora host in just under 20 seconds.
Now displaying is a different beast. ImageMagick asks libX11 for a
26400x20400 pixmap and it may have trouble allocating the memory. You
could force ImageMagick to cache the pixels to disk which permits libX11
to allocate the remaining real / virtual memory:
display -limit area 0 zzzbad1.jpg
This failed gracefully for us on our 8GB Linux host with an X11
exception:
display -limit area 0 zzzbad1.jpeg
XIO: fatal IO error 14 (Bad address) on X server ":0"
after 11687 requests (1482 known processed) with 36 events remaining.
However, this worked:
display -limit area 0 -resize 50% zzzbad1.jpeg
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/704531
Title:
certain jpeg causes undue resource consumption
Status in ImageMagick - Convert, Edit and Compose Images:
Confirmed
Status in “imagemagick” package in Ubuntu:
New
Bug description:
Binary package hint: imagemagick
Something about the attached jpeg (zzzbad1.jpeg) causes imagemagick
(display, convert) to go bonkers. It creates a 4.1GB file in /tmp
/magick-XXXXXXXX
Try download the jpeg and run 'display zzzbad1.jpeg'
To manage notifications about this bug go to:
https://bugs.launchpad.net/imagemagick/+bug/704531/+subscriptions
More information about the foundations-bugs
mailing list