Page 1 of 1
Face Detection & Crop
Posted: Thu Sep 15, 2011 10:27 am
by ashwood
I was wondering how i would let my users upload a profile picture but aswell as the original being uploaded i would like a thumbnail version to be saved from it like facebook does has original and a thumbnail version for comments etc.. how would i go about doing this?
Thanks
Re: Face Detection & Crop
Posted: Thu Sep 15, 2011 12:28 pm
by jacek
Cropping is very easy have a look at my image gallery tutorial for how to do that.
Face detection though, would be pretty hard to do ! Your best bet would be looking for a php extension that provides a function to do it, since implementing the actual detection with php would be too slow to process. Luckily it's somethign a lot of people are trying to get right
http://www.google.co.uk/search?hl=en&q= ... +detection
Re: Face Detection & Crop
Posted: Thu Sep 15, 2011 1:19 pm
by ashwood
Yeah the crop is easy but don't want the image to look stretched and I can't install any extensions to the server
Re: Face Detection & Crop
Posted: Fri Sep 16, 2011 8:19 pm
by jacek
You can crop it and keep the aspect ratio easily. I did that in my image gallery video.
Re: Face Detection & Crop
Posted: Sat Sep 17, 2011 4:35 pm
by ashwood
im going to do your tutorial tonight see if it does the job on my website.. ill let you know how it goes thanks
Re: Face Detection & Crop
Posted: Tue Sep 20, 2011 11:10 am
by ashwood
Just been watching your tutorial on the image gallery.. its exactly what i need just without the face detection? correct?
Re: Face Detection & Crop
Posted: Tue Sep 20, 2011 10:23 pm
by jacek
ashwood wrote:Just been watching your tutorial on the image gallery.. its exactly what i need just without the face detection? correct?
Well it should show you how to crop an image if that is what you want ?
Re: Face Detection & Crop
Posted: Wed Sep 21, 2011 12:44 am
by ashwood
jacek wrote:ashwood wrote:Just been watching your tutorial on the image gallery.. its exactly what i need just without the face detection? correct?
Well it should show you how to crop an image if that is what you want ?
crop with face detection
Re: Face Detection & Crop
Posted: Wed Sep 21, 2011 3:42 pm
by jacek
Face detection will be a lot harder, check the link I posted above for info on how to do it though.