[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #23965 [Metrics/Website]: 500 internal server error when trying to print svg from metrics graph
#23965: 500 internal server error when trying to print svg from metrics graph
-----------------------------+-----------------------------------
Reporter: arma | Owner: karsten
Type: defect | Status: needs_information
Priority: Medium | Milestone:
Component: Metrics/Website | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-----------------------------+-----------------------------------
Comment (by karsten):
Regarding the issue you describe about x axis labels getting cut off a bit
early: the reason is that we're changing axis labels without changing
margins. I just fixed that by increasing the right margin a bit. This is
unrelated to the output format. If you run into similar issues, just file
a ticket, and we can tweak such parameters.
Regarding the suspected differences between PDF and SVG output: I just
created a PDF and an SVG file locally, and they look almost exactly the
same, except that the SVG had a font problem with the 0 on the y axis. But
other than that I couldn't spot any differences. To me this means that
ImageMagick's `convert` is to blame for either not parsing the PDF input
correctly or not creating an adequate SVG output.
Can you maybe try out [https://packages.debian.org/stretch/libreoffice-
pdfimport LibreOffice's PDF import] to import the PDF file directly?
Otherwise we might consider replacing SVG with another format rather than
just removing it. The [http://ggplot2.tidyverse.org/reference/ggsave.html
`ggsave` documentation] says we can produce: ''"eps", "ps", "tex"
(pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows
only).'' Untested, subject to similar dependency issues that we're seeing
with SVG right now! If you have any preference for or against one of the
formats, please say so!
Another option would be to add a new parameter for the resolution and put
a "PNG (high-resolution) link on the website for 2 times or 4 times the
current resolution.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23965#comment:13>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs