Add option to disable image animation

Changelog-Added: Add option to disable image animation
Closes: #707
This commit is contained in:
OlegAba
2023-02-28 16:40:51 -05:00
committed by William Casarin
parent 3fec9dd209
commit 0aff41d384
3 changed files with 28 additions and 5 deletions

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(),