gbif / portal16

GBIF.org website
https://www.gbif.org
Apache License 2.0
24 stars 15 forks source link

svg thumbor issue #1571

Open MortenHofft opened 3 years ago

MortenHofft commented 3 years ago

Issue from @ManonGros one of our publisher wondering why their logo is so dark on their publisher page this is the publisher page: https://www.gbif.org/publisher/867a53f4-2f2d-4932-be6a-f46566255371 this is their logo: http://botaanikaaed.ee/wp-content/themes/botaanikaaed/assets/dist/gfx/botaanikaaed_logo.svg

It's a vector logo (which is good), but the portal feeds it through Thumbor. Thumbor probably isn't great with vector graphics.

we can detect images with an svg ending and not feed them through thumbor

MortenHofft commented 3 years ago

@MattBlissett let me know if the issue cannot be fixed in thumbor. Caching is useful if possible.

MattBlissett commented 1 year ago

Their logo URL has changed, but at least https://botaanikaaed.ee/wp-content/uploads/2022/02/Botaanika-Aed-Logo.svg when put through the newer Thumbor is more acceptable. I think the SVG library is still affecting the background, maybe it doesn't deal well with transparency.