Changesets can be listed by changeset number.
The Git repository is here.
Changeset 332
Increase image quality to fit within 800x600 (landscape) or 600x800 (portrait),
up from 640x480 (any orientation).
- Comitted by: rool
- Date: Saturday March 19 17:12:22 2011 (over 13 years ago)
Affected files:
rool/rails/gullery/trunk/app/models/asset.rb:
prev. | current | |
def resize_normal | ||
image = MiniMagick::Image.from_file(self.absolute_path(:original)) | ||
70 | | |
70 | if image.width > 800 || image.height > 800 | |
image.combine_options do |i| | ||
72 | | |
72 | i.resize((image.width > image.height) ? "800x600" : "600x800") | |
end | ||
end | ||
# TODO Refactor |