Page MenuHomePhabricator

PNG preview thumbnail of SVG file with HSL colors on Wikimedia commons is black
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):
I am trying to upload the icons i just created and published at http://wiki.bitplan.com/index.php/Pain_Scale to Wikimedia commons

What happens?:
The preview

https://commons.wikimedia.org/wiki/File:Pain0.svg
shows a black circle.

What should have happened instead?:

The color version https://upload.wikimedia.org/wikipedia/commons/f/f8/Pain0.svg should be correctly transformed to PNG or I should be able to correct the preview. I'd love to upload the other 10 icons but will wait until i get feedback on this problem.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Event Timeline

Aklapper renamed this task from Preview of SVG on Wikimedia commons is black to PNG preview thumbnail of SVG file on Wikimedia commons is black.Aug 4 2021, 1:19 PM
Aklapper added a project: Thumbor.

For the records, I cannot reproduce locally using librsvg 2.50.6 (way newer!) by running rsvg-convert -w 512 -f png -u -o Pain0.svg.png Pain0.svg

<radialGradient gradientUnits="userSpaceOnUse"> reminds me of T214738: Several thumbnail sizes of SVG with large gradientTransform fail

JoKalliauer triaged this task as Low priority.
JoKalliauer subscribed.

SVG 2.0 is not released till now. However it is still already reported upstream https://gitlab.gnome.org/GNOME/librsvg/-/issues/69

Is there some workaround by changing the gradient style, version or anything?

Given that HSL color space seems the problem i could probably simply use https://stackoverflow.com/a/2353265/1497139 and use rgb colors ...

I have now worked around the problem by using a HSL to RGB conversion in the script that creates the Icons. All 11 icons are now uploaded.

The preview files still do not render the gradient correctly.

Aklapper renamed this task from PNG preview thumbnail of SVG file on Wikimedia commons is black to PNG preview thumbnail of SVG file with HSL colors on Wikimedia commons is black.Aug 5 2021, 6:47 AM

Please feel free to report a separate issue, so we can keep this one for the HSL colors.

Please feel free to report a separate issue, so we can keep this one for the HSL colors.

@Aklapper Since it is anyhow a duplicate of T43426, I'm not sure if

  • we should close it as a duplicate
  • or we should rename this task about not supporting this radialGradient without cx="110" cy="110" r="110"