Code Monkey home page Code Monkey logo

Comments (4)

AdamQuadmon avatar AdamQuadmon commented on June 9, 2024

Checking it better I found that the served .jpg image is actually in image/avif format even if the file extension is still .jpg

I didn't saw any difference in file size

from gatsby.

frederickfogerty avatar frederickfogerty commented on June 9, 2024

Hi @AdamQuadmon, Fred from imgix here 👋 Thanks for opening the issue. Could you please share an example URL that this plugin is generating that is not being rendered as an AVIF despite having auto=format? Then I can investigate this further.

As response your later comments:

Checking it better I found that the served .jpg image is actually in image/avif format even if the file extension is still .jpg

This is the expected behaviour with imgix - we don't rewrite the url file extension

I didn't saw any difference in file size

What do you mean exactly by this? Between the JPG and the AVIF image? Or between the gatsby-sharp AVIF version and imgix AVIF version?

from gatsby.

AdamQuadmon avatar AdamQuadmon commented on June 9, 2024

I was just assuming to find the same behaviour in this plug in as for the gatsby-plugin-image one but I'm realizing they are different.

I checked better and there is some difference between JPG and AVIF

The original file is 1.6M
The JPG one 560kb (auto=compress)
The AVIF 512kb (auto=compress,format)

thanks for the quick reply!

from gatsby.

frederickfogerty avatar frederickfogerty commented on June 9, 2024

It seems to me that everything is working as expected at this stage so I'll close out this issue. If you're still facing issues please feel free to reply further and we can discuss.

from gatsby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.