DHTML image cropping

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
sime's picture

On the dev list Adrian posted a link to a DHTML cropping tool.
http://www.speedingrhino.com/cropper.htm

I have been aware of this for a while, as I have a similar tool which I created before I came to Drupal. My goal has been to bring this into drupal, but the reality is I have a lot to learn about the drupal way first.

http://urbits.com/_/demos/insizer_demo_page4.php
(Click the clown)

Similarities:

  • Both of these tools are available for open-source use.
  • They are both similarly cross-browser.

Differences (other than the obvious formatting/behavioural ones)

  • They are both implemented differently. One is not a copy of the other.
  • I can switch on a feature to "force" the crop area to maintain a height-width ratio.
  • chargingrhino has cleaner js, although I'd planned to rewrite mine around the core js.

The javascript is in the repository as image_context_edit.js. Ignore the php and sql - it is not required in drupal.

So, if anyone is thinking of doing a cropper, my code is already donated to drupal, and hence to you. Although, I don't think the charging rhino code would be a bad alternative.

Simon

Comments

cross-link

sime's picture

In case anyone finds this thread one day, please refer to:
http://drupal.org/project/eyedrop

Image

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: