Strange artifacts after convert

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
dimkalinux
Posts: 23
Joined: 2011-01-25T11:47:11-07:00
Authentication code: 8675308

Strange artifacts after convert

Post by dimkalinux »

Hi all.

Im use imagemagick for resize images. This is original images http://pic.lg.ua/x/11/e864bd/677d8d3e.jpg
This is my command line for resize.

Code: Select all

convert -depth 16 cec8fwqv4b8qxee3y5.jpg -colorspace RGB -filter Mitchell -sampling-factor 1x1 -thumbnail 139x231\! -background "#ffffff" -alpha Background -unsharp 0x0.7+0.6+0.006 -quality 94 -colorspace sRGB -depth 8 jpeg:'result-8-1.jpg'
This command works well on Centos system with 6.8.6 convert and OS X 6.8.6

Code: Select all

Version: ImageMagick 6.8.6-3 2013-07-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg png xml zlib 
But on Arch linux with this version of convert this same command produce artifacts.

Code: Select all

$ convert | head
Version: ImageMagick 6.8.7-0 2013-09-26 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC HDRI OpenCL OpenMP
Delegates: bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pango pangocairo png ps png rsvg tiff webp wmf x xml zlib
Example:
Resized image on Centos/OS X (6.8.6)
Image

Resized image on Arch (with artifacts)
Image

I have better result on Arch if i use -depth 32 in the end of command line instead of -depth 8, but i dont like this idea.
Version on Arch is compiled with HDRI, Centos/OS X - without.

Any idea why version in Arch produce this type of artifacts?

Thanks for helping.

dimkalinux
Posts: 23
Joined: 2011-01-25T11:47:11-07:00
Authentication code: 8675308

Re: Strange artifacts after convert

Post by dimkalinux »

Problem is solved — im forget added -clamp options for hdri version of convert.
With -clamp everything is fine.

Post Reply