#17940: IOError: cannot identify image file
----------------------------------+------------------------
Reporter: gagern | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: user interface | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------------+------------------------
Comment (by gagern):
Replying to [ticket:17940 gagern]:
> Using strace I can see access to some `preview.png` and looking at that
file I notice that it appears to be a regular PNG, concatenated with a
Jmol script. So apparently two outputs ended up in the same data stream.
This is likely a consequence of #17234.
It seems I was misled: apparently JMol attaching its script to the
generated PNG is normal behavior. The PNG file is apparently broken at
some other point. Looking at the PNG chunks as reported by the `pngchunks`
tool, I see that the `IDAT` chunk appears to be off by one byte. The chunk
before that is an `iTXt` chunk stating the creation date. It does so in a
locale-dependent manner, and in my case that means using the German
abbreviation for March, which is `Mär`. So I'd say JMol is counting UTF-16
code units when it should be counting UTF-8 code units. This is a bug in
JMol, and probably can be reproduced at least this month by using a German
locale.
I'll try to see whether we can work around this issue by forcing the
locale to C, like `LC_ALL=C` or some Java-specific analogon to this.
--
Ticket URL: <http://trac.sagemath.org/ticket/17940#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.