This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Set false to animated options for thumbnail processor (
#4547
)
Resolve
#3199
Fix the aspect ratio of animated GIF whose background is transparent.
master
Yamagishi Kazutoshi
7 years ago
committed by
Eugen Rochko
parent
41c3389d76
commit
87f10d476c
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/concerns/account_avatar.rb
+1
-1
app/models/concerns/account_header.rb
+ 1
- 1
app/models/concerns/account_avatar.rb
View File
@ -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
]
=
{
animated
:
false
}
if
file
.
content_type
==
'image/gif'
styles
end
+ 1
- 1
app/models/concerns/account_header.rb
View File
@ -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
Write
Preview
Loading…
Cancel
Save