Is there any way to create 4-bit BMP or PNG files with IM?
Posted: 2009-01-12T15:42:20-07:00
Hello. I am trying to use ImageMagic to reduce some 256 color images to 16 color images.
I can use -colors 16 or -posterize 16 and I can get images that have been correctly reduced to 16 colors, but they are still saved with 8 bit bit depth, not 4-bit bit depth. I have tried BMP and PNG, both of which do support 4-bit images, but neither works. I still end up with an 8-bit image.
I tried -depth 4 but it doesn't seem to have any effect.
I can do this manually with the gimp, but it takes forever with a large number of images :(
Does anybody know if ImageMagic is actually capable of writing 4 bit BMP or PNG?
I can use -colors 16 or -posterize 16 and I can get images that have been correctly reduced to 16 colors, but they are still saved with 8 bit bit depth, not 4-bit bit depth. I have tried BMP and PNG, both of which do support 4-bit images, but neither works. I still end up with an 8-bit image.
I tried -depth 4 but it doesn't seem to have any effect.
I can do this manually with the gimp, but it takes forever with a large number of images :(
Does anybody know if ImageMagic is actually capable of writing 4 bit BMP or PNG?