Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/interconnectit/my-eyes-are-up-here
Face detection for generating cropped thumbnails in WordPress. Avoiding automatically generated crotch shots since 2013.
https://github.com/interconnectit/my-eyes-are-up-here
Last synced: 3 days ago
JSON representation
Face detection for generating cropped thumbnails in WordPress. Avoiding automatically generated crotch shots since 2013.
- Host: GitHub
- URL: https://github.com/interconnectit/my-eyes-are-up-here
- Owner: interconnectit
- Created: 2013-02-14T15:27:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T11:31:31.000Z (about 3 years ago)
- Last Synced: 2024-05-01T09:43:20.747Z (7 months ago)
- Language: PHP
- Size: 1.16 MB
- Stars: 243
- Watchers: 18
- Forks: 30
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 |
| --|-- |
+-----------+
```