Add option to disable image animation

Changelog-Added: Add option to disable image animation
Closes: #707
This commit is contained in:
OlegAba authored and William Casarin committed 2023-03-04 17:49:39 -05:00
1 parent 3fec9dd209
commit 0aff41d384
3 files changed
+28 -5

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ extension KFOptionSetter {
options.backgroundDecode = true
options.cacheOriginalImage = true
options.scaleFactor = UIScreen.main.scale
options.onlyLoadFirstFrame = should_disable_image_animation()
options.processor = CustomImageProcessor(
maxSize: imageContext.maxMebibyteSize(),