GithubHelp home page GithubHelp logo

imagemin-avif's Introduction

๐Ÿ‘‹ Hi, Iโ€™m @delfimov. I'm a fullstack web-developer.

My stack is: Linux, Nginx, PHP, Python, MySQL, Redis, Sphinxsearch, HTML5, CSS3, SCSS, Javascript, ES6, Gulp, Git, CI/CD, etc.

I follow DRY, KISS, SOLID principles, and other best practices.

Feel free to contact me through Telegram t.me/delfimov or email [email protected].

imagemin-avif's People

Contributors

benjibee avatar delfimov avatar j9t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

damianof xiefucai

imagemin-avif's Issues

Install fails on M1 Mac

Sharp support arm64 on MacOS since v0.28.0, this package is using v0.27.1 which causes the install to fail on and M1 Mac. I've opened a pull request with an updated version of sharp.

Converted files are saved with original file extension

First of all: This thing works great!

The only thing I stumbled upon was the fact that the newly created files still have their original file name (.jpg in my case).
Any ideas why they don't end with .avif and how to fix it?

where is the callback defined in this file?

'use strict';
const sharp = require('sharp');
const PluginError = require('plugin-error');

const defaultOptions = {
  quality: 90,
  lossless: false,
  speed: 5,
  chromaSubsampling: '4:2:0'
}

module.exports = options => async buffer => {
  return await sharp(buffer)
    .avif(Object.assign(defaultOptions, options))
    .toBuffer()
    .catch((err) => {
      callback(new PluginError('imagemin-avif', err));x
    });
};

wher is the callback function defined in the catch function?

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.