How to get 8-bit alpha with PNG32
Posted: 2013-04-11T15:36:46-07:00
I need to generate PNG32 files with 8-bit alpha channels. I consistently get a 1-bit alpha channel with commands such as:
convert foo.jpg PNG32:out.png
convert foo.jpg -define png:format=png32 out.png
convert foo.jpg -define png:color-type=6 out.png
convert foo.jpg -type truecolormatte PNG32:out.png
and all combinations of those options. I have tried 6.8.4-8-Q16-x64-dll (latest precompiled Windows) and also Linux self compiled versions of 6.6.3-10, 6.7.5-6 and 6.8.4-8. Any suggestions would be greatly appreciated!
convert foo.jpg PNG32:out.png
convert foo.jpg -define png:format=png32 out.png
convert foo.jpg -define png:color-type=6 out.png
convert foo.jpg -type truecolormatte PNG32:out.png
and all combinations of those options. I have tried 6.8.4-8-Q16-x64-dll (latest precompiled Windows) and also Linux self compiled versions of 6.6.3-10, 6.7.5-6 and 6.8.4-8. Any suggestions would be greatly appreciated!