Pixelated lines appearing on resized images

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
dtaylor7

Pixelated lines appearing on resized images

Post by dtaylor7 »

When resizing images, it apears that every so often pixelated lines apear in the shape of a box.
Please see example here: http://theantiquefinder.com/productView ... tAdvert=52.
If this is not a bug and something i am doing please let me know.

Thanks Dominic
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Pixelated lines appearing on resized images

Post by magick »

Is there a way to reproduce the problem? We need a source image and an ImageMagick command that produces the pixelated result.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pixelated lines appearing on resized images

Post by fmw42 »

What version of IM? If old, perhaps an upgrade is in order?

Can you post a link to one of your source images and the exact command you used?
dtaylor7

Re: Pixelated lines appearing on resized images

Post by dtaylor7 »

Thank you for your reply,

source image: http://theantiquefinder.com/publicImage ... 61aLRG.JPG

image magic version: 2.1.1-rc1
ImageMagick release date: 08/09/09 (maybe an update is in order :S)

i create three images from source:

Large image resize command:

Code: Select all

        $img = new Imagick();
        $img->readImage($this->docRoot.$largeImageUrl);
        $img->setImageCompression(imagick::COMPRESSION_JPEG);
        $img->setImageCompressionQuality(80);

        $img->resizeImage(2000,2000,0,0,true);

        $img->writeImage($this->docRoot.$newName);
Medium image resize command:

Code: Select all

                
        $img = new Imagick();
        $img->readImage($this->docRoot.$largeImageUrl);
        $img->setImageCompression(imagick::COMPRESSION_JPEG);
        $img->setImageCompressionQuality(80);

        $img->resizeImage(300,400,0,0,true);

        $img->writeImage($this->docRoot.$newName);
Small image resize command:

Code: Select all

        $img = new Imagick();
        $img->readImage($this->docRoot.$largeImageUrl);
        $img->setImageCompression(imagick::COMPRESSION_JPEG);
        $img->setImageCompressionQuality(70);

        $img->resizeImage(180,240,0,0,true);

        $img->writeImage($this->docRoot.$newName);
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Pixelated lines appearing on resized images

Post by fmw42 »

image magic version: 2.1.1-rc1
You are using IMagic which is based upon Imagemagick. Your IMagick version is old. The current one is at 3.x. It is not clear what version of Imagemagick you are using, but it would be best to upgrade both.

These all worked find for me on IM 6.6.4.7 Q16 Mac OSX Tiger


convert LRG.jpg -resize 2000x2000 LRG_test1.jpg
convert LRG.jpg -resize 300x400 LRG_test2.jpg
convert LRG.jpg -resize 180x240 LRG_test3.jpg
Post Reply