?

Log in

No account? Create an account
 

URLs: 00001abc

About  

Previous Entry URLs: 00001abc Jul. 23rd, 2004 @ 04:43 pm Next Entry
My first issue with FotoBuilder was addressed in a prior post. My second is the URLs of images and galleries. When I upload an image, it does not retain it's original file name (ei. apple.gif). It is renamed to some random jumble of numbers and letters (ei. 00003t13) with no file extension. Looking at the URL, I have no idea type of file this is or what it might contain. Yes, 'apple.gif' might be porn, but the name 'apple.gif' is a lot easier to remember than '00003t13' if I'm including the URL in a journal post or some such. Gallery URLs are just as confusing. If there's some technical reason for this, and I'd love to know why things were done this way.

I've had a few other nitpicks that I've been leaving through the feedback form. Overall, though, FotoBuilder is really slick. Great work, guys.
Current Mood: impressedimpressed
Leave a comment
[User Picture Icon]
From:brad
Date:July 23rd, 2004 05:13 pm (UTC)
(Link)
We'll let you set URLs for both pics and galleries in the future. That's on our to-do-soon list. For now, the canonical URLs are the only options. The point is that no matter where you move the picture, the URL is always the same.

We'll be publishing a guide with cool things to do to URLs to transform them in the future.

For instance: trailing slash means HTML frame around a pic, while no trailing slash means the full pic. if you add /s640x480, that's a 640x480 pic. There are about two dozen other options.
[User Picture Icon]
From:darkcryst
Date:July 23rd, 2004 05:27 pm (UTC)
(Link)
that last point is offically one of the coolest little widget ideas for FB that I've heard so far :)
[User Picture Icon]
From:shoutingboy
Date:July 23rd, 2004 05:17 pm (UTC)

One reason...

(Link)
I think part of the idea behind FotoBilder was this: On a site like LiveJournal, a lot of people are posting duplicates of the same picture. A hundred copies of every quiz result. A thousand copies of that animated GIF of Orlando Bloom kissing Johnny Depp.

So FotoBilder is built to take advantage of this. When the second person uploads the Johnny-and-Orlando pic, FB says, "Ah, I've already got that one, I'll keep the existing one." A thousand people upload Johnny & Orlando, but only one copy is stored on the server. Thus, the URL it gives you is the single, master URL which it gives to every user who uploaded that same picture. Which means, naturally, that the URL can't have your image name (or your name or the gallery name) in it, because those are going to be different for each person.

Bonus from this: If my friends-page has ten different people all showing the same FB picture, the HTML has the same image URL repeated ten times--which means my browser makes one request from the FB site, downloads the picture once, and repeats that picture ten times in the page.
[User Picture Icon]
From:darkcryst
Date:July 23rd, 2004 05:26 pm (UTC)

Re: One reason...

(Link)
Nice idea, and it might cut out... 1% of traffic, but the first thing most people do with that kind of image is add some silly sparkly text or such like.

or crop it, or resize it..

Also how can it tell the difference? Unless it does a byte by byte comparison.. which surely would be INCREDIBLY slow? header information can be spoofed, and mostly isn't present.
[User Picture Icon]
From:brad
Date:July 23rd, 2004 05:32 pm (UTC)

Re: One reason...

(Link)
MD5.
[User Picture Icon]
From:darkcryst
Date:July 23rd, 2004 05:50 pm (UTC)

Re: One reason...

(Link)
ahh, yeah.. forgot about that.

I'll just shut up then ;)

Still... the other problems are still there. So.. a decrease sure, but by that much?
[User Picture Icon]
From:brad
Date:July 23rd, 2004 05:52 pm (UTC)

Re: One reason...

(Link)
It helps quite a bit.

We haven't enable gallery sharing yet, either. Generally when you take pics, there are a quite a few other people out with you. We'll let you click "Let my friends import my galleries" and then any of your friends could just go "copy gallery" and get all those pics into their galleries.
[User Picture Icon]
From:darkcryst
Date:July 23rd, 2004 06:07 pm (UTC)

Re: One reason...

(Link)
Ahh...yeah that makes much more sense. I had forgetten about that feature.

Is it still on two servers? and how's it taking the load?

[User Picture Icon]
From:andrewducker
Date:July 25th, 2004 08:58 am (UTC)

Re: One reason...

(Link)
That is remarkably cool. I was wondering if that was going to be possible.
[User Picture Icon]
From:brad
Date:July 23rd, 2004 05:34 pm (UTC)

Re: One reason...

(Link)
That's true that we only store one image per unique image ("gpic" -- global pic), but every user has their own unique URL ("upic" -- user pic) to that resource.

Only when the number of users for a gpic drops to 0 does the image get deleted.

So a upic is just a mapping to a gpic, along with a number that along with the upic number makes up the URL.
[User Picture Icon]
From:mdlbear
Date:July 23rd, 2004 05:41 pm (UTC)

Re: One reason...

(Link)
Slick. I might have used SHA1; it's apparently been proved less vulnerable to collisions. Something to think about when you get to a billion users or so.
[User Picture Icon]
From:brad
Date:July 23rd, 2004 05:47 pm (UTC)

Re: One reason...

(Link)
Hell, we don't even index the whole MD5. We index maybe 20 bytes and then find dupes by hand, using other metrics (full MD5, then image width, height, byte size....). SHA1 is better for security. MD5 is more than overkill for this. We could've used CRC32.
[User Picture Icon]
From:mdlbear
Date:July 24th, 2004 08:23 am (UTC)

Re: One reason...

(Link)
(slaps head with hand) That works, of course, and it's information you're going to have anyway. It really comes down to what's faster to compare, and I'm sure you've considered that.
[User Picture Icon]
From:shoutingboy
Date:July 23rd, 2004 05:47 pm (UTC)

Oh!

(Link)
Well, never mind, then...
[User Picture Icon]
From:kunzite1
Date:July 23rd, 2004 10:57 pm (UTC)

Re: One reason...

(Link)
how does it know that its the same image?
[User Picture Icon]
From:justgoto
Date:July 24th, 2004 01:40 am (UTC)

Re: how does it know that its the same image?

(Link)
Frpm what I gather here, it's done with an MD5 algorithm.
(Leave a comment)
Top of Page Powered by LiveJournal.com