How to make a transparent PNG image for IE6 using The GIMP

By Matthew Capewell

I recently made what I thought was a transparent PNG but when I uploaded it onto the website it was transparent in Firefox but not in IE6.

After doing some searching, I found the following solution. Apparently IE 6 doesn’t support 24-bit PNGs with alpha channel so you need to convert the image to 8-bit.

  1. Open the original image.
  2. Set a proper background colour as oposed to it being transparent. It is best to make this colour similar to the background colour of the website to generate the antialiasing in your image borders in order for the image to blend nicely.
  3. Flatten the image (Image – Flatten image).
  4. Add an alpha channel (Layer – Transparency – Add alpha channel).
  5. Select the background color (Selection – By color).
  6. Clear the background colour (Edit – Clear).
  7. Convert the image to indexed color (Image – Mode – Indexed color).
  8. Save the image to the final PNG file (File – Save as) and remember to check: Save color values from transparent pixels.

17 Responses to “How to make a transparent PNG image for IE6 using The GIMP”

  1. nguyen duc phu Says:

    Very nice, but what’s software you use to do this?

  2. Matthew Capewell Says:

    As the title of the post suggests, the instructions are for The GIMP. I use this mainly because it is free :)

  3. Colleen Dick Says:

    This is fine but it doesn’t do % transparent. (Translucent) But tanks anyway.

  4. Raju Says:

    That really helped! Thank you!

  5. Joey Says:

    To create a translucent image all you have to do is have a pattern of transparent pixels in the image you want translucent. The more transparent pixels, the more % transparency. Increase depth if necessary.

  6. BillyG Says:

    #2 threw me off with “Set a proper background colour as oposed to it being transparent”

    How do I do that?

    I know the background color I want to use, but how do I set it? (which is kinda the reason I tried this out in the first place…)

  7. Jary Says:

    Thanks!

  8. Jhonyleroy Says:

    Thanks!!!

    I was a pain in my neck and I solved thanks to this great explanation!!!

    Thanks again,

    Regards,

    Jhonyleroy.

  9. Fabian Rodriguez Says:

    Excellent, I needed this to create some screenshots with transparency for internal docs.

  10. Fabian Rodriguez Says:

    Forgot to say THANK YOU!

  11. Paul Says:

    Brilliant!! I don’t like browser hacks, but I ended up trying several to get over this PNG transparency bug in IE6… none of which worked. Thanks very much for the clear step by step instructions. It worked a treat. This is by far the best solution. No hacks required.

  12. Ninja215 Says:

    Excellent instructions! Thanks a lot.

  13. Bob Says:

    Many thanks for this, excellent tip

  14. ChrisRenner.com » Blog Archive » PNG transparency fixes for IE6 Says:

    [...] The real issue at hand is that IE6 doesn’t support 24-bit transparency.  It does, however, support 8-bit.  So why not change your 24-bit PNGs into 8-bit?  For an entire application, this could become a huge amount of work for very little value added, hence implementation of the Project Atomic fix. However, for those less common instances of PNGs as background images, I have followed Matthew Capewell’s tutorial to transform the 24-bit PNGs into IE6-compatible 8-bit images. [...]

  15. Tarkmalt Says:

    hmm.. interesting.

  16. anon. Says:

    I wish people knew the difference between transPARENT and transLUCENT. *smh*

  17. Rux Says:

    hey! thanks! this worked great!

Leave a Reply