kucas.blogg.se

Npm tinypng
Npm tinypng








npm tinypng

If set to a filename, it will compare existing source file md5 signatures against those found in the file's json data. Your TinyPNG API key to use for requests options.sigFile If type is not object, string presumed (the API key) options.key Sets options described below from its properties. Returns Stream containing compressed images options Var tinypng = require( 'gulp-tinypng-extended') To run tests: npm test Example var gulp = require( 'gulp') Install with npm - In your project folder, run: npm install gulp-tinypng- extended

  • Added check for empty or broken images to be skipped and not send.
  • On error the signature file is still being written for all successfully compressed files.
  • On error the plugin tries on default 10 times a reattempt and simply skips the image if the server is still not reachable (Thanks to the next images.
  • Fixed Problem with Bad Gateway errors receiving from the api.
  • Updated minimatch plugin to current version to avoid deprecated warnings.
  • npm tinypng

  • Added new option (keepOriginal) to override the original image instead of creating a new compressed file in the output path.
  • Currently only copyright and creation date is supported.
  • Added new option (keepMetadata) to preserve metadata.
  • Main differences from gulp-tinypng-compress TinyPNG API wrapper for compressing PNG & JPG imagesĪn actively maintained & developed fork of gulp-tinypng-compress.










    Npm tinypng