File talk:CP65-warning multilingual.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

No text in image

[edit]

What's wrong with this image?! There's no text in it. The whole point is to show a warning message, but it only shows outlines and arrows around the warning message, from what I'm seeing on multiple platforms. Even the PNG preview—as rendered by the Wikimedia Foundation's servers—is blank! — voidxor 23:48, 12 November 2023 (UTC)[reply]

Pinging the folks who uploaded or altered this image: @Calle Cool, Casiotone Nation, and SheepTester: — voidxor 01:28, 18 November 2023 (UTC)[reply]

I have now ask this question at the german graphics workshop too.--Calle Cool (talk) 07:27, 18 November 2023 (UTC)[reply]
My browser renders the raw SVG fine. This seems to be a bug with librsvg, see phab:T335361. The Phabricator discussion seems to indicate that this has been fixed, but some of the renders mentioned in the issue, e.g. this one, are still broken.
I'm not sure what exactly is causing the issue because other renders noted in the issue are working properly. I will say that this particular SVG looks suspicious in that it uses the same id tag on multiple elements. Casiotone Nation (talk) 08:50, 18 November 2023 (UTC)[reply]
It's because the SVG file uses localization, but it doesn't define any text if your renderer's locale isn't German or English, so it becomes blank. If you select various languages in the "Render this image in" dropdown, you will get different results:
I guess the PNG preview in some places, like the changelog for me, does not define a language when rendering the SVG, so it gets the blank text version too. SheepTester (talk) 17:10, 21 November 2023 (UTC)[reply]
Note that the English link you provided doesn't explicitly specify langen like the other two do, but it renders correctly.
For me, the language code also isn't explicitly provided for the default (800px) and suggested (320px, 640px, 1024px, 1090px, 1280px, and 2560px) render sizes, yet those do not render correctly.
This is blank for me: https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/CP65-warning_multilingual.svg/1090px-CP65-warning_multilingual.svg.png
This is not blank for me: https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/CP65-warning_multilingual.svg/1091px-CP65-warning_multilingual.svg.png
The only difference between those URLs is the render size, and it's just a 1 pixel difference. The one that renders correctly is not a typical resolution, so perhaps there's also a caching issue involved here? Casiotone Nation (talk) 17:53, 21 November 2023 (UTC)[reply]