logoalt Hacker News

thesuitonymtoday at 3:06 PM1 replyview on HN

I thought Photobucket did it better, with the exception of having to know which server an individual's bucket was on.

It's been a long while, but if I recall, the url schema was something like a00.photobucket.com/albums/username/someimage.jpg

But what was really cool about it was that you could change someimage.jpg to someimage.png and Photobucket would serve a PNG instead. Or you could change someimage.jpg to th_someimage.jpg and Photobucket would serve a thumbnail of the picture. It was very cool.


Replies

dylan604today at 4:09 PM

I use a couple of JS libraries to serve image galleries, and they conform to the Flickr _[a-z] type of naming to indicate resolution. The library will load the appropriate size based on the available real estate.

The auto serving of the chosen output extension is interesting. Wonder if they were automatically created when making the various image sizes, or only on the first time it was requested. And how many formats were supported? The one that got me was hitting an API and tagging with xml|json to get the response as needed instead of sending it as a dedicated query paramter