Writing grayscale image in single channel IM7

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
rohitlal
Posts: 6
Joined: 2019-01-08T07:33:51-07:00
Authentication code: 1152

Writing grayscale image in single channel IM7

Post by rohitlal »

Can anyone please guide me, how do I write a grayscale image in single channel in IM 7+ version.

I've tried

Code: Select all

 
 	image.type(GrayscaleType);
 	image.colorSpace(GRAYColorSpace);
 
But, couldn't get final image as single channel image.
Post Reply