|
I have a image 200x200 and using the |
Answered by
kipcole9
Aug 3, 2023
Replies: 3 comments 2 replies
|
I would recommend using There are a lot of other options to |
1 reply
|
Ah, yes, to change aspect ratio you will need to add the |
1 reply
|
Glad that's working for you now! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Image.resize/2is a scaling function and probably not what you're after.I would recommend using
Image.thumbnail/3with something likeImage.thumbnail(my_image, "200x400"). Or if you want to keep the aspect ratio of the imageImage.thumbnail(my_image, 400)will ensure the longest side is 400px and the shortest size is resized to keep the aspect ratio.There are a lot of other options to
Image.thumbnail/3so let me know if you have any other questions.