vrijdag, januari 11, 2008
We want your face
I spent (wasted?) all day figuring out how to make people select and upload an avatar or profile picture to their account on the site. But here it is, from today onwards you will find a link in the edit profile page to upload an avatar. That should give a face to the people solving and creating questions and quizzes.Asp.net (the programming language I use) only offers some file upload control, but I wanted something were users could crop the image their uploaded so the resulting avatar would always be 50 by 50 pixels. There is a great and expensive control available that does that (I-Load from Radactive) but I'm not going to spend 250$ on my free site. So I found a control named WebImageMaker. It was made by Tom Crane and does exactly what I wanted: upload an image, and select a part of it. I changed the control just a little bit so I could translate error messages and buttons in multiple languages.
The upload limit is 4 MB, and that is a default in asp.net. I did not see any reason to change that. Maybe one of these weeks you'll be able to upload images with questions, as I've figured out the basics.
Labels: about2findout.com, asp.net, avatars, new
