• Stars
    star
    243
  • Rank 166,489 (Top 4 %)
  • Language
    PHP
  • Created almost 12 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Face detection for generating cropped thumbnails in WordPress. Avoiding automatically generated crotch shots since 2013.

My eyes are up here

Face detection for generating cropped thumbnails in WordPress. Avoiding automatically generated crotch shots since 2013.

Why would I want this?

Consider a common problem with automatically generated thumbnails in WordPress themes. You need an image of a precise width and height to fit into the design but you never know what images people are uploading.

You could control the width and height of the standard WP thumbnail sizes and let folks alter the crop as necessary themselves but if you have more than a few custom image sizes you can't alter the crop of those.

Let's say you have a portrait image of someone and your theme needs a landscape crop of the image. WP centers the crop so you'll get an image of the persons crotch... Not ideal. I assume.

This plugin detects faces in an image and centers the crop using an average of all the faces it finds.

Portrait image:

+-----------+
|           |
|     O     |
|   --|--   |
|     |     |
|    | |    |
|    | |    |
|           |
+-----------+

Cropped landscape version with default WP cropping:

+-----------+
|   --|--   |
|     |     |
|    | |    |
+-----------+

Cropped landscape version using this plugin:

+-----------+
|           |
|     O     |
|   --|--   |
+-----------+

More Repositories

1

Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
PHP
3,998
star
2

wp-permastructure

Adds the ability to configure permalinks for custom post types using rewrite tags like %post_id% and %author%.
PHP
54
star
3

wp-super-cache-single-cdn

mu-plugin that allows you to use a single cdn distribution for an entire multisite network by disabling the ms-files.php rewrite
PHP
8
star
4

expirepassword

Enables a site administrator to expire a users password and enforce a change to a new, different password before they can login in again.
PHP
6
star
5

login-shortcodes

Allows you to put a stylable WP login form anywhere on your site as well as shortcode buttons for showing/hiding content to logged in or logged out users.
PHP
5
star
6

remembermenot

Removes the Remember Me option from the WordPress Login Screen
PHP
3
star
7

appcachify

Adds an appcache manifesto via an iframed page. Automatically lists all queued scripts, styles and theme images.
PHP
2
star
8

heroku-buildpack-ffmpeg

Buildpack for FFMpeg
Shell
2
star
9

forcereauthentication

Enables a site administrator to log out a user remotely via the WordPress admin interface.
PHP
2
star
10

a-z-archive

Plugin that adds A-Z archive functionality to WordPress
PHP
2
star
11

feedburner

A modification of the FeedSmith FeedBurner plugin for WordPress enabling alternative feeds for any post type archives and custom taxonomy terms.
PHP
1
star
12

at-speed

At Speed was David Coveney's first website
HTML
1
star
13

required-fields

Adds an extensible API and some basic settings to WordPress to make standard fields on the post edit screen required before a post can be published.
PHP
1
star