]> cat aescling's git repositories - mastodon.git/commit
Resize images by area instead of fixed dimensions (#8083)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 28 Jul 2018 01:33:00 +0000 (03:33 +0200)
committerGitHub <noreply@github.com>
Sat, 28 Jul 2018 01:33:00 +0000 (03:33 +0200)
commit0fb0037ca7ea9910b490818a1cc13f4005ba6134
tree14e6979b62c92c46d81f8d20315baf9686f3fa17
parent3c35b34b612c210c97ce8cffda33798ffa8f22e8
Resize images by area instead of fixed dimensions (#8083)

To improve the way super tall or super ride images are treated, the
numbers remain the same, 1280x1280 and 400x400, but if an image
is less in one dimension than the other, the other can become larger

Thanks to @WAHa_06x36@mastodon.social for the tip
app/javascript/mastodon/utils/resize_image.js
app/models/media_attachment.rb
lib/paperclip/lazy_thumbnail.rb
spec/models/media_attachment_spec.rb