Page MenuHomePhabricator

SVG images rendering without important parts in smaller sizes
Closed, DuplicatePublic

Description

If you look on this SVG picture on Commons, it has wooden decorations on its stand. But if you look on its history log there, smaller sizes of that SVG picture haven't got any wooden decorations and look broken. Every time that picture is used somewhere (so it goes through MediaWiki SVG-to-PNG convertor) and its size is 100px or lower, its stand loses all wooden decorations and seems broken. Even a little bit larger dimensions are still missing a part of that stand. I also checked the picture using svgcheck on wmflabs tools, but there should be no problem in that file at all. The svg itself renders ok. Just its PNG thumnails are broken. This picture was supposed to be used all over the Czech Wikipedia and was also supposed to be a template for many derivatives, but because of this issue my colleague created just one (also) broken derivative and gave it up. We just can't use it or make new derivatives. How could we make the convertor leave wooden decorations on stand as they are? Or is it caused by a hidden issue in that SVG file, that haven't recognized any of tools I've tried? Could you fix that file or MediaWiki convertor to make good thumbnail even if smaller than 100px? Here is an example of an ordinary insertion of that SVG file in three sizes on the Czech Wikipedia to compare.

Event Timeline

Dvorapa raised the priority of this task from to Medium.
Dvorapa updated the task description. (Show Details)
Dvorapa added a subscriber: Dvorapa.
Restricted Application added subscribers: Steinsplitter, Aklapper. · View Herald Transcript
brion renamed this task from Images rendering without important parts in smaller sizes to SVG images rendering without important parts in smaller sizes.Nov 8 2015, 10:51 AM
brion added a project: Wikimedia-SVG-rendering.
brion set Security to None.
Aklapper lowered the priority of this task from Medium to Low.Nov 9 2015, 9:12 AM

No such problem when converting locally (way more recent ImageMagick-6.9.1.3-0.beta.3 though here) when running convert -resize 100x100 Silverwiki_Hires.svg Silverwiki_Hires.png. Also wondering if librsvg is somehow involved.

We just can't use it or make new derivatives.

Ugly workaround: Upload an PNG version of the "original" and use the thumbnails / different size versions of that file? :-/

Ugly workaround: Upload an PNG version of the "original" and use the thumbnails / different size versions of that file? :-/

Yes, there is an option to convert that SVG file through e.g. Gimp into PNG file and upload that PNG version, but it is much more complicated to create like 20 SVG derivatives and then convert them all into PNG just to be sure they are displayed correctly at Wikimedia sites.

If removing the various gaussian blurs from the SVG helps, then this is T44090.

If removing the various gaussian blurs from the SVG helps, then this is T44090.

Yeah, you are right! But that issue with gaussian blur is the lowest priority :/ The gaussian blurs are unfortunately too important in this file :/ But overall thank you!