Last modified: 2011-08-25 15:41:16 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 T32548, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30548 - SVG images are rendered too big
SVG images are rendered too big
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://pt.wikibooks.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-24 17:08 UTC by Helder
Modified: 2011-08-25 15:41 UTC (History)
2 users (show)

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


Attachments
Big images (1.19 MB, application/pdf)
2011-08-24 17:12 UTC, Helder
Details

Description Helder 2011-08-24 17:08:13 UTC
Take a look at the PDF version of a page such as [[wikibooks:pt:Norueguês]], which uses the [[Image:7de8.svg]] in the list of chapters.

In the PDF version, the image is scaled to a size bigger than it is on the HTML page.

Is it possible to fix that?
Comment 1 Helder 2011-08-24 17:12:01 UTC
Created attachment 8970 [details]
Big images
Comment 2 Brion Vibber 2011-08-24 18:32:39 UTC
Looks like the mwlib rendering system isn't properly detecting the native size of these images.

They're not being given an explicit size on the invocation, so the native size is used -- which in the file is defined as a nice compact 10x10:

<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">

If mwlib doesn't understand that it may be defaulting to some fairly large size... or perhaps just "size to fit", since the green & yellow images (both defined as 10x10 pixels) get rendered at different sizes.
Comment 3 Volker Haas 2011-08-25 15:41:16 UTC
fixed with: https://github.com/pediapress/mwlib.rl/commit/7a698fc1336c2fb2e1a113cfd28a0f4574647232

updating render servers in a minute

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


Navigation
Links