How to find author from Flickr URL with Small Basic

This post has been republished via RSS; it originally appeared at: Small Basic Blog articles.

First published on MSDN on Jan 12, 2018

Authored by Nonki Takahashi


I sometimes upload my program screen shots with Flickr pictures.  At that time, I always check the copyright of each picture.

For that purpose I wrote a sample program to get original URL from return value of Flickr object.

There are two ways to get original URL.  The first way using short URL is described in Flickr site .  Flickr.GetPictureOfMoment() or Flickr.GetRandomPicture() returns following format of URLs.
https://farm{farm-id}.static.flickr.com/{server-id}/{photo-id}_{secret}.jpg

And from photo id, short URL can be calculated like:
https://flic.kr/p/{base58-photo-id}

This short URL will jump to the original Flickr URL for the picture.

The second way is to use following format with the photo id described above.  This information is from a blog Bram.us .
http://flickr.com/photo.gne?id={photo-id}

The sample program for both way is uploaded as NLM548 .

Have fun through Small Basic programming!

See Also



Other Resources



Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.