Search code examples
javascriptimage-processingcropjcrop

limiting cropped picture aspect ratio with jcrop or it's alternatives


i am using jcrop to crop pictures on my websites. user can have any aspect ratio of the picture. is there any js library (or way to do it with jcrop) which would allow to limit aspect ratio so that user wouldn't be able to choose f.ex. too thin picture?


Solution

  • i just realised that limiting aspect ratios while selecting the wanted area can be very confusing for the user, so i decided to check the coordinates of selected area before it gets submitted and warn user if picture is too thin