Closed xariusdesai closed 3 years ago
@xariusdesai, hello! In other words, you want to get the behavior like image-restriction: none
but without the possibility to make an image smaller than a visible area?
@Norserium thats exactly what I'm looking to do. Is it possible to do currently?
@xariusdesai, I assume it's possible. Try this example.
@Norserium thanks for that, I need to make some tweaks depending on my use case but its got me most of the way there!
@xariusdesai, you are welcome!
Hi,
So I'm trying to get a functionality akin to this:
I want the image to be constrained to the cropper as in fit-area (ie. I can zoom in as much as I want, but can only zoom out as much as the max image height / width)
but I want to be able to use the crop itself like the image restriction is none (ie. I can add transparent areas to my crop).
My use case is that I want to create some square images from some rectangular ones, and sometimes I'll need the whole height/width so what I'm actually looking to do is pad the image into a square one.
Is there a way to currently do this?
Thanks