logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 81c41d86814a3cc07baea2e1ff458aca6c374954
parent: ec3be87a2b75b6a84a013bab9bf4d80b0f6452a7
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date:   Tue,  8 Aug 2017 22:49:14 +0900

Add coalesce option to avatar and header convert processor (#4552)

Resolve #3199

Diffstat:

Mapp/models/concerns/account_avatar.rb2+-
Mapp/models/concerns/account_header.rb2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/models/concerns/account_avatar.rb b/app/models/concerns/account_avatar.rb @@ -8,7 +8,7 @@ module AccountAvatar class_methods do def avatar_styles(file) styles = { original: '120x120#' } - styles[:static] = { format: 'png' } if file.content_type == 'image/gif' + styles[:static] = { format: 'png', convert_options: '-coalesce' } if file.content_type == 'image/gif' styles end diff --git 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] = { format: 'png', convert_options: '-coalesce' } if file.content_type == 'image/gif' styles end