discourse/app
David Taylor 137e06a316
FIX: Ensure 'crop' always returns requested dimensions (#16437)
Previously, 'crop' would resize the image to have the requested width, then crop the height to the requested value. This works when cropping images vertically, but not when cropping them horizontally.

For example, trying to crop a 500x500 image to 200x500 was actually resulting in a 200x200 image. Having an OptimizedImage with width/height columns mismatching the actual OptimizedImage width/height causes some unusual issues.

This commit ensures that a call to `OptimizedImage.crop(from, to, width, height)` will always return an image of the requested width/height. The `w x h^` syntax defines minimum width/height, while maintaining aspect ratio.
2022-04-19 11:21:24 +01:00
..
assets FIX: Issues with incorrect unread and private message topic tracking state (#16474) 2022-04-19 11:37:01 +10:00
controllers FIX: Do not show visibility topic if visible (#16478) 2022-04-18 11:16:30 +03:00
helpers update email dark mode styles (#16484) 2022-04-14 15:08:09 -05:00
jobs DEV: Accept force_respect_seen_recently argument in UserEmail job (#16460) 2022-04-18 13:32:11 -05:00
mailers REFACTOR: Add full_url to Group 2022-04-14 11:53:57 +02:00
models FIX: Ensure 'crop' always returns requested dimensions (#16437) 2022-04-19 11:21:24 +01:00
serializers FEATURE: add user_suspended attribute in post serialize. (#16413) 2022-04-13 19:58:09 +05:30
services DEV: Remove scoped order warning in PostDestroyer. 2022-04-13 09:34:36 +08:00
views FIX: Email styles for Gmail app dark mode (#16482) 2022-04-14 15:03:06 -04:00