Git Product home page Git Product logo

gulp-tinypng-extended's People

Contributors

creativeaura avatar dependabot[bot] avatar eugenebalabai avatar kevinranks avatar nymo avatar stnvh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gulp-tinypng-extended's Issues

plugin breaks when file not found

Currently the plugin breaks when the filename has some special chars or encoding problems and could not be found. When this happens then the image should be skipped and the plugin should continue.

exception in request.js with empty or broken image

When you try to send an empty or broken image to the api the plugin crashes with an exception error in the request.js file

request.js:629
throw new Error('Argument error, options.body.')
^
Error: Argument error, options.body.

502 gateway timeout should not stop plugin

If the API returns an 502 gateway timeout the plugin should not stop the process of the img generation and continue with a timeout of some seconds or just contiune and ignore the gateway timeout. Because on a break the signature files are not being written and you start again with the first file which is bad because your api counts are used twice for the same files.

Another solution could be to write the signature file on a break to keep the information about the already compressed images.

plugin breaks on empty body

Currently the application breaks with an error when an empty body is being received. This is beacause there is no check on the body type/length before creating a new Buffer object.

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.