-
|
I have a image 200x200 and using the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
I would recommend using There are a lot of other options to |
Beta Was this translation helpful? Give feedback.
-
|
Ah, yes, to change aspect ratio you will need to add the |
Beta Was this translation helpful? Give feedback.
-
|
Glad that's working for you now! |
Beta Was this translation helpful? Give feedback.
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.