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?

CommentFileSizeAuthor
smart-crop-test.jpg99.07 KBankheg
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grendzy’s picture

Agreed 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:

gooddesignusa’s picture

subscribing

bryancasler’s picture

subscribing

bryancasler’s picture

Face detection would make this a must have. How hard would it be to implement the suggestion in #1?

grendzy’s picture

animelion: 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

seaji’s picture

very nice

kolier’s picture

Useful module.
Very good

Ciprian Oancia’s picture

+

betovarg’s picture

subscribing

vosechu’s picture

You're such an alarmingly smart man Grendzy.

JurriaanRoelofs’s picture

ebieymjunior’s picture

Image 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?

ebieymjunior’s picture

Version: 6.x-1.0-beta1 » 7.x-1.0-beta2
Issue summary: View changes
yixia’s picture

subscribing