Monday, March 20, 2006
RE: st: corrupted png files in 64-bit Stata 9 for Windows?
Anders Alexandersson (firstname.lastname@example.org) asks about PNG files created by Stata 9 for 64-bit x86-64 Windows: > I'm unable to create valid PNG files with -graph export- in 64-bit > Stata 9 for Windows. Is it a bug in 64-bit Stata 9 for Windows? > > After I have created a graph, I use -graph export fig1.png, replace- > and Stata creates the file fig1.png and writes the note "(file > fig1.png written in PNG format)". But the file cannot be open in the > latest versions of Internet Explorer or Firefox on my computer using > 64-bit Windows XP (x86), service pack 1. It can be open fine with > Windows Picture and Fax Viewer and Windows Explorer displays the > thumbnail picture fine.
I have just reproduced this and verified that it is a bug. It appears that Stata 9 for 64-bit x86-64 Windows is putting valid data in PNG files it creates, but is filling in an incorrect checksum value to 'validate' that data.
Windows Explorer and Windows Picture and Fax Viewer are ignoring the checksum, and can thus display the PNG without a problem. IE and Firefox are looking at the checksum before trying to display the PNG data.
This will be fixed in the next executable update.
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
Links to this post: