SvenTiigi / WhatsNewKit

Showcase your awesome new app features 📱
https://sventiigi.github.io/WhatsNewKit/
MIT License
3.87k stars 190 forks source link

Adjust image resizing so that `fixed` preserves the aspect ratio #42

Closed AndrewBennet closed 4 years ago

AndrewBennet commented 4 years ago

Fixes https://github.com/SvenTiigi/WhatsNewKit/issues/41

This adjusts the image resizing code. As before, it produces a square image of the specified size. Instead of stretching the image to fit the square, it now fits the image within the target size, preserving its aspect ratio:

SvenTiigi commented 4 years ago

Hey @AndrewBennet,

Good job 👍

Your PR has been merged into the develop branch and the fix will be available with the next release of WhatsNewKit.