View Issue Details

IDProjectCategoryView StatusLast Update
2712Composrcorepublic2021-03-15 18:41
ReporterChris Graham Assigned To 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary2712: Smart thumbnailing based on image content
DescriptionWe can integrate some third party code to get thumbnailing based on any of:
 - Most 'energetic' part of the image (CropEntropy: https://github.com/stojg/crop)
 - Faces (https://github.com/mauricesvay/php-facedetection [there's also a good Microsoft API and OpenCV PHP extension, but those are excessive - the PHP-based algorithm here is sound and a port of a popular JavaScript one])

We'd implement it as an extension of the 'where' parameter in the convert_image_plus function. Instead of start/end/both we provide a value of either 'energetic' or 'face'. These essentially detect a central point which becomes the crop/pad origin.
TagsNo tags attached.
Attach Tags
Time estimation (hours)10
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2016-07-14 11:17

administrator   ~4125

Last edited: 2016-07-14 11:17

Further to defining the central point, we may also want to respect face width's/height's for the case of the face being bigger than the thumbnail. We'd need to do some pre-scaling down in the convert_image_plus function, so that what is passed through to convert_image has a face fitting the thumbnail with some spare.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2016-07-14 00:25 Chris Graham New Issue
2016-07-14 11:17 Chris Graham Note Added: 0004125
2016-07-14 11:17 Chris Graham Note Edited: 0004125
2021-03-15 18:41 Chris Graham Summary Thumbnailing based on content => Smart thumbnailing based on image content