Patch #13688 » attachment.rb.diff
app/models/attachment.rb (working copy) | ||
---|---|---|
188 | 188 |
size = options[:size].to_i |
189 | 189 |
if size > 0 |
190 | 190 |
# Limit the number of thumbnails per image |
191 |
size = (size / 50) * 50
|
|
191 |
size = ((size + 49) / 50) * 50
|
|
192 | 192 |
# Maximum thumbnail size |
193 | 193 |
size = 800 if size > 800 |
194 | 194 |
else |