Is it possible to crop image proportionally using <p:imageCropper>
?
<p:imageCropper value="#{registerPetForm.croppedImage}" image="#{registerPetForm.uploadedFilename}" />
I would restrict users to crop image only in square format:
______
| | | |
| | | |
|______| V |
--------> |
_____________|
So with same width and height. I want to avoid a rectangle format:
__________
| |
|__________|
or
_____
| |
| |
| |
|_____|
How can I achieve this with <p:imageCropper>
?