sanity-io / image-url

Tools to generate image urls from Sanity content
https://www.sanity.io/docs/presenting-images#mY9Be3Ph
MIT License
67 stars 23 forks source link

AVIF Image Format Support #26

Open iankduffy opened 4 years ago

iankduffy commented 4 years ago

Wondering if there are plans for AVIF Image Format Support for sanity images (https://jakearchibald.com/2020/avif-has-landed/) at the moment I have auto format on which in chrome 85, is getting webp images but this could be a AVIF image meaning even smaller images file size to be loaded on the site, in terms of web performance.

peterskogsberg commented 4 years ago

This would indeed be great, but I suspect from this library's perspective it'd just be the same auto=format parameter added, indicating that client accepts any supported format.

Edit: but please consider this an upvote too, anyways! :) Even if the changes may be on the back end side.

piersolenski commented 3 years ago

Now that this has dropped in Chrome and Firefox, as well as Gatsby adding support https://github.com/gatsbyjs/gatsby/pull/28742 - it'd be great to see Sanity supporting it too!

rexxars commented 3 years ago

It's coming, but there are a number of considerations given it's a very costly format to encode (10-15x that of JPEG/WebP). We're eager to deliver, but we want to make sure we get it right :)

ahdrage commented 3 years ago

Any update here? Supported at imgix also now. https://www.youtube.com/watch?v=ouUgppbKvlk&ab_channel=imgix

leo-cheron commented 2 years ago

Is there any plan to support it someday or has this idea been abandoned?

fmoessle commented 2 years ago

Any updates? Would love to see AVIF support <3

Kyoss79 commented 2 years ago

The documentation says:

q integer Quality 0-100. Specify the compression quality (where applicable). Defaults are 75 for JPG and WebP and 55 for AVIF.

So maybe it's here already? Can anyone confirm? Thinking about switching to sanity.

leo-cheron commented 2 years ago

The documentation says:

q integer Quality 0-100. Specify the compression quality (where applicable). Defaults are 75 for JPG and WebP and 55 for AVIF.

So maybe it's here already? Can anyone confirm? Thinking about switching to sanity.

autoformat still delivers webp, no sign of avif yet.

3backup commented 2 years ago

Any update there? I guess not but just letting you know it is something we would for sure implement!

stephenhmarsh commented 2 years ago

+1 we want avif! ๐Ÿ‘ we want avif! ๐Ÿ‘

peterskogsberg commented 2 years ago

...or are we skipping a format generation and going directly to JpegXL?

Seriously, it's been 20 months since "We're eager to deliver". @rexxars

ahdrage commented 1 year ago

avif bump!

HuyAms commented 1 year ago

I love to see AVIF too

j2is commented 1 year ago

Is this something that could be opt in, if you don't mind the extra cost of processing? It might be a nice ROI for certain websites

leo-cheron commented 1 year ago

Almost 3 years later, this standard is still missing :(

ps-kate commented 10 months ago

Any updates here?

fmoessle commented 8 months ago

Any news?

presto2116 commented 8 months ago

went searching for AVIF options with sanity, stumbled upon this issue. 3 years and no updates. ๐Ÿ˜ข

zabatonni commented 5 months ago

+1 avif is a must

ahdrage commented 5 months ago

Ode to Sanity, Thou Art Most Fair

In realms of code where Sanity doth reign, A platform vast, where structured dataโ€™s kept, A wondrous tool that doth developers gain, Yet one great woe hath countless eyes eโ€™er wept.

Four years and more, a promise once was made, To bring forth AVIF in all its grace, Yet still we wait, in hopeโ€™s long shadow laid, With eager hearts and tear-streaked, weary face.

Oh, Sanity, thy features rich and bright, Have brought us joy in many varied ways, Thou art a beacon in the coding night, But here we languish, longing for the days.

For AVIF, that format sleek and new, Could make thy splendor even more complete, Tens of developers, their tears like dew, Cry out for thee, with voices bittersweet.

Imagine then, a world where all is right, Where AVIF doth dance within thy frame, A place where joy and peace would reunite, And Sanity would earn yet greater fame.

So hark, ye builders of this mighty tool, To heed the pleas of those who love thee well, For once this gap is bridged, our hearts may cool, And in thy triumph, future stories tell.

Then let the world, with Sanity's embrace, Rejoice in harmony, both near and far, As AVIF finds its rightful place, And makes thee brighter than the morning star.

bobinska-dev commented 5 months ago

After we received this awesome poem we had to have another discussion and added this to our roadmap. We are aiming for Q1 next year ๐Ÿ™Œ

ciruz commented 3 months ago

Hey,

We are currently experiencing a Chromium bug (see: https://issues.chromium.org/issues/350944650) where images don't render correctly with Next.js and next/image. It's notable that the bug example also involves Next.js and Sanity, similar to our setup.

The only available workaround right now is to convert all images to the AVIF format (see: https://issues.chromium.org/issues/350944650#comment9).

Since we are affected by this issue and use Sanity as our CMS, we would like to switch to AVIF for all our images as a temporary fix.

patrulea commented 1 week ago

please make this happen ๐Ÿ™

rexxars commented 1 week ago

Hello everyone! You can now help us out by participating in the AVIF beta program: https://www.sanity.io/help/avif

iankduffy commented 1 week ago

Hello everyone! You can now help us out by participating in the AVIF beta program: https://www.sanity.io/help/avif

Thank you so much for updating on this old issue, will give it a trial. Is there a main github discussion on beta feedback.

rexxars commented 1 week ago

Is there a main github discussion on beta feedback.

Not currently, we are not expecting this to be in beta long before gradually rolling it out. Feel free to provide feedback to avif@sanity.io and/or in this issue.