Page 1 of 1

resized images with unexpected grey lines

Posted: 2010-04-17T02:11:15-07:00
by _LameMind
Hello everybody,

I'm not a guru in ImageMagick and I'm not sure this is a bug, maybe I'm just ignorant...
I'm using PHP "Version 5.2.6-2ubuntu4.2", ImageMagick "6.3.7 06/04/09 Q16 http://www.imagemagick.org", module version "2.1.1-rc1".

When I resize images, sometimes, result images have grey lines.
the command is Imagick::resizeImage ($thumbWidth, $thumbHeight, Imagick::FILTER_LANCZOS, 0);

Image
Image

those images are 160x106 and 106x160 pixels.
if I resize just to 161x107 and 107x161, rows disappear!

Note: any other filter different from LANCZOS will output a black image. :|


EDIT: Compression Quality is always set to 100
Any suggestion?
Thanks to everybody!

Re: resized images with unexpected grey lines

Posted: 2010-04-17T05:56:06-07:00
by magick
It is likely this particular bug is fixed in more recent releases of ImageMagick. To verify, post a URL to your original image here so we can download it and see if we can reproduce the problem.

Re: resized images with unexpected grey lines

Posted: 2010-04-17T06:30:05-07:00
by _LameMind
here is one of the original images http://lamemind.com/332.jpg
it's more than 3Mb...

Re: resized images with unexpected grey lines

Posted: 2010-04-17T06:37:58-07:00
by magick
We're using ImageMagick 6.6.1-4, the current release, and your image converted properly (no lines):
  • convert 332.jpg -filter LANCZOS -resize 160x106! image.jpg

Re: resized images with unexpected grey lines

Posted: 2010-04-18T03:35:16-07:00
by _LameMind
Great! Thank you! :D