-
- Téléchargements
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
parent
3c35b34b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/javascript/mastodon/utils/resize_image.js 4 ajouts, 14 suppressionsapp/javascript/mastodon/utils/resize_image.js
- app/models/media_attachment.rb 3 ajouts, 3 suppressionsapp/models/media_attachment.rb
- lib/paperclip/lazy_thumbnail.rb 10 ajouts, 3 suppressionslib/paperclip/lazy_thumbnail.rb
- spec/models/media_attachment_spec.rb 3 ajouts, 3 suppressionsspec/models/media_attachment_spec.rb
Veuillez vous inscrire ou vous se connecter pour commenter