Different colors after convert WHY?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vladimircape
Posts: 7
Joined: 2014-07-09T06:15:04-07:00
Authentication code: 6789

Different colors after convert WHY?

Post by vladimircape »

I got one source
and make 2 type of command and get images with different colors

1)Command

Code: Select all

convert -size $image_size canvas:none \
                    $background_image -geometry $image_size+0+0 -composite \
                    \( $in -colorspace RGB \) -geometry $transform -composite \
                    $out 2>&1
Image
http://images2.icanvas.com/framed-print ... f6/300.jpg

2)Command

Code: Select all

convert $in -colorspace RGB -resize 750x750 -colorspace sRGB -flatten -strip -interlace Plane -quality 85% $out 2>&1 
Image

Can -colorspace sRGB change such ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Different colors after convert WHY?

Post by snibgo »

Your first command converts an image to RGB.

Your second command converts an image to RGB, then to sRGB.

So, of course the results are different.
snibgo's IM pages: im.snibgo.com
Post Reply