Patch #13688 » attachment.rb.diff
| 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
|
||