Opened 12 years ago
Closed 12 years ago
#3208 closed enhancement (fixed)
SVG images are clipped
Reported by: | godiard | Owned by: | godiard |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Wikipedia | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description
In many cases, like in the image in the page "Planet" section "Orbit", a svg image is clipped, because there are not a easy way to scale a svg image to a fixed size using object. In the same page, in the section "Solar system" every planet have a svg with the symbol, and are clipped too.
I have tried not set the width in the object, but we can't display the svg without setting a width because for example in the "Plant" page there are a lot of svg files and render at huge sizes.
Now, in the pages in the online wikipedia, are using a thumbnail in png format. Rendered a small sizes, are lighther than the svg files in more cases.
We can change our logic to use thumbnails to svg too.
Example:
http://en.wikipedia.org/wiki/File:TheKuiperBelt_Orbits_Pluto_Ecliptic.svg
A posible patch is attached, need more testing.
Attachments (1)
Change History (3)
Changed 12 years ago by godiard
comment:1 Changed 12 years ago by manuq
comment:2 Changed 12 years ago by godiard
- Resolution set to fixed
- Status changed from new to closed
Thanks, pushed 669f12ffd9ddd42ed6f1c43c0331c9db8ff46b0e
Tested in several pages, looks good. Example:
Before: http://dev.laptop.org/~manuq/wikipedia/wikipedia_svg_bug-before.png
After: http://dev.laptop.org/~manuq/wikipedia/wikipedia_svg_bug-after.png