Guys, thank you for responding so quickly!
I have a PNG image in sRGB format.
All three RGB channels contain the same values.
I just need to extract one of them (Red, for example) to a file in grayscale format to save space and memory.
I've tried the spells proposed by Fred.
Unfortunately, they produce an RGB image that stores all three channels.
The last one produces a grayscale image, but the brightness is higher than in the original. Just like in my attempt.
Code: Select all
convert input.png -colorspace gray -intent perceptual output.png
snibgo wrote: ↑2018-02-02T07:41:46-07:00
Your command doesn't extract a channel, it merely sets what channels any following operations should operate on...
Thank you, snibgo.
What is the proper way to extract a channel with Image Magick?