question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Animated GIF Support for Storage Resize Images?

See original GitHub issue

[READ] Step 1: Are you in the right place?

Issues filed here should be about a feature request for a specific extension in this repository. To file a feature request that affects multiple extensions or the Firebase Extensions platform, please reach out to Firebase support directly.

[REQUIRED] Step 2: Extension name

This feature request is for extension: storage-resize-images

What feature would you like to see?

Animated GIF support

How would you use it?

Similar to how other formats are used.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
otopbacommented, Dec 21, 2021

This is a feature I’m really looking forward to for my project

2reactions
dackers86commented, Feb 23, 2021

As part of an investigation, we have attempted to create an example that could suit our needs.

Using the following as a basic example…

const sharp = require("sharp");

(async () => {
  console.log("Starting >>>");

  const buffer = await sharp("./test.gif", {
    animated: true,
  })
    .resize(60)
    .gif({
      pageHeight: 60,
    })
    .toFile("resized.gif");
})();

Removing resize and ‘pageHeight’, produce a working animated gif.

image

However, with resize and pageHeight included, the following is generated…

image

This was tested on macOs 10.15.7, ideally we may be able to continue with a proof of concept and more comprehensive instructions on how to add configuration.

Perhaps waiting for the next iteration here https://github.com/lovell/sharp/issues/2275 could be a potential solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

Animated GIFs • Documentation - ImageBoss
ImageBoss supports Animated GIFs resizing and cropping on the fly. By default if you ask to resize a gif image we will take...
Read more >
7 Easy Tips To Resize And Optimize Animated GIFs - Creatopy
Reduce the image size of your animated GIFs with these simple tips and tricks! Use the best alternatives for a GIF compressor.
Read more >
Full Review of 5 Best GIF Resizer Tools - AnyMP4
GIMP (GNU Image Manipulation Program) is a free and open-source GIF editor that can help you resize animated GIF files. It is compatible...
Read more >
Top 5 GIF Resizers on Windows/Online in 2022 - EaseUS
#1. Ezgif ... Ezgif is an online image resizer. You can use this program to resize, crop, or flip animated GIFs and other...
Read more >
Resize GIF — Change GIF Size - Kapwing
With the free online GIF resizer by Kapwing, you can change the aspect ratio to post your favorite animated GIFs on Twitter, Discord,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found