mahnunchik / gulp-responsive

gulp-responsive generates images at different sizes
https://npmjs.com/gulp-responsive
MIT License
503 stars 60 forks source link

Support for AVIF? #153

Open cssagogo opened 3 years ago

cssagogo commented 3 years ago

It looks like AVIF is not supported though it appears that it is by sharp. From the sharp site...

The typical use case for this high speed Node.js module is to convert large images in common formats to smaller, web-friendly JPEG, PNG, AVIF and WebP images of varying dimensions.

But in the console i get the following...

Expected one of: heic, heif, jpeg, jpg, png, raw, tiff, webp for format but received unsupported of type string

Is there a plan to add support for this?

cssagogo commented 3 years ago

Is this just a matter of updating to the most recent version of sharp v0.28.3?

steakpinball commented 3 years ago

Updating sharp is a necessary step since support for AVIF was added in version 0.27. I don't know if work is needed beyond that.