resized images with unexpected grey lines

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
_LameMind

resized images with unexpected grey lines

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: resized images with unexpected grey lines

Post 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.
_LameMind

Re: resized images with unexpected grey lines

Post by _LameMind »

here is one of the original images http://lamemind.com/332.jpg
it's more than 3Mb...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: resized images with unexpected grey lines

Post 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
_LameMind

Re: resized images with unexpected grey lines

Post by _LameMind »

Great! Thank you! :D
Post Reply