Flickr as an Image Repository
-
Upload
gareth-saunders -
Category
Technology
-
view
112 -
download
3
description
Transcript of Flickr as an Image Repository
![Page 1: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/1.jpg)
Flickr as an image repository
Build an institutional image request interface on Flickr’s API with PHP
Robert Morrison, University of Stirling
![Page 2: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/2.jpg)
Image Storage
• Storage Requirements
• Retrieval and Organisation
• Image Request Handling
• Protecting Copyright
• Showcase of ‘brand’ images
![Page 3: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/3.jpg)
Flickr
• Storage– Unlimited Storage– 10MB per photo– Unlimited Bandwidth
• Organisation– Tags– Sets– Meta Data, EXIF, Geo-tagging
• $24.95 per year (£16.84)
![Page 4: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/4.jpg)
Flickr API
• Non-commercial use without arrangement
• Uses an API Key
• Access to lots of functionality– Uploads, community, sets, tags
• Implemented in PHP– phpFlickr
• Other Implementations– C, Java, .Net, Perl, Ruby…
![Page 5: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/5.jpg)
phpFlickr
http://www.phpflickr.com/
• PHP 4
• Lesser GPL
• Supports DB caching
• Authenticates with Flickr
![Page 6: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/6.jpg)
Lightbox2
www.huddletogether.com/projects/lightbox2/
• Provides photo browsing interface
• Built on the Prototype framework
• Thumbnails created by flickr (and other useful sizes too)
• Creative Commons Attribution 2.5 License
![Page 7: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/7.jpg)
Watermarking
• Image URL is actually a PHP script with the image’s Flickr ID
• Script uses phpFlickr to grab the image
• GD applies a PNG watermark
• PHP sets correct MIME JPEG header and sends the image data in the response
![Page 8: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/8.jpg)
And a bit of jQuery
• AJAX parts of the interface handled by jQuery
• Behaves with Prototype– If necessary, we can use jQuery.noConflict()
![Page 9: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/9.jpg)
Thanks to .net
• See issue #175 – May 2008
• phpFlickr Lightbox2 tutorial
![Page 10: Flickr as an Image Repository](https://reader035.fdocuments.in/reader035/viewer/2022062511/54c82ab54a79596f298b45a6/html5/thumbnails/10.jpg)
Future Development
• Backup facility
• Look at dedicated Asset Management tools
• http://www.jiscdigitalmedia.ac.uk/
• System with better terms of use
• Flickr can be slow
• Uploadr – seems to be a bit of a weak link