We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,
I am trying to crop an image. I've used the resize(); function but this changes the proportions of the image. Does anyone know how to crop an image without stretching it? I only want it to scale up and down within the decided size (or mask).
Hope it makes sense!
Thanks,
Jonathan
Answers
image1.get(....)
Perfect! This is exactly what I was looking for. Thanks a lot!
You can use resize with 0 as other parameter - then it scales properly/ proportionally
Great!
I thought it worked. Maybe I'm doing it wrong. Can you define a mask and add an image into this? I want to keep all the images I use the same size and scaled within the box/mask? :)
Thanks!
There are different situations maybe?
When it's landscape or portrait format?
You need to figure out longer side the use resize with one parameter being 0 (and afterwards cut it with get...?)