Increase the dimensions limit for gif QR thumbnailing. #968

This commit is contained in:
Nicolas Stepien 2013-03-24 18:02:17 +01:00
parent 8fe0c110a9
commit 72b92915e7

View File

@ -481,6 +481,7 @@ QR =
# so we generate thumbnails `s` times bigger then expected
# to avoid crappy resized quality.
s = 90*2
s *= 3 if @file.type is 'image/gif' # let them animate
{height, width} = img
if height < s or width < s
@URL = fileURL if window.URL