PNG conversion forcing grayscale
Posted: 2014-03-19T09:43:14-07:00
Hey all,
I'm having some very weird problems when trying to convert PNGs on ImageMagick 6.8.8-8 Q16 x64 on Windows 7.
If the PNG only has grays in it, and I do an identify -verbose on it, the image shows as being Colorspace: Gray, regardless of how I've saved it in Photoshop. However, if I open this file in photoshop, it opens and correctly recognises the file as being in sRGB.
However, if I then use ImageMagick to convert the PNG to anything, even another PNG, and then open that file in Photoshop, it now opens with a Gray colorspace.
This is the case even if I use convert file1.png -type TrueColorMatte -colorspace sRGB -set colorspace sRGB file2.png, which has every way I could think of to force it to maintain an sRGB colorspace.
This is a problem because I am using IM to convert PNGs to TIFs for printing, and the print software for our printers is unable to read gray tifs for some reason.
The only workaround we have right now is to include a colored pixel in the image at opacity 1%, which then stops IM from converting the image to Gray, but we are unable to enforce that with images coming in from external sources.
Am I doing something wrong or is it a bug in IM?
I'm having some very weird problems when trying to convert PNGs on ImageMagick 6.8.8-8 Q16 x64 on Windows 7.
If the PNG only has grays in it, and I do an identify -verbose on it, the image shows as being Colorspace: Gray, regardless of how I've saved it in Photoshop. However, if I open this file in photoshop, it opens and correctly recognises the file as being in sRGB.
However, if I then use ImageMagick to convert the PNG to anything, even another PNG, and then open that file in Photoshop, it now opens with a Gray colorspace.
This is the case even if I use convert file1.png -type TrueColorMatte -colorspace sRGB -set colorspace sRGB file2.png, which has every way I could think of to force it to maintain an sRGB colorspace.
This is a problem because I am using IM to convert PNGs to TIFs for printing, and the print software for our printers is unable to read gray tifs for some reason.
The only workaround we have right now is to include a colored pixel in the image at opacity 1%, which then stops IM from converting the image to Gray, but we are unable to enforce that with images coming in from external sources.
Am I doing something wrong or is it a bug in IM?