Last modified: 2014-02-12 23:35:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47640, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45640 - Export of SVG images to PDF or PS
Export of SVG images to PDF or PS
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.21.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-02 15:33 UTC by Eduard Braun
Modified: 2014-02-12 23:35 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eduard Braun 2013-03-02 15:33:42 UTC
It would be nice to have the possibility to export SVG images to further formats like PDF or PS.

Since most (if not all) of the currently supported SVGConverters (http://www.mediawiki.org/wiki/Manual:$wgSVGConverters) support a multitude of output formats implementation should be possible without too much effort.
Comment 1 Bawolff (Brian Wolff) 2013-03-02 15:37:13 UTC
Beyond being kind of cool, what is the usecase for this? (Or more to the point is this something that would be widely useful?)
Comment 2 Eduard Braun 2013-03-02 15:59:06 UTC
There is currently a request on German Wikipedia for such a feature, that's how I got to the idea (http://de.wikipedia.org/wiki/Wikipedia_Diskussion:WikiProjekt_SVG#PDF-Exportm.C3.B6glichkeit_f.C3.BCr_SVG-Dateien).

Personally I initially thought, that the feature wasn't needed, too (it's simple to convert the file yourself if you need to)

Now I think there could actually be some demand for it:
* It's hard to import SVG into many widely used third party programs (e.g. OpenOffice, PowerPoint, etc.) therefore most people currently probably use a prerendered PNG versions loosing quality.
* A common Windows installation isn't equipped with a software able to display (except Internet Explorer) or even edit SVG files. Therefore many people don't now how to use SVG whereas PDF is a common format nowadays.
* Finally it seems like a feature to come "for free", since everything to convert SVG to PNG is already there and conversion to PDF would only need a small change in the command line call.
Comment 3 Andre Klapper 2013-03-05 10:41:21 UTC
> * It's hard to import SVG into many widely used third party programs (e.g.
> OpenOffice, PowerPoint, etc.) therefore most people currently probably use a
> prerendered PNG versions loosing quality.

I don't see the connection to exporting to PDF or PS, and we have PNG export in place already.

> * A common Windows installation isn't equipped with a software able to
> display
> (except Internet Explorer) or even edit SVG files. Therefore many people
> don't
> now how to use SVG whereas PDF is a common format nowadays.

PNG is too, so again I wonder.

> * Finally it seems like a feature to come "for free", since everything to
> convert SVG to PNG is already there and conversion to PDF would only need a
> small change in the command line call.

Still a good reason is welcome. "Just because we can" is nice but creates maintenance costs when things break.
Comment 4 Eduard Braun 2013-03-05 11:25:21 UTC
You can't argue that we didn't need PDF or PS export because we already had PNG export. PDF/PS is vector based, PNG is rasterized.

Sure, all these things *work* with PNG, but do you *want* to do them with PNG? If you've got a vector source at hand, you should use it. It provides much better quality while maintaining a substantially smaller file size.

A further example (I consider my reasons above still valid) where PDF/PS export would come in handy is LaTeX. The newer pdftex compiler accepts PDFs natively, the older latex compiler requires PS/EPS. They're both not able to handle SVG, latex can't even handle PNG.
Comment 5 Andre Klapper 2013-03-05 11:32:46 UTC
Saying "PNG fits all" wasn't my intention (sorry if it came across like that).

I was rather after finding a good argument for PDF/PS, and am wondering if PDF import is that much better than SVG import in mentioned applications indeed.
(Side note: latexmk handles PNG - I can embed PNG files in my LaTeX files).
Comment 6 Tuxyso 2013-03-05 15:10:59 UTC
For sure: PNG is well supported in LaTeX but is unable to produce high quality PDF (with zoom possibility). I often use PDF export of OpenOffice to create high quality vector output and embedd it into my LaTeX document. Thus it would be very useful (not only for LaTeX users) to have a compiler-independent vector output of an SVG file. I think there are good reasons to offer an additional vector graphic output. If you look at high quality Epaper versions of newspaper like the FAZ in Germany visualizations are always embedded as vector graphic and not as bitmap.
Comment 7 Brion Vibber 2013-09-29 15:01:12 UTC
Workaround:

* open SVG file in browser
* print to PDF

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links