Having issues with transparency and Mogrify
Posted: 2013-07-01T18:29:34-07:00
Hi guys,
I have DDS files with transparency that I need to convert to PNG. I've tried every combination of -alpha, -transparent, -background, etc. but I can't seem to get it right.
Here is the DDS converted to PNG in GIMP

The closest I have come is this, using the command:

As you can see, the black shirt turns transparent and there are some remaining black pixels around the head that should be transparent.
Or this, using:

This one retains the black shirt, but it looks like crap
.
Any help? Thanks so much!
I have DDS files with transparency that I need to convert to PNG. I've tried every combination of -alpha, -transparent, -background, etc. but I can't seem to get it right.
Here is the DDS converted to PNG in GIMP

The closest I have come is this, using the command:
Code: Select all
mogrify -alpha set -format PNG24 [filename].dds

As you can see, the black shirt turns transparent and there are some remaining black pixels around the head that should be transparent.
Or this, using:
Code: Select all
mogrify -alpha set -format PNG32 [filename].dds

This one retains the black shirt, but it looks like crap

Any help? Thanks so much!