Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Thank you for the module, it looks promising.
It would be great to have a more detailed description of smart crop algorithm and some image examples on the module page.
I've tested a bit (results are attached). Any hints to further improve thumbnails?
Comment | File | Size | Author |
---|---|---|---|
smart-crop-test.jpg | 99.07 KB | ankheg |
Comments
Comment #1
grendzy CreditAttribution: grendzy commentedAgreed that some samples for the project page would be nice. With regard to improving the output, the entropy calculation itself is fairly straightforward and so I'm not sure there's much room for tuning.
I would like to add another action for face-detection. However the most promising library I've seen ( http://www.xarg.org/project/php-facedetect/ ) requires a PHP extension, which I suspect would be an obstacle for a lot of users.
This algorithm is definitely *not* a replacement for face-detection, but on average I hope it will perform better than simply centering the crop.
Here are some samples that dman put together:
Comment #2
gooddesignusa CreditAttribution: gooddesignusa commentedsubscribing
Comment #3
bryancasler CreditAttribution: bryancasler commentedsubscribing
Comment #4
bryancasler CreditAttribution: bryancasler commentedFace detection would make this a must have. How hard would it be to implement the suggestion in #1?
Comment #5
grendzy CreditAttribution: grendzy commentedanimelion: don't think writing the module would be too difficult; I'm just concerned it would have limited appeal because of the need to install OpenCV and the PHP facedetect extension (which means shared and even many VPS hosts would be unable to use it).
We can continue the discussion here: #910142: Implement face-detection
Comment #6
seaji CreditAttribution: seaji commentedvery nice
Comment #7
kolier CreditAttribution: kolier commentedUseful module.
Very good
Comment #8
Ciprian Oancia CreditAttribution: Ciprian Oancia commented+
Comment #9
betovargsubscribing
Comment #10
vosechu CreditAttribution: vosechu commentedYou're such an alarmingly smart man Grendzy.
Comment #11
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedHere's the algorythm in PHP:
https://github.com/felixkoch/PHP-FaceDetector/blob/master/FaceDetector.php
Comment #12
ebieymjunior CreditAttribution: ebieymjunior commentedImage Focus Crop uses this php implementation: php-facedetection
Would it be possible to add face recognition as an extra feature for those who have the required setup?
Comment #13
ebieymjunior CreditAttribution: ebieymjunior commentedComment #14
yixia CreditAttribution: yixia commentedsubscribing