MOD: Add avatar with image crop (on the fly) - Posted (10332 Views)
Junior Member
balexandre
Posts: 418
418
Updated (June 16th, 2009)
new version updated by Classicmotorcycling
--> download zip file here <--


some time ago I mention that I was developing a MOD because I needed the ability to let users upload a picture, crop the picture on the fly and save it as an avatar, well, today I when Online with the MOD and is now on testing on my forum and it will be for a while, so I can publish a MOD with less flows as I can.
I made an HOW TO Video for our users and you can see it if you open this link (SWF: 10,2 Mb)

Details about the MOD First of all you need the Avatar MOD (you can find it here) up and running, because I use the new Columns in the forum MEMBER table, secondly you need to have the forum hosted with 2 objects, ASPUpload and ASPjpeg (these are responsible to Upload the file into the server, and to crop the image) [much more latter I will update the mod without the ASPUpload Object and with other Image Objects] - this tho are the most popular used by Shared Hosting Companies, like Brinkster or Discount ASP.NET.
the MOD consists in only 2 files

avatar_user_upload.asp (text version)
avatar_user_croppingimage.asp (text version)

plus all JS and CSS from http://www.dhtmlgoodies.com/index.html?whichScript=image-crop

the first consists in secure the user, let it select the picture and upload and after the crop is done, display and insert the new avatar in the MEMBERS table
the second only consists in present the uploaded picture and with a nice and friendly tool, let the user to crop the image at will.
Functionality about the MOD The user uploads a picture (PNG, GIF, BMP, TIF) free of size, after the crop, the MOD creates a new JPG image with 96 x 96 pixels and 100% jpeg compression, it names [username].jpg and deletes the original from the server adding the new URL to the MEMBERS table.
Some pictures of the MOD



<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Etymon
Posts: 2396
2396
What a choice!
Do I want the MOD or the baby in the picture! bigsmile
Can I have both? tongue<
Posted
Junior Member
balexandre
Posts: 418
418
baby is mineeeee, onlyyy mine, eheheh

my daughter with 3 month tongue<
Posted
Advanced Member
Etymon
Posts: 2396
2396
Oh it doesn't hurt to ask!
*striking the baby off of the wish list!*<
Posted
Average Member
Panhandler
Posts: 783
783
Where are the files:?:

avatar_user_upload.asp
avatar_user_cropping.asp
<
"5-in-1 Snitz Common Expansion Pack" - five popular mods packaged for easy install
". . .on a mote of dust, suspended in a sunbeam. . ."
HarborClassifieds Support Snitz Forums
Posted
Junior Member
balexandre
Posts: 418
418
thy are being intensively tested by the users of my forum tongue
give it 2 weeks for testing and bugs fix, and so I can replace all the Portuguese sentences with a proper Language selector file smile <
Posted
Starting Member
Lon
Posts: 47
47
Bump

It's been 2 weeks....

Sounds like an AWSOME MOD! Thanks for working so hard on it.<
Posted
Junior Member
balexandre
Posts: 418
418
and my users are loving it tongue
after new years I will paste the complete MOD smile<
Posted
Advanced Member
Etymon
Posts: 2396
2396
Peeking in just to see how this MOD might be progressing. smile<
Posted
Junior Member
balexandre
Posts: 418
418
I'm trying to avoid working with 2 asp components, the ASPUpload and ASPjpeg that, right now you need to have installed in your machine to this MOD properly work.
<
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Too bad this only seems to work with GIFs... I'm willing to bet that there is something out there though.
http://chris.brimson-read.com.au/index.php?option=com_content&view=article&id=2&Itemid=2

<
You Must enter a message