mager
mager

Reputation: 4873

Can you force ImageMagick to use PNG-8 alpha transparency?

When I try to run a bunch of PNG-8 images with alpha transparency through Imagemagick, it converts them to PNG-32, increasing the file size a lot.

Is it possible to force Imagemagick to keep my image type as 8-bit PNG?

Upvotes: 14

Views: 11174

Answers (2)

scarba05
scarba05

Reputation: 3001

I seem to get the best result using the following

convert src.png -colors 256 PNG8:dest.png

Upvotes: 10

Matthew Talbert
Matthew Talbert

Reputation: 6048

You can do it like this:

convert test.png PNG8:test2.png

I've had varying luck with IM and PNG8, but this is the correct way to do it.

Upvotes: 20

Related Questions