- Notifications
You must be signed in to change notification settings - Fork55
Imagemin plugin for Gifsicle
License
NotificationsYou must be signed in to change notification settings
imagemin/imagemin-gifsicle
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Imagemin plugin forGifsicle
$ npm install imagemin-gifsicle
importimageminfrom'imagemin';importimageminGifsiclefrom'imagemin-gifsicle';(async()=>{awaitimagemin(['images/*.gif'],{destination:'build/images',plugins:[imageminGifsicle()]});console.log('Images optimized');})();
Returns aPromise<Buffer>
with the optimized image.
Type:object
Type:boolean
Default:false
Interlace gif for progressive rendering.
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.
- Stores only the changed portion of each image.
- Also uses transparency to shrink the file further.
- Try several optimization methods (usually slower, sometimes better results)
Type:number
Reduce the number of distinct colors in each output GIF to num or less. Num must be between 2 and 256.
Type:Buffer
Buffer to optimize.
About
Imagemin plugin for Gifsicle
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.