[SOLVED] Convert making dull colors

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
fne
Posts: 2
Joined: 2020-01-13T09:26:38-07:00
Authentication code: 1152

[SOLVED] Convert making dull colors

Post by fne »

Hi everyone,

I can't figure it out why using this command, colors becomes so dull...

And if I remove both profile, my image will be negative.

Here is the command :

Code: Select all

convert test.psd -background none +antialias -layers merge -intent relative -filter point -resample 600x600 -quality 100 -profile cmyk.icm -black-point-compensation -profile rgb.icc -set colorspace rgb PNG32:target.png
CMYK profile :
http://s000.tinyupload.com/index.php?fi ... 1861385884

RGB profile :
http://s000.tinyupload.com/index.php?fi ... 9380595627

Thanks a lot for your help,
Last edited by fne on 2020-01-14T07:54:02-07:00, edited 1 time in total.

User avatar
fmw42
Posts: 26261
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert making dull colors

Post by fmw42 »

Post your test.psd if you want us to track the issue. But note that if you are trying to merge layers, a PSD file contains the flattened (merged) layers in the first layer. So if you want to merge, you should remove the first layer (test.psd[1--1]). Also you are setting the colorspace at the end to linear RGB, which will be darker. You may want to use non-linear sRGB (-set colorspace sRGB), which is the normal colorspace.

snibgo
Posts: 12897
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert making dull colors

Post by snibgo »

fne wrote:-set colorspace rgb
This converts the image to linear RGB, assuming the data was sRGB (which it isn't). So that is wrong, and I suggest you remove it.

CORRECTION: "-set colorspace RGB" doesn't change the image, merely the metadata. But it will cause problems.
snibgo's IM pages: im.snibgo.com

fne
Posts: 2
Joined: 2020-01-13T09:26:38-07:00
Authentication code: 1152

Re: Convert making dull colors

Post by fne »

Colorspace was the cause !

Thanks a lot :)

Post Reply