Building SlideSix - Part 1

I'd like to begin a series of posts detailing some of the cooler features of SlideSix.com. In this series I hope to share some of my lessons learned and feature some of the code that went into building the site.

This post shows one of my favorite features: the image cropper.

image cropper

When editing your profile (or your group) you are given the option to upload a user image. It's always a challenge to ensure a consistent image size when you allow your users to upload an image. Thankfully it was super easy thanks to the built in imageCrop function (on the server) and my cfImageCropper custom tag (on the client side). I'm not going to highlight the exact code here since I've done so in my cfimagecropper posts here on my blog. Essentially it's as easy as detecting the image upload, optionally resizing the image down to 700px wide (so that it fits comfortably in the browser), alerting CF that an image crop is needed after the form is saved and including the image crop utility in a cfwindow. I constrain the crop area to 150px x 150px to ensure a consistent image size. The actual user image does not get saved until and unless the image is cropped to safeguard against the user navigating away from the page before completing the crop.

Related Blog Entries

Comments

Calendar

Sun Mon Tue Wed Thu Fri Sat
     12
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       

Subscribe

Enter your email address to subscribe to this blog.

Tags

actionscript ajax blogging cfsnippets coldfusion flash forms flex funny stuff misc model-glue off topic personal project learn slidesix sql

Recent Comments

ColdFusion/Sharepoint Integration - Part 1 - Authenticating
todd sharp said: Jenn: Check your email. Todd [More]

ColdFusion/Sharepoint Integration - Part 1 - Authenticating
Jenn said: When does the next issue of FAQU come out? For that matter is it at all possible to get a preview o... [More]

A Major Milestone In My Marriage
Brian Meloche said: I converted my wife last year. That said, I find Firefox 3 a bit crashy. [More]

SlideSix Gets PDF Support
todd sharp said: Do you mean add numbering to the PDF output? If so, yeah, that would be easy. Just to be clear tho... [More]

SlideSix Gets PDF Support
salvatore fusto said: nice work Todd, but can you add slide numbering: 1/N, 2 of N and so long? it would be useful. regard... [More]

RSS


coldfusionbloggers

FullAsAGoog MXNA

Consumed By Feed-Squirrel.com