Can't convert Grayscale to RGB
Posted: 2013-06-09T14:59:58-07:00
I have an image in a .PNG file that I am trying to convert from being stored in Grayscale + Alpha space to being stored in RGB + Alpha space. I need to do this because some of the devices I use the image on don't seem to be able to handle Grayscale + Alpha in the .PNG file.
I am trying to use
convert worldwhite3-512.png -type TrueColorMatte -define png:color-type=6 out.png
but the output is still stored as grayscale + alpha.
Perhaps I am misunderstanding something about what this command should do. I want it to write the same image unmodified but stored in RGB + Alpha space. Can anyone advise me whether this is the command is correct? If so then what could be stopping the conversion? I've put more detail below.
I'm using Version: ImageMagick 6.8.5-7 2013-05-19 Q16 running on Windows 7 64-bit.
Identify -verbose on my original file gives
Image: worldwhite3-512.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 512x512+0+0
Resolution: 118.11x118.11
Print size: 4.33494x4.33494
Units: PixelsPerCentimeter
Type: GrayscaleAlpha
Endianess: Undefined
Colorspace: Gray
Depth: 8-bit
Channel depth:
gray: 8-bit
alpha: 8-bit
...
After I try this
convert worldwhite3-512.png -type TrueColorMatte -define png:color-type=6 out.png
identify -verbose on the output file gives.
Image: out.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 512x512+0+0
Resolution: 118.11x118.11
Print size: 4.33494x4.33494
Units: PixelsPerCentimeter
Type: GrayscaleAlpha
Endianess: Undefined
Colorspace: Gray
Depth: 8-bit
Channel depth:
gray: 8-bit
alpha: 8-bit
...
For anyone that might be interested I've put the original image at https://dl.dropboxusercontent.com/u/893 ... e3-512.png
I am trying to use
convert worldwhite3-512.png -type TrueColorMatte -define png:color-type=6 out.png
but the output is still stored as grayscale + alpha.
Perhaps I am misunderstanding something about what this command should do. I want it to write the same image unmodified but stored in RGB + Alpha space. Can anyone advise me whether this is the command is correct? If so then what could be stopping the conversion? I've put more detail below.
I'm using Version: ImageMagick 6.8.5-7 2013-05-19 Q16 running on Windows 7 64-bit.
Identify -verbose on my original file gives
Image: worldwhite3-512.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 512x512+0+0
Resolution: 118.11x118.11
Print size: 4.33494x4.33494
Units: PixelsPerCentimeter
Type: GrayscaleAlpha
Endianess: Undefined
Colorspace: Gray
Depth: 8-bit
Channel depth:
gray: 8-bit
alpha: 8-bit
...
After I try this
convert worldwhite3-512.png -type TrueColorMatte -define png:color-type=6 out.png
identify -verbose on the output file gives.
Image: out.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 512x512+0+0
Resolution: 118.11x118.11
Print size: 4.33494x4.33494
Units: PixelsPerCentimeter
Type: GrayscaleAlpha
Endianess: Undefined
Colorspace: Gray
Depth: 8-bit
Channel depth:
gray: 8-bit
alpha: 8-bit
...
For anyone that might be interested I've put the original image at https://dl.dropboxusercontent.com/u/893 ... e3-512.png