All Projects → fulme → tinypng-free

fulme / tinypng-free

Licence: other
Use the upload api of tinypng's homeage to compress images

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tinypng-free

Imagemin
[Unmaintained] Minify images seamlessly
Stars: ✭ 4,948 (+16962.07%)
Mutual labels:  jpg, png, imagemin
gulp-tinypng-compress
TinyPNG API wrapper for compressing PNG & JPG images
Stars: ✭ 49 (+68.97%)
Mutual labels:  gulp, tinypng
autosvg
Autosvg is tracing tool, which can convert image format like (jpg,png,gif) into vector
Stars: ✭ 35 (+20.69%)
Mutual labels:  jpg, png
wordpress-plugin
Speed up your WordPress website. Optimize your JPEG and PNG images automatically with TinyPNG.
Stars: ✭ 78 (+168.97%)
Mutual labels:  jpg, png
Imageviewer
HDR, PFM, DDS, KTX, EXR, PNG, JPG, BMP image viewer and manipulator
Stars: ✭ 71 (+144.83%)
Mutual labels:  jpg, png
Gimage
A PHP library for easy image handling. 🖼
Stars: ✭ 148 (+410.34%)
Mutual labels:  jpg, png
alfred-imagemin
Alfred workflow - Minify images with Imagemin
Stars: ✭ 29 (+0%)
Mutual labels:  png, imagemin
ee.Screen
Takes screenshots of web pages for the list of URLs. Various resolutions, multiple formats (JPG, PDF, PNG and TXT)
Stars: ✭ 19 (-34.48%)
Mutual labels:  jpg, png
oculante
A minimalistic crossplatform image viewer written in rust
Stars: ✭ 169 (+482.76%)
Mutual labels:  jpg, png
save-html-as-image
Download the HTML (DOM) to Image (JPG, PNG)
Stars: ✭ 26 (-10.34%)
Mutual labels:  jpg, png
Optimise Images
Batch image resizer, optimiser and profiler using ImageMagick convert, OptiPNG, JpegOptim and optional ZopfliPNG, Guetzli and MozJPEG.
Stars: ✭ 64 (+120.69%)
Mutual labels:  jpg, png
dom-to-image-more
Generates an image from a DOM node using HTML5 canvas
Stars: ✭ 231 (+696.55%)
Mutual labels:  jpg, png
Image Optimizer
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
Stars: ✭ 785 (+2606.9%)
Mutual labels:  jpg, png
Ccapture.js
A library to capture canvas-based animations at a fixed framerate
Stars: ✭ 2,836 (+9679.31%)
Mutual labels:  jpg, png
Quickshot
Capture images of any View, SurfaceView or Bitmap from your Android app in: .jpg .png or .nomedia with simple oneliner codes.
Stars: ✭ 663 (+2186.21%)
Mutual labels:  jpg, png
Gulp Image
Optimize PNG, JPEG, GIF, SVG images with gulp task.
Stars: ✭ 213 (+634.48%)
Mutual labels:  gulp, png
highcharts-export-clientside
Module for Highcharts to exports charts client-side
Stars: ✭ 49 (+68.97%)
Mutual labels:  jpg, png
Exifr
📷 The fastest and most versatile JS EXIF reading library.
Stars: ✭ 448 (+1444.83%)
Mutual labels:  jpg, png
HEIF
Mac OS X: Convert any image to HEIF/HEIC format
Stars: ✭ 58 (+100%)
Mutual labels:  jpg, png
3dn-bip
A Python library for Blender addons. Blazingly fast preview loads in Blender. Images of arbitrary size. bpy.utils.previews drop-in replacement.
Stars: ✭ 41 (+41.38%)
Mutual labels:  jpg, png

gulp-tinypng-free

Use the upload api of tinypng's homeage to compress images, so can use it without key.

  • 模拟用户上传和下载的行为,来得到压缩图片,突破使用官网api每月500张限制
  • 通过hash摘要缓存已压缩的文件,只针对有变化的文件进行压缩,避免了重复劳动,提高效率

Why

图片是影响页面加载速度的重要因素,文本代码通常不会很大,在服务端开启gzip压缩可以有一个比较大的压缩率。 但图片本身就是经过压缩的,所以gzip基本不会有任何作用,所以tinypng值得你拥有! 保守估计,本插件可以压缩掉40% ~ 50%, 而对图片质量影响很小! 相比而言,大家熟知的imagemin能压缩10%就不错了。

Install

$ npm i gulp-tinypng-free

How to use

var gulp = require('gulp');
var tinypngFree = require('gulp-tinypng-free');

gulp.task('tinypng', function(cb) {
    gulp.src('src/*')
        .pipe(tinypngFree({}))
        .pipe(gulp.dest('dist'));
});

API

tinypngFree([options])

Returns Stream containing compressed images

options

Type: Object Default: {}

Sets options described below from its properties.

options.signFile

Type: String Default: ./sign.json

If set to a filename, it will compare existing source file md5 signatures against those found in the file's json data. When the signatures match, the file is skipped from being minified again, allowing you to better stay within your API request limits. When an image is minified, the md5 signature is determined from the unminified source image and written to the file at options.sigFile (a suggested location would be somewhere under your source control).

Signatures are based off the unminified source image, so that when the source changes it will be re-minified and re-written to the destination file.

options.force

Type: Boolean Default: false

Force compress images regardless of signature. Value can either be true to force all images, or a glob pattern string to match against the filename(s).

Intro

need upload files, so it may be unstable.Recommand to move this to the end of task.

尽量放到任务的最后一步,因为这个过程是要上传图片,再下载图片的,和网络稳定有关

Reference

https://github.com/creativeaura/gulp-tinypng
https://github.com/stnvh/gulp-tinypng-compress
https://github.com/paper/gulp-tinypng-nokey

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].