Increase the dimensions limit for gif QR thumbnailing. #968
This commit is contained in:
parent
8fe0c110a9
commit
72b92915e7
@ -481,6 +481,7 @@ QR =
|
|||||||
# so we generate thumbnails `s` times bigger then expected
|
# so we generate thumbnails `s` times bigger then expected
|
||||||
# to avoid crappy resized quality.
|
# to avoid crappy resized quality.
|
||||||
s = 90*2
|
s = 90*2
|
||||||
|
s *= 3 if @file.type is 'image/gif' # let them animate
|
||||||
{height, width} = img
|
{height, width} = img
|
||||||
if height < s or width < s
|
if height < s or width < s
|
||||||
@URL = fileURL if window.URL
|
@URL = fileURL if window.URL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user