Issue: Settings are not preserved
Posted: 2015-05-06T12:11:19-07:00
multiple issues with settings.
First, i cannot set PNG format to PNG16.
Second, if i set PNG8 and i have a grayscale PNG 8 bit image, i cannot set colorspace to GRAYColorspace, i cannot set type GrayscaleType, and i cannot set quantizeColorSpace GRAYColorspace. It seems all those settings are getting overwritten by defaults in png.c
Third, If i have 8 bit PNG image, and i dont set magick PNG 8, but i spcificy image.write("output.PNG") it causes an error that it cannot write that type.
Fourth, When i write DIB format out in dib.c there is code that will reset bit depth to 24 bits, and convert image to RGB. Original image is 8 bit grayscale. Workaround was to set classType(PseudoClass) which works.
First, i cannot set PNG format to PNG16.
Second, if i set PNG8 and i have a grayscale PNG 8 bit image, i cannot set colorspace to GRAYColorspace, i cannot set type GrayscaleType, and i cannot set quantizeColorSpace GRAYColorspace. It seems all those settings are getting overwritten by defaults in png.c
Third, If i have 8 bit PNG image, and i dont set magick PNG 8, but i spcificy image.write("output.PNG") it causes an error that it cannot write that type.
Fourth, When i write DIB format out in dib.c there is code that will reset bit depth to 24 bits, and convert image to RGB. Original image is 8 bit grayscale. Workaround was to set classType(PseudoClass) which works.