Project

General

Profile

Patch #13688 » attachment.rb.diff

Stanislav German-Evtushenko, 2013-04-04 21:31

View differences:

app/models/attachment.rb (working copy)
size = options[:size].to_i
if size > 0
# Limit the number of thumbnails per image
size = (size / 50) * 50
size = ((size + 49) / 50) * 50
# Maximum thumbnail size
size = 800 if size > 800
else
(1-1/2)