Skip to content

drikin/FlickrEx

Repository files navigation

FlickrEx

FlickrEx is a JavaScript library making it possible easily to add additional information onto your flickr images submitted in your blog articles and web site. Just copy & paste HTML code below in your blog/web site and it works magically.

I'm considering FlickrEx should be pluggable and used with the features you just need. Currenlty, you can use only ExifEx, which will add Exif information to your Flickr images.

Usage

You can just copy & paste HTML code below in your blog/web site and it should work.

<script type="text/javascript">
    //var FLICKREX_API_KEY = "18c9f79a96fd34c3b3f16a93fb0a5d3c";
    //var FLICKREX_EXIF_FORMAT = "%camera% / %Focal Length% / f/%aperture% / ISO %ISO Speed% / %Exposure% sec / %Exposure Bias% EV / %Software%";
    //var FLICKREX_EXIF_JQUERY_SELECTOR = "#content img";
</script>
<script>(window.jQuery && parseFloat(window.jQuery().jquery) > 1.5) || document.write('<script src="//flickrex.drikin.com/stable/vendor/jquery-1.9.0.min.js"><\/script>')</script>
<script src="//flickrex.drikin.com/stable/flickrex.min.js"></script>
<script src="//flickrex.drikin.com/stable/exifex.min.js"></script>

NOTE: Seemingly, this code is using global variables. However, inside FlickrEx javascript code, these variables' namescope is correctly modified, so that these global variables won't violate other stuff at all. It makes the snippet code more clean.

Customize ExifEx configuration

You can easily customize Exif information added to each Flickr image by modifying FLICKR_EXIF_FORMAT parameter in the snippet code above. The keywords below, like the format %Label% will be replaced with the actual Exif data of each Flickr image.

Keywords for ExifEx

Major keywords are below,

  • %camera%
  • %Make%
  • %Model%
  • %Software%
  • %Exposure%
  • %Aperture%
  • %ISO Speed%
  • %Focal Length%
  • %Focal Length (35mm format)%

See more detail

http://www.flickr.com/services/api/explore/flickr.photos.getExif

Customer Links

If you use FlickrEx on your site, please let me know. (drikin[at]gmail.com)

Developer

Use provided script to compile and minify the script

./build.sh