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?".
I have an entirely black opaque PNG image. I'd like to make a copy in JPEG format and change the colorspace to RGB. I've tried this simple command but the colorspace remains Gray according to identify.
IdentifyImage() checks to see if the image is grayscale and reports a gray colorspace if it is-- even if the assigned colorspace is RGB. We will add a patch to the ImageMagick subversion trunk to fix this problem
the output colorspace is only hinted at by the internal colorspace of the image in memory. the actual output
colorspace is controlled by -type and not by -colorspace
Identify reports the type as Bilevel and the colorspace as Gray. Keeping in mind that identify may not be accurately representing the actual colorspace, I inspected the image using RMagick (which doesn't call IdentifyImage), which reports the colorspace as RGB and the type as Bilevel.
Does this look like the correct result?
The ImageMagick on my PowerBook is a bit back-dated. I'm using 6.4.1.
I recommend you check using some type of JPEG specific tool to see what is really in the resulting JPEG. Then report any differences with what IM reports.
Thanks for your advice Anthony. I've suggested to the RMagick user that there is no bug and gave him a simple RMagick script to examine. I am awaiting his reply.