Issue: Settings are not preserved

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
albertisi
Posts: 15
Joined: 2014-07-28T12:17:08-07:00
Authentication code: 6789

Issue: Settings are not preserved

Post by albertisi »

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.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Issue: Settings are not preserved

Post by glennrp »

1. "PNG16" is not defined in IM; it would be ambiguous. It could mean 16-bit grayscale or 8-bit grayscale + 8-bit alpha.
albertisi
Posts: 15
Joined: 2014-07-28T12:17:08-07:00
Authentication code: 6789

Re: Issue: Settings are not preserved

Post by albertisi »

1. Ok thanks. -> But it seems that logic to disambiguate and "streamline/improve" setup could escape that. Since we have an option not to provide image.magick("ImageFormat"), and IM should figure out which format the image is auto-magically when writing it out to file with file extension.
Post Reply