Announcement

Collapse
No announcement yet.

Can't convert GIF to PNG without losing transparency

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Requested Can't convert GIF to PNG without losing transparency

    IrfanView (3.97 and 4.10) won't save transparency correctly when I convert a GIF to PNG.

    If I uncheck "Save Transparent Color", IV replaces transparency with the background color (the transparency is lost altogether).

    If I check "Save Transparent Color", IV sets those pixels to transparency which are not transparent, but happen to be the same as the background color; that is bad! (Moreover, this manual popup thing kills batch processing; it's really bad if you have 40 popups and can't quit!!)

    The proper behavior probably is to save transparency as found in the GIF file without using the "Save Transparent Color" popup. (E.g. GIMP 2 does what I need when I load the GIF and save as PNG.)

    Example image:


    Test html:
    <html><body style="background:#000"><img src=Icons-mini-action_back.png></body></html>

    IV's batch image converter would be ideal for web developers to move from legacy GIFs to PNGs, it would be great to have this issue fixed! Thanks!

    #2
    Moved to Feature Requests forum.

    Though it may not be good design, this is not a bug. It is working as it was designed to work.
    Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment

    Working...
    X