WRONG COLOR?

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
paulgao
Posts: 7
Joined: 2013-03-30T04:39:42-07:00
Authentication code: 6789

WRONG COLOR?

Post by paulgao »

ORGINAL PIC:
Image
for 6.7.4-10
Image
for 6.8.4-4
Image

same command line IN Centos 6.4 by libjpeg-trubo:

Code: Select all

/usr/local/bin/convert /home/cache/filestorage/a9/10914457 -colorspace RGB -strip -coalesce -thumbnail '768x1280^' -gravity center -extent '768x1280' -format jpg xxx.jpg
WHY?
BUG?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: WRONG COLOR?

Post by fmw42 »

-colorspace RGB was non-linear sRGB in IM 6.4.7.10 and is linear RGB now in the current version. There was a switch between versions to make it correct

This works fine for me on both versions on my Mac

convert 10914457.jpg -strip -thumbnail 768x1280^ -gravity center -extent 768x1280 1tmp1.jpg

You do not need coalesce or -format. They do nothing in this context.

See
viewtopic.php?f=4&t=21269
http://www.imagemagick.org/script/forma ... colorspace
paulgao
Posts: 7
Joined: 2013-03-30T04:39:42-07:00
Authentication code: 6789

Re: WRONG COLOR?

Post by paulgao »

Because I need show picture on IE browser, other colorspace ie. CMYK is not supported by IE, so I must write --colorspace options.
But I use srgb,picture color still see have problem?

Code: Select all

/usr/local/bin/convert /home/cache/filestorage/a9/10914457 -colorspace sRGB -strip -coalesce -thumbnail '768x1280^' -gravity center -extent '768x1280' -format jpg 6.8.4-4.jpg
I ignore what?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: WRONG COLOR?

Post by fmw42 »

You need to use -colorspace RGB in the older version and -colorspace sRGB for the newer version of IM.

-format does nothing in convert. It is needed only in mogrify
paulgao
Posts: 7
Joined: 2013-03-30T04:39:42-07:00
Authentication code: 6789

Re: WRONG COLOR?

Post by paulgao »

Image
Image

My fault, BIG THX.
Post Reply