django-awesome-avatar icon indicating copy to clipboard operation
django-awesome-avatar copied to clipboard

Incorrect image ratios in Webkit

Open fautz opened this issue 9 years ago • 0 comments

Using .width() and .height() in Webkit browsers returns sizing based on visual dimensions, not actual dimensions. This is a problem when trying to crop very large images. The HTML5 properties 'naturalHeight' and 'naturalWidth' can be used to determine the proper ratios.

fautz avatar Oct 23 '14 20:10 fautz