Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIFF issues with Gatsby Image #227

Closed
claygiffin opened this issue Dec 20, 2023 · 2 comments
Closed

TIFF issues with Gatsby Image #227

claygiffin opened this issue Dec 20, 2023 · 2 comments
Labels

Comments

@claygiffin
Copy link

TIFF images are not displayed when using gatsby-plugin-image. This is because the <source> elements have their type attribute set to type="image/tif". This attribute is actually incorrect because we are using imgix's auto-formatting capabilities to serve up a browser-compatible image to the user. If I remove that attribute via inspector, the image displays correctly.

I need some way to either disable the type attribute or have it display the correct data.

Additionally, is there a reason that TIFF images use the <picture> element rather than the <img> tag that pngs or jpgs use? Or is that decided by gatsby-plugin-image?

@matjack1
Copy link
Member

hey @claygiffin thank you for the report. We are going to have a look and we'll get back to you

@matjack1 matjack1 added the bug label Dec 21, 2023
@stefanoverna
Copy link
Member

@claygiffin v5.1.4 should fix the issues, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants