Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting flickr thumbnail

I'm trying to get a thumbnail of flickr pictures in PHP.

All I saw was this in their API: http://www.flickr.com/services/api/misc.urls.html

Which is a overkill. In instagr.am/twitpic and others I found a very easy way of doing so (just adding to the url the request).

Is there an option with flickr I'm missing?

like image 614
Noam Avatar asked Jul 21 '11 10:07

Noam


1 Answers

If you have the URL to the Flickr image, all you have to do is modify the suffix to get a different size of the photo. For example:

http://farm1.staticflickr.com/2/1418878_1e92283336_m.jpg

This URL loads the medium sized photo. If we simply change the _m to _t, we would get the thumbnail:

http://farm1.staticflickr.com/2/1418878_1e92283336_t.jpg

You can also use s for small, z for medium, and b for large.

like image 100
Jamal Fanaian Avatar answered Oct 15 '22 07:10

Jamal Fanaian