From 87f10d476cf7a05bc60851c93e3c051eca8c357e Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Mon, 7 Aug 2017 21:41:21 +0900 Subject: Set false to animated options for thumbnail processor (#4547) Resolve #3199 Fix the aspect ratio of animated GIF whose background is transparent. --- app/models/concerns/account_header.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/concerns/account_header.rb') diff --git a/app/models/concerns/account_header.rb b/app/models/concerns/account_header.rb index 4ba9212a2..542e25abe 100644 --- a/app/models/concerns/account_header.rb +++ b/app/models/concerns/account_header.rb @@ -8,7 +8,7 @@ module AccountHeader class_methods do def header_styles(file) styles = { original: '700x335#' } - styles[:static] = { format: 'png' } if file.content_type == 'image/gif' + styles[:static] = { animated: false } if file.content_type == 'image/gif' styles end -- cgit