# Faces crop behavior - is it working?

**URL:** <https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688>\
**Category:** Ask for Help\
**Created:** [May 7, 2020, 7:10pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688 "2020-05-07T19:10:18Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [May 7, 2020, 7:10pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/1 "2020-05-07T19:10:18Z")

</div>

Tried out the Faces crop behavior in Tiles and Images - but it doesn’t really change anything on images where there are clear faces?

Has anybody got it working?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 7, 2020, 7:22pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/2 "2020-05-07T19:22:03Z")

</div>

Are the faces centered in the image? It’s not a crop so much as it’s centering faces vs the center of the image. It works fine for me and makes sure faces show in an image that’s cropped.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [May 7, 2020, 7:26pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/3 "2020-05-07T19:26:57Z")

</div>

@Jeff_Hager I made a simple app  
[rntyo.glideapp.io](http://rntyo.glideapp.io)

I cannot get the images to get centred

Any ideas

 ![Faces Crop Behavior](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/f/f4bb35c3dcc4d576c5d94a4530240b0e514cf6db.jpeg)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 7, 2020, 9:57pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/4 "2020-05-07T21:57:09Z")

</div>

It was working for me in my daily quiz app.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/3/35b253e802ae2d115897cf8a7cfd03d5b9d0d23d.jpeg)

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [May 7, 2020, 10:02pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/5 "2020-05-07T22:02:01Z")

</div>

@Robert_Petitto would you mind trying this app - and posting the picture.  
[rntyo.glideapp.io](http://rntyo.glideapp.io/)  
I can see you are on an Android phone whereas I is on an iPhone.  
That might be the issue?

Yours look exactly how I would expect it to be

Thx 🙂

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [May 7, 2020, 10:13pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/6 "2020-05-07T22:13:27Z")

</div>

Nope. I’m on iPhone. I can try in a bit…cooking dinner.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 7, 2020, 10:30pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/7 "2020-05-07T22:30:14Z")

</div>

Can you either allow your test app to be copied or show your tile settings? I don’t think the device would matter. I think Glide may be doing this through cloudinary or something like that.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [May 7, 2020, 10:31pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/8 "2020-05-07T22:31:37Z")

</div>

@Jeff_Hager Stupid me - I forgot that. Should be ok now.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 7, 2020, 10:41pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/9 "2020-05-07T22:41:00Z")

</div>

You know, I think it might have something to do with the unsplash image, or how it’s receiving it. It might be more of an api call as compared to an actual image location. Maybe it’s not entirely compatible with cloudinary or whatever Glide uses to control that. If you download the images and re-upload through glide or through google drive, then it will work.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [May 7, 2020, 10:50pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/10 "2020-05-07T22:50:56Z")

</div>

@Jeff_Hager alright - now I see a difference when the image is put in g-drive (Driver and Sarah). But the face isn’t getting in the right place. Glide cannot really find the head.

Have a look if you want - but thanks for telling what the problem is.

The ratio 3:1 might be to difficult for glide to handle. Ration 3:2 looks better

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 7, 2020, 11:17pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/11 "2020-05-07T23:17:17Z")

</div>

I download the Driver an Sarah photos and uploaded directly through glide to firebase. One of them worked and one didn’t. Maybe the facial recognition didn’t work for Sarah because her eyes are closed. Not sure. Maybe there’s something weird with stock photos that we can’t see. I’d maybe try actual personal photos or random photos from google images. For the little I’ve used it, I haven’t really noticed a problem, but you can only do so much with artificial intelligence. In my experience it’s maybe a little heavy on trying to center the face, but I’m also not using a 3:1 ratio either.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/2/23354ed74d320a4f5c317ea55f694545a7b6e772.jpeg)

---

<div class="post-metadata">

**Author:** ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)\
**Post date:** [August 1, 2020, 6:57pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/12 "2020-08-01T18:57:25Z")

</div>

I also reported this as a bug and it’s still not working…

@Mark?

It’s really messing up my employee directory! Lots of heads cut off! 🙃

My app is hosted and about to onboard it’s first company client so I’d really like to not have their heads cut off! 😜

One way to validate that it’s not working on my end is that not only do the faces not get located and centered but the images don’t shift at all. Oddly I have an image in another part of the app for events, a bunch of cocktail glasses, and that one shifts even though there is no face. It worked great a while back when I did the IG clone while learning Glide so I think something has happened. Looks like it has been some time since this was first reported so would be great to get an update as to whether this is a bug or not. 🙏

I made a little video to demonstrate this issue:

---

<div class="post-metadata">

**Author:** ![Jason](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jason/32/14_2.png) [@Jason](https://community.glideapps.com/u/Jason)\
**Post date:** [August 1, 2020, 8:38pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/13 "2020-08-01T20:38:24Z")

</div>

Face cropping is based on machine learning, its less than perfect unfortunately. Those machine learning algorithms often have biases and flaws that prevent them from doing what we expect. Further face cropping is not supported for images provided by unsplash (we would have to re-host those images unfortunately).

We use Cloudinary as our current upstream provider for face cropping, they are as best we can tell the best in the business at it, even still they are not perfect.

---

<div class="post-metadata">

**Author:** ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)\
**Post date:** [August 1, 2020, 8:45pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/15 "2020-08-01T20:45:38Z")

</div>

Thanks Jason, does this mean there is no bug and hopefully it works better for our clients/users because hopefully their profile pics are not from Unsplash. If you just confirm this is not a bug I can withdraw my bug report. Thanks!

In any event is this coming out for Cards or should I make a feature request? It would be really helpful there with NOT unsplash photos too!

---

<div class="post-metadata">

**Author:** ![Jason](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jason/32/14_2.png) [@Jason](https://community.glideapps.com/u/Jason)\
**Post date:** [August 1, 2020, 9:35pm UTC](https://community.glideapps.com/t/faces-crop-behavior-is-it-working/8688/16 "2020-08-01T21:35:14Z")

</div>

Adding it to cards is a good idea. Will put it on the board.
