All Projects → imagemin → Imagemin

imagemin / Imagemin

Licence: mit
[Unmaintained] Minify images seamlessly

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Imagemin

Compress Images
Minify size your images. Image compression with extension: jpg/jpeg, svg, png, gif. NodeJs
Stars: ✭ 331 (-93.31%)
Mutual labels:  minify, svg, gif, png
Optimizt
CLI image optimization tool
Stars: ✭ 594 (-88%)
Mutual labels:  svg, gif, png
Gulp Image
Optimize PNG, JPEG, GIF, SVG images with gulp task.
Stars: ✭ 213 (-95.7%)
Mutual labels:  gif, png, optimization
Libvips
A fast image processing library with low memory needs.
Stars: ✭ 6,094 (+23.16%)
Mutual labels:  svg, gif, png
QuickImageFX
Simplifying image manipulation using GDI, Graphics32, OpenCV or Vampyre Imaging libraries
Stars: ✭ 41 (-99.17%)
Mutual labels:  jpg, png, gif
Grunt Image
Optimize PNG, JPEG, GIF, SVG images with grunt task.
Stars: ✭ 201 (-95.94%)
Mutual labels:  gif, png, optimization
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 (-84.14%)
Mutual labels:  gif, png, jpg
alfred-imagemin
Alfred workflow - Minify images with Imagemin
Stars: ✭ 29 (-99.41%)
Mutual labels:  png, gif, imagemin
Leanify
lightweight lossless file minifier/optimizer
Stars: ✭ 694 (-85.97%)
Mutual labels:  minify, svg, png
Pyecharts Snapshot
renders the output of pyecharts as png, jpeg, gif, svg, eps, pdf and raw base64
Stars: ✭ 142 (-97.13%)
Mutual labels:  svg, gif, png
Ccapture.js
A library to capture canvas-based animations at a fixed framerate
Stars: ✭ 2,836 (-42.68%)
Mutual labels:  gif, png, jpg
image-optimizer
Image optimization using PHP
Stars: ✭ 28 (-99.43%)
Mutual labels:  jpg, png, gif
Nuxt Optimized Images
🌅🚀 Automatically optimizes images used in Nuxt.js projects (JPEG, PNG, SVG, WebP and GIF).
Stars: ✭ 717 (-85.51%)
Mutual labels:  svg, gif, optimization
tinypng-free
Use the upload api of tinypng's homeage to compress images
Stars: ✭ 29 (-99.41%)
Mutual labels:  jpg, png, imagemin
Govips
A lightning fast image processing and resizing library for Go
Stars: ✭ 442 (-91.07%)
Mutual labels:  svg, gif, png
highcharts-export-clientside
Module for Highcharts to exports charts client-side
Stars: ✭ 49 (-99.01%)
Mutual labels:  jpg, png
imagemin-power-cli
Optimize (compress) images with power using imagemin 💪
Stars: ✭ 13 (-99.74%)
Mutual labels:  minify, imagemin
Php Svg
Vector graphics (SVG) library for PHP
Stars: ✭ 256 (-94.83%)
Mutual labels:  svg, png
csso-webpack-plugin
CSSO full restructuring minification files to serve your webpack bundles
Stars: ✭ 104 (-97.9%)
Mutual labels:  optimization, minify
yoga-image-optimizer
A graphical tool to convert and optimize JPEG, PNG and WebP images (based on YOGA)
Stars: ✭ 85 (-98.28%)
Mutual labels:  png, optimization

imagemin

Minify images seamlessly





Install

$ npm install imagemin

Usage

import imagemin from 'imagemin';
import imageminJpegtran from 'imagemin-jpegtran';
import imageminPngquant from 'imagemin-pngquant';

const files = await imagemin(['images/*.{jpg,png}'], {
	destination: 'build/images',
	plugins: [
		imageminJpegtran(),
		imageminPngquant({
			quality: [0.6, 0.8]
		})
	]
});

console.log(files);
//=> [{data: <Buffer 89 50 4e …>, destinationPath: 'build/images/foo.jpg'}, …]

API

imagemin(input, options?)

Returns Promise<object[]> in the format {data: Buffer, sourcePath: string, destinationPath: string}.

input

Type: string[]

File paths or glob patterns.

options

Type: object

destination

Type: string

Set the destination folder to where your files will be written. If no destination is specified, no files will be written.

plugins

Type: Array

Plugins to use.

glob

Type: boolean
Default: true

Enable globbing when matching file paths.

imagemin.buffer(buffer, options?)

Returns Promise<Buffer>.

buffer

Type: Buffer

Buffer to optimize.

options

Type: object

plugins

Type: Array

Plugins to use.

Related

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].