Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
!)Adding "-transparent color" increases the image bit depth form 1 to 32. How can it be fixed? The final png image only contains a black color and transparent, that requires one bit depth(2 different colors). If impossible, then how could the bit depth be decreased to 4 instead of 1?
2)How can I change the image distinct black color darker? It has now a gray level and I want it be pure black?
2) I am not sure what you want or what you image looks like.
You can try -black-threshold XX% or -black-threshold XX where the latter is graylevel measure per your Quantum Depth compile of IM (Q8 0-255, Q16 0-65535)
Saving transparent images as palette PNG (overall bitdepth lower than 32) is possible with some older ImageMagick versions. But not with a current version. (Trying that usually results in losing the alpha channel.) You should indeed check out the 'non-ImageMagick PNG' tools like pngout or OptiPNG. It's recommended anyway to process your final PNG output files with one of these tools if you want them to be smaller.
Drarakel wrote:Saving transparent images as palette PNG (overall bitdepth lower than 32) is possible with some older ImageMagick versions. But not with a current version. (Trying that usually results in losing the alpha channel.) You should indeed check out the 'non-ImageMagick PNG' tools like pngout or OptiPNG. It's recommended anyway to process your final PNG output files with one of these tools if you want them to be smaller.
Thanks, I succeeded using pngquant. But this is too bad that IM ability reduces while its version goes up!