odyniec / imgareaselect

ImgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr).
http://odyniec.net/projects/imgareaselect/
686 stars 197 forks source link

Aspect Ratio is not working properly #52

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi!

I choosed aspect ratio 10:3 to a image with: 500x150px.

If I select 500px width, I will get 100px height. On this website, http://andrew.hedges.name/experiments/aspect_ratio/ with same configurations, I can get the right value.

W1: 500 H1: 150

If I fill on W2 1000, on H2 I got 300.

With this plugin, on 1000px witdth, I got 200px.

Can somebody help me please?

Thanks