]> cat aescling's git repositories - mastodon.git/commit
Fix performance of GIF re-encoding (#12057)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 2 Oct 2019 23:09:12 +0000 (01:09 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2019 23:09:12 +0000 (01:09 +0200)
commitca22a22d7f4db867ad0045a7978e3d8dcd251a69
tree22c20a985b89af6f3cdcd6717ddbb11c748804c2
parent0ce0baa9b5799be61fed7fc509837ca0ba971402
Fix performance of GIF re-encoding (#12057)

* Change animated GIF detection to not shell out to ImageMagick

Signed-off-by: Eugen Rochko <eugen@zeonfederated.com>
* Change video encoding parameters to limit to 10800 video frames

Signed-off-by: Eugen Rochko <eugen@zeonfederated.com>
* Limit GIF image size further

Signed-off-by: Eugen Rochko <eugen@zeonfederated.com>
* Always strip metadata from video files

* Fix code style issues
app/models/concerns/attachmentable.rb
app/models/media_attachment.rb
lib/paperclip/gif_transcoder.rb
lib/paperclip/video_transcoder.rb