My Eyes Are Up Here: A WordPress Plugin With Automatic Face Detection for Generating Cropped Thumbnails

yoga
Yoga in Odintsovo – cc license

Ever wish you had more control over the thumbnails that WordPress generates for your media and featured images? My Eyes Are Up Here is a new plugin that helps you get the perfect crop, especially as it pertains to images with human subjects.

Ordinarily, images are cropped according to the center, which can leave out the most important part of the photo if the person’s face is on the left or right side. More awkward crops of full body shots can isolate a person’s neck down to the elbows, instead of centering around the face. This plugin aims to fix this problem by integrating a jQuery plugin which detects faces in pictures and returns their coordinates, using an algorithm written by Liu Liu.

After you install My Eyes Are Up Here, there are no setting to configure. A new “face detection” section is added to the image editing options. The plugin’s built-in face detection comes in two parts: automatic detection and manual detection via assigned hotspots.

face-detection-attachment-details

The basic face detection is fairly intuitive but it won’t always find everything. That’s why there’s a secondary option to set hotspots to highlight faces that were missed. When you’re finished adding hotspots, click the “finished” button in the editing pane to initiate a re-crop of the image. The resulting thumbnail images will be cropped according to your specifications to highlight faces.

faces

When multiple hotspots or faces are detected, the plugin will attempt to crop the image to include as many hotspots in the thumbnail as possible. Otherwise, it will crop around the center of the hotspots.

If your theme makes heavy use of featured images with human subjects, this plugin will help you to get the desired crop around faces and avoid the dreaded crotch shot. My Eyes Are Up Here was created by the folks at interconnect/it. You can download it for free from WordPress.org or check out the project on GitHub.

12

12 responses to “My Eyes Are Up Here: A WordPress Plugin With Automatic Face Detection for Generating Cropped Thumbnails”

  1. I tried it on one of my sites and I love it. It’s not just for faces — any kind of image where the subject is off-center (and if you’re using something like the rule-of-thirds when you frame your shot, isn’t it always off-center?) would benefit from adding an appropriate hot spot.

    The face recognition bit is still sketchy. I found that maybe one out of every ten images, all with obvious faces, were detected. But it’s no big deal to select a hot spot — and as sanchothefat indicates, if you’re concerned with good cropping you are going to want to manually select the subject’s chin, or nose, or left eye, or whatever manually, to get it just right.

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.