FaceAwareFill 1.0

FaceAwareFill 1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total18,346
Week0
Month0

Installs

Apps236
Test Targets9
powered by Segment

GitHub

Stars1,065
Watchers26
Forks78
Issues3
Contributors2
Pull Requests2

Code

Files2
LOCLines of Code 76



  • By
  • Julio Andres Carrettoni

This category applies Aspect Fill content mode to an image and if faces are detected it centers them instead of centering the image just by its geometrical center.

Based on this awesome post by @maniacdev

Example:

image

Installation

Usage

Import the category to your .m file or to your "prefix" file.

#import "UIImageView+UIImageView_FaceAwareFill.h"

Then AFTER setting the image property of a UIImageView do:

[imageView faceAwareFill];

That's all.

Enjoy!

Author

Julio Andrés Carretttoni, @dev_jac

Notes:

License

FaceAwareFill is available under the MIT license. See the LICENSE file for more info.