0

I'm working with an app based on Gif and after several weeks I noticed that the Gifs needed to be compressed in order for my app to run more smoothly. The problem is that I don't know how to compress the gifs that are stored on the Firebase Storage. Is there a way?

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
  • 1
    Do you mean that they take a long time to download? You can always try to size them down. Gifs aren't made for quality, they're made to have a low number of colors and pixels. – KTibow Apr 27 '20 at 20:22
  • Yes, my app takes a lot of time loading the gifs in the UIImageView. – demonisback Apr 27 '20 at 20:24
  • If it's user-generated pictures, I'd recommend WebP for its image size. – KTibow Apr 27 '20 at 20:27

1 Answers1

1

Compressing a GIF that is stored in Storage consists of these steps:

  1. Read the file from storage.
  2. Compress the GIF.
  3. Write the compressed data back to storage.
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807