Page 1 of 1
Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T15:35:39-07:00
by k3tden
Hi
sometimes we have problems when converting images taken from other web pages, every now and then convert doesn't end with the complete image, it fails on the last 1/3 or 1/4 part of the image and fills it with grey pixels (or some scrambled pattern).
Examples:
http://cdn03.wishbuuk.com/media/grid_20 ... ad4e21.jpg
http://cdn01.wishbuuk.com/media/grid_20 ... b0b506.jpg
http://cdn06.wishbuuk.com/media/grid_20 ... 6ccf73.jpg
http://cdn02.wishbuuk.com/media/detail_ ... 9bb41c.jpg
Original image is ok, we first download them to local server and then run convert. Our platform is an Debian 6 with Image Magick:
Version: ImageMagick 6.6.0-4 2012-05-02 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
We are on dedicated servers, have plenty of ram (32Gb) and an average server load is only 2%.
Does anyone know whats happening here?
Help me share some light on this please because it's driving me crazy...
Thanks a lot in advance!!
Best regards,
k3tden
Re: Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T15:53:19-07:00
by fmw42
possibly your IM tmp file location is filling up and not cleared by the system fast enough???
Re: Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T16:54:00-07:00
by k3tden
Thanks fmw42,
I've just executed some tests to validate your assumption but it seams like IM does not use /tmp directory at all, everything is done in memory. This is the output from debug, the memory part: Memory: 2.352MB/5.708MiB/47.033GiB
If I understand it correctly, there is no disk I/O involved in conversion. Also my tmp folder is empty (temporary file is never created) and disk has plenty of space (2Tb raid).
what am i missing? Please, advise...
Thanks,
BR
Re: Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T17:37:26-07:00
by magick
Can you post your input files associated with the improper conversions? Sometimes JPEG images are corrupted and the conversion is prematurely interrupted. Any remaining pixels are undefined, typically represented as gray.
Re: Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T17:39:55-07:00
by fmw42
I am really not very knowledgeable about such things, but see MAGICK_TEMPORARY_PATH or one of the other MAGICK environment variables at
http://www.imagemagick.org/script/resou ... nvironment
Re: Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T18:40:31-07:00
by k3tden
@magick
Yes sure, you can download 4 images from this url:
http://cdn01.wishbuuk.com/tests/samples.tar.gz
They looks perfectly ok, also if I try to convert them manualy everything works fine.
I assume that the conversion fails with concurency, when more than one image is converted at same time but on average we don't convert more than 4-5 images max in parallel and original images file size is to low (<100Kb) to consider RAM as a problem.
@fmw42
Thanks, I've looked into MAGICK_TEMPORARY_PATH docs but in our case is not set and I think that the default memory limit is set relative to the amount of physical memory that server have and in our case there is plenty of RAM so conversions shouldn't touch disks at all.
Thanks,
BR
Re: Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T20:00:01-07:00
by magick
Your images are fine. Any chance you could download the latest release of ImageMagick and see if it has the problem. The current release probably has more than one hundred patches since your release.
Re: Image partialy converted (ends with grey pixels)
Posted: 2012-12-29T20:13:57-07:00
by k3tden
Sure, I will try that and post any findings & changes in this thread,
Thanks a lot to both of you,
BR
Re: Image partialy converted (ends with grey pixels)
Posted: 2013-01-18T08:12:55-07:00
by wwftdg
Did you ever find a particular fix for this? I am having the exact same problem as you have posted about...
Re: Image partialy converted (ends with grey pixels)
Posted: 2013-09-10T05:25:43-07:00
by k3tden
FEI, I've fixed the problem by installing a lastest release at the time, just as magick suggested...
Version: ImageMagick 6.8.1-8 2013-01-04 Q16
http://www.imagemagick.org