FJCore to the rescue
Let’s say you’re creating a photo uploader for your cool new website. You need this because you decided that profile photos are totally the way to go. (Hey, you think, Facebook was all about profile photos and it worked for them.) You let the user select a profile photo from their computer, and then they invariably pick an 8 megapixel monster photo. (No, not a monster photo, a monster photo.)
Now you’re kind of screwed. That big photo is going to take a long time to upload. This is going to annoy your user. And it’s not good for you, either: You’re going to pay for, easily 100 times more bandwidth than you actually needed, because the first thing you’re going to do if you’re smart is resize the photo down to an itty bitty thumbnail (You thought about this, and you decided that the ittier, the better, because you’re going to have to display hundreds, if not millions, of these photos as soon as Feld decides to do a month-long series on your cool new website.)
You wonder how Facebook solved this problem, and you discover that they have a special browser plugin thingy. Crap. You don’t know how to make a plugin thingy. And obviously your website is going to be really big on all the major platforms (Windows, Mac, Linux, DOS 6.22), so you’d need multiple. But even if you had one or more thingys, you haven’t quite achieved the household name status. (Except in your household, where your name is easily in the top ten household names.) Where were we? Oh yeah, even if you had an upload plugin thingy, nobody would trust you, and you’d be back to uploading monster images.
What now?
Fortunately, you remember reading about FJCore on a bathroom stall at the bar last night. FJCore, of course, is a JPEG codec that works in Silverlight and supports JPEG resize in the browser. Sweet, so now you can shrink the profile photo before you upload it without scaring off the user. Hell, maybe you’ll even allow multiple profile photos (there’s no chance your competition will see that one coming.) You could even squish the photos together to create one ultra profile photo strip. You feel so empowered that you decide to buy the FJCore guys a beer the next time you hit up that dive bar.
What’s the catch?
Right. There’s always a catch. Silverlight itself is a Microsoft browser plugin thingy… so your users still need to have Silverlight installed. But, like Flash, we expect it to be more or less taken for granted (For one thing, the Olympics will be webcast with Silverlight.) And we’re fans of Silverlight; It can do some cool things Flash can’t do (notably, FJCore relies on the ability to access a file before upload. This isn’t possible in Flash today.) And competition with Flash is good for driving innovation.
Why are we posting this today?
We just released the full-fledged source code to FJCore (on Google Code) today, so although we've had a working example online for a while, this is the first time you can just grab the code and build your own uploader. Better yet, you can join our open source project and contribute an uploader for everyone to use (except your competition, they are way too dumb to find it) based on FJCore.
- Categories:



