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
Pixelated lines appearing on resized images
Re: Pixelated lines appearing on resized images
Is there a way to reproduce the problem? We need a source image and an ImageMagick command that produces the pixelated result.
- 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
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?
Can you post a link to one of your source images and the exact command you used?
Re: Pixelated lines appearing on resized images
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:
Medium image resize command:
Small image resize command:
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);
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);
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);
- 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
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.image magic version: 2.1.1-rc1
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