Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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
8Gb RAM
share|improve this question
1  
Looks fine on Mac OS X, Mathematica 9... –  cormullion Jul 28 '13 at 21:47
1  
Looks fine for me –  rm -rf Jul 28 '13 at 21:48
1  
Looks good on Windows 7, Mathematica 9. –  g3kk0 Jul 28 '13 at 21:49
1  
Mac OS X, Mathematica 8, reproduces the black square. –  gpap Jul 29 '13 at 13:23
1  
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 –  c186282 Jul 31 '13 at 0:26
show 3 more comments

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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