Closed tschaffter closed 11 months ago
When an image is available in SVG format, we could also have a bitmap version of it, or more simply, always have a bitmap image with a predefined extension for all the images (e.g. png
). However, this approach would require to deal with multiple files for a given image, which would increase the complexity of the setup.
It looks like LinkedIn is behaving differently specifically in the case where the image URL ends with svg
. Adding a dummy query parameter to the URL is enough to trick LinkedIn into accepting the image. Also, it seems that the query parameter is simply ignored by Thumbor.
https://dev.openchallenges.io/img/6IP26BBsWLts21OynZ4HfpfSTag=/140x140/logo/ibm.svg
https://dev.openchallenges.io/img/6IP26BBsWLts21OynZ4HfpfSTag=/140x140/logo/ibm.svg?a=2
Important Thumbor is configured to always return a PNG image independently of format and file extension of the image in the S3 bucket. We are loosing the benefit of the light weight of the SVG files but we gain in standardization as all the images returned by Thumbor have the same MIME type.
Cc: @rrchai @vpchung See note above about the image format returned by Thumbor.
In #2127, I'm tricking LinkedIn by adding the dummy suffix ?seo=true
if the image URL ends with "svg". This enables LinkedIn to use the image to build its rich card.
What product(s) is this feature for?
OpenChallenges
Description
LinkedIn needs the extension of the image to be bitmap - or at least not
.svg
, otherwise the image won't be used. Using an image with.png
works. It does not matter what the file format is, LinkedIn looks only at the extension. This is annoying because we have organization images that have an.svg
extension.See LinkedIn - Make your website shareable on LinkedIn
The goal of this task is to enable the developer to generate an image URL that ends with one of the extension supported by LinkedIn or preferably, with an extension that all social media site support (e.g.
.png
).Anything else?
No response
Code of Conduct