Page 1 of 1
Color profile for Gray images
Posted: 2016-01-29T02:42:19-07:00
by HaroldWindt
Currently in my conversion I am using the below profile based on color mode
RGB to CMYK (when the input image also doesnt have any color profile)
convert -alpha off -units pixelsperinch 300 Test_RGB_2901_1.jpg[0] -profile "sRGB Color Space Profile" -profile USWebCoatedSWOP.icc Test_CMYK_2901_1.jpg
Default RGB Color Profile - sRGB Color Space Profile.icm
Default CMYK Color Profile - USWebCoatedSWOP.icc
Default Gray Color Profile - ??
For RGB or CMYK converstion to Gray instead of color mode I want to use a color profile as I mentioned above in RGB to CYMK conversion
Does Gray color has a ICC color profile that I can use ?
Re: Color profile for Gray images
Posted: 2016-01-29T04:53:28-07:00
by snibgo
Any color profile can be used with grayscale images. Does that answer the question?
Re: Color profile for Gray images
Posted: 2016-01-29T05:47:27-07:00
by HaroldWindt
snibgo wrote:Any color profile can be used with grayscale images. Does that answer the question?
Let me rephrase my question
convert -alpha off -units pixelsperinch 300 Test_RGB_2901_1.jpg[0] -profile "sRGB Color Space Profile" -profile
<GrayProfile??> Test_Gray_2901_1.jpg
So which color profile I can use to convert my rgb image to gray instead of using -colorspace I want to use -profile
Re: Color profile for Gray images
Posted: 2016-01-29T06:18:30-07:00
by snibgo
I haven't seen color profiles that will convert to CMYK grayscale. I have seen profiles that will convert to sRGB grayscale, so you could convert via one of these and then to CMYK.
Or you could use one of the many other methods to convert to sRGB grayscale, then convert the profile to CMYK.
Re: Color profile for Gray images
Posted: 2016-01-29T06:25:10-07:00
by HaroldWindt
snibgo wrote:I haven't seen color profiles that will convert to CMYK grayscale. I have seen profiles that will convert to sRGB grayscale, so you could convert via one of these and then to CMYK.
Or you could use one of the many other methods to convert to sRGB grayscale, then convert the profile to CMYK.
Let me try rephrasing my question...
Requirement is to convert a file from RGB to GRAY
Input file Name - Test_2901_1.jpg (It can be RGB or CMYK image)
Output file Name - Test_Gray_2901_1.jpg (output should be GRAY)
The below command works
convert Test_2901_1.jpg[0] -colorspace GRAY Test_Gray_2901_1.jpg
But is there a way to use -profile instead of -colorspace to get the desired GRAY output image
convert Test_2901_1.jpg[0] -profile
<GrayProfile?> Test_Gray_2901_1.jpg
Re: Color profile for Gray images
Posted: 2016-01-29T06:49:58-07:00
by snibgo
If you want the image to be sRGB grayscale, yes, you can use a profile that will convert to sRGB grayscale. I have seen these around, but I don't have any links. Sorry.
Re: Color profile for Gray images
Posted: 2016-01-29T11:14:29-07:00
by fmw42