GithubHelp home page GithubHelp logo

rlugojr / imagemin-jpeg-recompress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imagemin/imagemin-jpeg-recompress

0.0 2.0 0.0 1.12 MB

jpeg-recompress imagemin plugin

Home Page: https://github.com/danielgtaylor/jpeg-archive#jpeg-recompress

License: MIT License

JavaScript 100.00%

imagemin-jpeg-recompress's Introduction

imagemin-jpeg-recompress Build Status Build status

jpeg-recompress imagemin plugin

Install

$ npm install --save imagemin-jpeg-recompress

Usage

const imagemin = require('imagemin');
const imageminJpegRecompress = require('imagemin-jpeg-recompress');

imagemin(['images/*.jpg'], 'build/images', {
	plugins: [
		imageminJpegRecompress()
	]
}).then(() => {
	console.log('Images optimized');
});

API

imageminJpegRecompress([options])(buffer)

options

accurate

Type: boolean
Default: false

Favor accuracy over speed.

quality

Type: string
Default: medium

Set a quality preset. Available presets: low, medium, high and veryhigh.

method

Type: string
Default: ssim

Set comparison method. Available methods: mpe, ssim, ms-ssim and smallfry.

target

Type: number
Default: 0.9999

Set target quality.

min

Type: number
Default: 40

Minimum JPEG quality.

max

Type: number
Default: 95

Maximum JPEG quality.

loops

Type: number
Default: 6

Set the number of attempts.

defish

Type: number
Default: 0

Set defish strength.

progressive

Type: boolean
Default: true

Enable progressive encoding.

subsample

Type: string
Default: default

Set subsampling method. Available values: default, disable.

strip

Type: boolean
Default: true

Strips metadata, such as EXIF data.

buffer

Type: buffer

Buffer to optimize.

License

MIT © imagemin

imagemin-jpeg-recompress's People

Contributors

kevva avatar leachim2k avatar shinnn avatar sindresorhus avatar timdp avatar

Watchers

 avatar  avatar

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.