Giphy / giphy-ios-sdk

Home of the GIPHY SDK iOS example app, along with iOS SDK documentation, issue tracking, & release notes.
https://developers.giphy.com/
Mozilla Public License 2.0
116 stars 52 forks source link

Can we specify a max gif size? #218

Closed AdamBCo closed 1 year ago

AdamBCo commented 1 year ago

Describe your question in detail.

Is it possible to specify a max gif size for the GiphyViewController?

For example, I don't want gifs over 1M to be selectable.

cgmaier commented 1 year ago

hey @AdamBCo unfortunately this is not possible. however we do provide a downsized rendition for every GIF. This is guaranteed to be under 2MB.

access the downsized rendition URL for a GPHMedia like so

let downsizedURL = media.images?.downsized

hope this helps!