asimkumar2222 / javascript-image-cropper-ui

Automatically exported from code.google.com/p/javascript-image-cropper-ui
0 stars 0 forks source link

Allow ratios that *limit*, but don't *lock* an aspect ratio #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Consider a site (e.g. Facebook) where an profile picture is of a fixed
width (W), but cannot exceed a certain height (H). This requires a cropper
than limits the crop to any ratio R such that R <= W/H.

This can be presented the user as an option to allow the ratio to be
"wider", "taller" or "exactly the same" as the given value.

Attached patch implements this as a initialisation option "ratioType".

Original issue reported on code.google.com by ejsand...@gmail.com on 13 Nov 2009 at 9:57

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Attached new diff against version 1.2.1 (above file is against 1.2.0).

Original comment by ejsand...@gmail.com on 13 Nov 2009 at 10:42

Attachments: