Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Imagemin plugin for Gifsicle

License

NotificationsYou must be signed in to change notification settings

imagemin/imagemin-gifsicle

Repository files navigation

Imagemin plugin forGifsicle

Install

$ npm install imagemin-gifsicle

Usage

importimageminfrom'imagemin';importimageminGifsiclefrom'imagemin-gifsicle';(async()=>{awaitimagemin(['images/*.gif'],{destination:'build/images',plugins:[imageminGifsicle()]});console.log('Images optimized');})();

API

imageminGifsicle(options?)(buffer)

Returns aPromise<Buffer> with the optimized image.

options

Type:object

interlaced

Type:boolean
Default:false

Interlace gif for progressive rendering.

optimizationLevel

Type:number
Default:1

Select an optimization level between1 and3.

The optimization level determines how much optimization is done; higher levels take longer, but may have better results.

  1. Stores only the changed portion of each image.
  2. Also uses transparency to shrink the file further.
  3. Try several optimization methods (usually slower, sometimes better results)
colors

Type:number

Reduce the number of distinct colors in each output GIF to num or less. Num must be between 2 and 256.

buffer

Type:Buffer

Buffer to optimize.

About

Imagemin plugin for Gifsicle

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp