When trying to export an Image as PNG the resulting file is a completely black image. This happens only for certain images I have not been able to determine exactly which, so I uploaded a notebook that triggers it. Is this a known bug with a known fix?

brokenness screenshot

Some system info:

Fedora 19 3.9.9-302.fc19.x86_64
Mathematica 8.0.4
  • 1
    $\begingroup$ Looks fine on Mac OS X, Mathematica 9... $\endgroup$
    – cormullion
    Jul 28, 2013 at 21:47
  • 1
    $\begingroup$ Looks fine for me $\endgroup$
    – rm -rf
    Jul 28, 2013 at 21:48
  • 1
    $\begingroup$ Looks good on Windows 7, Mathematica 9. $\endgroup$
    – g3kk0
    Jul 28, 2013 at 21:49
  • 1
    $\begingroup$ Mac OS X, Mathematica 8, reproduces the black square. $\endgroup$
    – gpap
    Jul 29, 2013 at 13:23
  • 1
    $\begingroup$ Your noteboook worked for me in Mathematica 9.0 but not in Mathematica 8.0. OpenSuse Linux 12.2 Mathematica 9.0; Linux 3.4.47-2.38-desktop x86_64 GNU/Linux $\endgroup$
    – c186282
    Jul 31, 2013 at 0:26

1 Answer 1


Judging from the comments this is a bug in version 8 on all platforms. Specifically I think, a bug in PNG.EXE that Mathematica 8 uses to import PNG files.

On windows, it is located here:

C:\Program Files\Wolfram Research\Mathematica\8.0\SystemFiles\Converters\Binaries\Windows-x86-64\PNG.exe

No such file exists in my version 9.0 converters folder, so I assume importing PNGs has been internalized (and, apparently, improved).

A workaround would be to import/export as tiff. The resulting image in Mathematica is the same as before. If a PNG is desired an external converter could be used to convert TIFFS to PNGs.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.