Page MenuHomePhabricator

Several SVG images are skipped as too big
Open, Needs TriagePublic

Description

While producing the PDF in URL, status messages often say that a certain SVG was skipped for being too big. We should be able to downscale, or whatever, as needed; after all we downscale even 780 Mpx JPGs.


Version: unspecified
Severity: enhancement
URL: https://it.wikipedia.org/w/index.php?title=Speciale:Book/render_collection/&colltitle=Wikipedia:Libri/Cotton_selected

Details

Reference
bz72378

Related Objects

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:58 AM
bzimport added a project: OCG-PDF-renderer.
bzimport set Reference to bz72378.
bzimport added a subscriber: Unknown Object (MLST).
Nemo_bis created this task.Oct 22 2014, 7:45 PM

Yes, but "downscaling" SVGs means taking out detail (somehow). We'd have to figure out which line segments to skip.

Maybe we can hack around this by rendering them as a bitmap of a reasonable size. Do you have a test case I could experiment with?

Created attachment 16849
"154.14 Altri progetti" section from PDF

I'll pay more attention next time I generate the PDF and pick a test case. However, I think the attachment shows a likely consequence/example of the bug, where the "altri progetti" section has logos for Wikiquote and Commons but not Wikisource, Wiktionary and Wikivoyage.

Attached:

I suspect the test case was destroyed by the fix for bug 72377: now that the space isn't taken by unreasonably huge images, I didn't see a single one skipped.
Will need to try with bigger books or bigger SVGs perhaps. Or if that's expected, close this bug for now.

Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptNov 29 2015, 2:06 PM

(perhaps) Reported on frwiki. We talk about the no-use of MediaWiki:print.css on pdf generation too.
Kind regards

As already announced in Tech News, OfflineContentGenerator (OCG) will not be used anymore after October 1st, 2017 on Wikimedia sites. OCG will be replaced by Electron. You can read more on mediawiki.org.