This isn't a problem in xfig, since xfig doesn't create png files, but delegates this to fig2dev program, which currently is contained in package fig2dev and in former versions in transfig package.
I tried this out with current version of the program and wasn't able to reproduce this problem. Please try again with a newer version and tell me, weather it works now. Please also check version number of fig2dev used. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to transfig in Ubuntu. https://bugs.launchpad.net/bugs/381668 Title: xfig produces illegal PNG file when exporting as PNG Status in transfig: New Status in transfig package in Ubuntu: New Status in xfig package in Ubuntu: Invalid Bug description: Binary package hint: xfig Summary: Exporting a figure as PNG with xfig produces illegal PNG file. Steps to reproduce: 1/ start 'xfig foo.fig' from command line: $ xfig foo.fig 2/ draw something (it does not matter what you draw) 3/ Export as PNG with: File -> Export In the export dialog box, select "Language: PNG (Portable Network Graphic)" and click "Export" button 4/ observe that xfig has produce file "foo.png" (so far so good) 5/ Now run "optipng" tool from command line with: $ optipng foo.png 6/ Observe the following error: $ optipng foo.png OptiPNG 0.6.2.1: Advanced PNG optimizer. Copyright (C) 2001-2009 Cosmin Truta. ** Processing: foo.png Warning: Extraneous data found after IEND 39x39 pixels, 3x8 bits/pixel, RGB Reducing image to 1 bit/pixel, 2 colors in palette Recoverable errors found in input. Rerun OptiPNG with the -fix option. Error: Previous error(s) not fixed ** Status report 1 file(s) have been processed. 1 error(s) have been encountered. -> the PNG file is illegal. It can be corrected though with "optipng -fix foo.png". I'm using xfig as shipped with Ubuntu 9.04 (Jaunty) $ xfig -v Xfig 3.2 patchlevel 5 (Protocol 3.2) To manage notifications about this bug go to: https://bugs.launchpad.net/transfig/+bug/381668/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp