A
A
Alexander Balya2020-08-20 19:52:59
npm
Alexander Balya, 2020-08-20 19:52:59

How to generate avif via gulp or webpack?

Support for avifthe image format has appeared in Chrome since version 85. So, it's time to reconfigure the collectors to generate additional formats in the same way webp, so that optimized versions are created from sources and copied next to the original ones in different formats.
For webpthe problem is solved using for example gulp-webpor imagemin-webp-webpack-plugin, but for avifme I did not find ready-made solutions.
Perhaps someone has already figured out how to implement this task?

AV1_logo_2018.svg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dean992008, 2021-02-04
@Balya

Made a plugin for Gulp, while it's beta, but you can try. https://www.npmjs.com/package/gulp-avif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question