http://www.speedingrhino.com/cropper.htm -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
Hi Adrian I have an image cropper that has some additional benefits. For example, it has some functions which force the cropped area to maintain a fixed ratio. Click the clown. http://urbits.com/_/demos/insizer_demo_page4.php I haven't really advertised my intentions, because my cropper is part of a bigger project, much of which is not needed by drupal. But, ultimately, the aim was to see where something like this could be used and I have been having casual discussions with robertgarrigos about it. sime Adrian Rossouw wrote:
http://www.speedingrhino.com/cropper.htm -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
On 03 May 2006, at 3:54 AM, sime wrote:
I haven't really advertised my intentions, because my cropper is part of a bigger project, much of which is not needed by drupal. But, ultimately, the aim was to see where something like this could be used and I have been having casual discussions with robertgarrigos about it.
http://daemon.co.za/journal/google-summer-of-code-imagemagick-support Cool. This is what I want it for. To be able to pull an image down from flickr, and crop it to fit into your site's header. -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
Adrian Rossouw wrote:
On 03 May 2006, at 3:54 AM, sime wrote:
I haven't really advertised my intentions, because my cropper is part of a bigger project, much of which is not needed by drupal. But, ultimately, the aim was to see where something like this could be used and I have been having casual discussions with robertgarrigos about it.
http://daemon.co.za/journal/google-summer-of-code-imagemagick-support Cool. This is what I want it for.
To be able to pull an image down from flickr, and crop it to fit into your site's header.
That's great. And you'd usually want an image of specific proportions, which is why I allow a ratio to be passed into the script and used to maintain the ratio of the cropped area. I've placed a small notice at the Image group stating that the code is open-source and available for drupal (if desired) http://groups.drupal.org/node/267
Hi, On Wed, 2006-05-03 at 03:41 +0200, Adrian Rossouw wrote:
This is quite cool, and with the use of formapi (form_alter) you could create a new module with will extend the functionality of the image module to allow you to crop images. Gordon.
Very cool... This kind of gets me thinking - are there any pastel-coloured Web 2.0 companies out there developing a basic AJAX/DHTML image editor? This would be one of the key features in such an app. They're making Writely, AjaxWrite, etc... why not make AjaxImageEdit? I'm sure it's only a matter of time before such an app appears on TechCrunch <http://www.techcrunch.com/>. Jeremy Epstein GreenAsh Services www.greenash.net.au On 5/3/06, Adrian Rossouw <adrian@bryght.com> wrote:
http://www.speedingrhino.com/cropper.htm -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com
Op woensdag 3 mei 2006 03:41, schreef Adrian Rossouw:
I have recently developed a small, but EXTREMELY usefull autocropper for a Rails project. Good news: only four lines of code. Bad news: you need Ruby apis for it. But I bet there is sime PHP equivalent around. And because it uses imagemagick, its not hard to write these apis yourself. But, if you use imagemagick, it is not hard to make this a lot more user friendly. Because, however cool a DHTML cropper might be: much cooler is to have the system crop it for you. Nice cropping off course. Here is what I did (sortof): 1 stretch the contrast a lot. make sure the outer borders are white after this (i played with teh values a bit) 2 smart crop that image. (http://studio.imagemagick.org/pipermail/magick-users/2004-December/014309.ht...) 3 trow that image away, but remember the offset and crop values. 4 use these values to crop, using crop! (http://studio.imagemagick.org/RMagick/doc/image1.html#crop_bang) This concept needs finetuning, but vecause I use crop! the first 3 steps hardly add any value anyway :) I found that at least 90% of the images are already cropped very well by crop! Conclusion: It is perfeclty possible to do this without user interaction. And taking difficult tasks away from users is always the better option that adding these tasks. Obviously it could be good to make that DHTML cropper optional. s in: Drupal will crop the stuff for you correct 90% of the tilmes. And if the last10% bother you, you can change these by hand. Bèr -- PGP ber@webschuur.com http://www.webschuur.com/sites/webschuur.com/files/ber_webschuur.asc PGP berkessels@gmx.net http://www.webschuur.com/sites/webschuur.com/files/ber_gmx.asc
participants (5)
-
Adrian Rossouw -
Bèr Kessels -
Gordon Heydon -
Jeremy Epstein -
sime