Page 1 of 1
WRONG COLOR?
Posted: 2013-03-30T06:11:37-07:00
by paulgao
ORGINAL PIC:
for 6.7.4-10
for 6.8.4-4
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?
Re: WRONG COLOR?
Posted: 2013-03-30T07:43:07-07:00
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
Re: WRONG COLOR?
Posted: 2013-03-30T09:17:43-07:00
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?
Re: WRONG COLOR?
Posted: 2013-03-30T09:44:30-07:00
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
Re: WRONG COLOR?
Posted: 2013-03-30T09:52:54-07:00
by paulgao
My fault, BIG THX.