Needs review
Project:
Avatar Crop
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2011 at 14:59 UTC
Updated:
20 Sep 2011 at 18:31 UTC
For usability sake, I think it would be a good idea to offer a default selection when the image is displayed, after upload. Being that no cropping window is present, users can be a bit confused as to what should be done on the page. I myself, submitted the form a few times just be alerted that I needed to select a crop.
The attached patched defaults a selection of the aspect ratio, at the top-left of the image, by adding "setSelect: [cwidth,cheight,0,0]" to the #cropbox declaration.
Outside of the scope of this patch, you should no longer be using $(document).ready(). See the Drupal JS docs for more information or let me know if you need help.
| Comment | File | Size | Author |
|---|---|---|---|
| avatarcrop-default-selection.patch | 407 bytes | mstef |
Comments
Comment #1
gregglesThis worked well for me. While the patch is against svn it still applies fine using
patch -p0 < avatarcrop-default-selection.patch