mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
DEV: Remove gifsicle dependency (#10357)
Dependency on gifsicle, allow_animated_avatars and allow_animated_thumbnails site settings were all removed. Animated GIF images are still allowed, but the generated optimized images are no longer animated for those (which were used for avatars and thumbnails). The added 'animated' is populated by extracting information using FastImage. This field was used to selectively reoptimize old animations. This process happens in the background.
This commit is contained in:
@ -189,7 +189,7 @@ class UserAvatarsController < ApplicationController
|
||||
return if !upload
|
||||
return upload if upload.extension == "svg"
|
||||
|
||||
upload.get_optimized_image(size, size, allow_animation: SiteSetting.allow_animated_avatars)
|
||||
upload.get_optimized_image(size, size)
|
||||
# TODO decide if we want to detach here
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user