Java ImageIO: Can I convert a PNG-24 file to PNG-8

iepngfixjavajavax.imageiopngpng-24

The scenario is this:
Users of the webapp can customize the website by choosing their own logo image, background colors and background images.

Problem is that IE6 does not support transparent PNG. I've tried several client-side solutions, but all fall short on one aspect or the other (most don't support the css property background-repeat).

I'm looking for the alternate solution of creating two separate images on the server, one for modern, transparent-png-compliant browsers and one for IE6.

Question is, can I accomplish this with ImageIO? Basically, I would detect whether the image is in PNG-24 format and convert it to PNG-8 (which is supported on IE6).

Best Answer

If you need transparency in IE6, then consider simply shipping a GIF instead for that browser. Would that be feasible?