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

True width/height and aspect ratio rounding issue #66

Open veksen opened 10 years ago

veksen commented 10 years ago

There is some rounding issue problem when working with a fixed aspect ratio with true width/height (imageWidth/imageHeight). It can be replicated using 1:1 ratio, often getting width:height of 499/500.