Closed stockfx0 closed 4 years ago
So you want to be able to use aspect ratios when using the resizer (i.e. 1:1 for instagram)?
My use case for this is that I have a website that require game box art/covers be in a 3:4 ratio https://www.igdb.com/contribution_guidelines?page=cover
My input images into the resizer are all variable sizes, so being able to fill according to aspect ratio would be great.
So you want to be able to use aspect ratios when using the resizer (i.e. 1:1 for instagram)?
I want to change resolution with saving of ratio
If - when using fit - you set width to your desired amount and height to 0 this sets height to auto which in turn preserves your aspect ratio. Have an eye on your picture orientation set though, since it takes the longer side automatically as width disregarding the ignore rotation setting being on or off. But apart from this keeping aspect ratio works like this at least with the latest build.
Note: If using this for responsive images (srcset) in web development to save user bandwidth you might find that the compression setting doesn't do a good job regarding file sizes, so be careful if your critical about that.
Please make an ability for image resizer to change resolution with saving of proportions. For example, there's a couple of pictures I want to make Telegram stickers, so I change width to 512px and height changes with same aspect ratio as was before(for example, 1024 768 to 512 384).