wunderio / wunderhub

A central content repository for the WunderSites.
http://docs.wunderhub.apiary.io/
GNU General Public License v2.0
3 stars 3 forks source link

Use focal point to crop around team faces for image styles #59

Open lewisnyman opened 8 years ago

lewisnyman commented 8 years ago

If you look at the current team page on wunderkraut.com. The smaller images aren't just resized, they are cropped around faces. It would be good to have that from the hub so we can emphasize faces more than bank space.

joesb commented 8 years ago

Is there a way to set the focal point on an image for cropping? If there is, nice!

floretan commented 8 years ago

I used https://www.drupal.org/project/focal_point before, it's minimal but works quite well.

mikebell commented 8 years ago

The above branch add focal_point and configures the Thumbnail image style to use it. Currently it's set to 200x200 pixels but this can be changed easily. One part worth noting is that if using the scale and crop functionality then you have to use both width and height values.

mikebell commented 8 years ago

PR can be found here - https://github.com/wunderkraut/wunderhub/pull/64