Home > database >  Nodejs animated gifs Compressing or resizing [closed]
Nodejs animated gifs Compressing or resizing [closed]

Time:09-16

I received the uploaded image and resized it so that it can be used as a thumbnail using sharp.

But sharp doesn't seem to be able to resize animated gif files.

Sharp knows that you can save the first frame of a gif file as an image.

I would like to know if there is anything that can crop, resize, and compress a gif.

I don't know which library is there as an alternative.

Can you tell me what solution is there?

CodePudding user response:

You could use Nodejs plugin for Gifsicle https://www.npmjs.com/package/@gumlet/gif-resize

  • Related