nymo / gulp-tinypng-extended Goto Github PK
View Code? Open in Web Editor NEWThis project forked from stnvh/gulp-tinypng-compress
TinyPNG API wrapper for compressing PNG & JPG images
License: MIT License
This project forked from stnvh/gulp-tinypng-compress
TinyPNG API wrapper for compressing PNG & JPG images
License: MIT License
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.
TinyPng offers an api for preserving the metadata like copyright, creation and location. It would be nice if the plugin could offer this kind of feature either.
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.
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.
Try to re-upload the image when receiving a gateway error. The count for the attempt should be configurable for the user.
It should be possible to override the original file instead of generating a new compressed one file.
warning elixir-tinypng > gulp-tinypng-extended > request > [email protected]: Use uuid module instead
Thoughts?
Current url is not up to date
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.