I'm making a skin previewer for my site; I need to rotate parts of an image to create a representation of this for my users to see.
The skin is a PNG file, and all parts of it may have transparency or even none at all.
I need to be able to rotate this image while keeping any transparency inside the image transparent, while also having the extended borders (You know, the area that wasn't part of the image before it was rotated) transparent.
All of my attempts have left a black border around the image itself.
Any help?
You may want to check here for some uses for libpng (which will need zlib). If you are on linux you can write something in perl. CPAN GD module might be your ticket.
I use that to rotate a PNG and preserve transparency color. Works like a charm. It's "basic GD".
Don't know if it's what you're looking for?
-