Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error displaying image #307

Open
Ubuntu-2020 opened this issue Apr 4, 2021 · 2 comments
Open

Error displaying image #307

Ubuntu-2020 opened this issue Apr 4, 2021 · 2 comments
Labels
template ignored! Basic informations are missing

Comments

@Ubuntu-2020
Copy link

EOM can't open svg drawing: interstellar probes trajectory.svg
The message comes out: Error displaying image.
Image page.
Full-size image.

@raveit65 raveit65 added the template ignored! Basic informations are missing label Apr 4, 2021
@lukefromdc
Copy link
Member

Just confirmeds this-but GIMP could not open it either, so that leads me to believe either something is wrong with the image, or that SVG files this big have problems on both. The browser spiked CPU on displaying it as well-this on 8 "core" AMD bulldozer. I could hear the fans throttle up when loading the fullsize image in browser

@cwendling
Copy link
Member

Inkscape opens it no problem, but even imagemagick's display can't:

$ display Interstellar_probes_trajectory.svg
[long while]
display-im6.q16: width or height exceeds limit `/tmp/magick-Zfxgr01lCpo9kPOzEAgTn9gNigwYkX5f' @ error/cache.c/OpenPixelCache/3909.

I think the issue with this file is that it has fairly crazy dimensions:

$ rsvg-convert  Interstellar_probes_trajectory.svg > o.png
The resulting image would be larger than 32767 pixels on either dimension.
Librsvg currently cannot render to images bigger than that.
Please specify a smaller size.

Rasterizing this file at its full dimensions would make for a 1536Mpx (!) image. You can get around that by asking for a smaller render: rsvg-convert -z 0.1 Interstellar_probes_trajectory.svg > o.png. This is already a reasonable 15Mpx image.

At any rate, I don't really feel bad that EOM can't handle a 1536Mpx image. Even less when Gimp and Display can't either.
This said, ideally EOM would render it at an appropriate scale for displaying, it doesn't actually need the full size, so that'd be a nice improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template ignored! Basic informations are missing
Projects
None yet
Development

No branches or pull requests

4 participants