cirrusImage is a Gallery.
More importantly cirrusImage is a work in progress and a location for me to store an image with information about that image as a single file. This allows cirrusImage to have an API for retrieving that information and/or image. Beyond being a showcase of my Works In Progress Current Work is a showcase highlighting a few of my development interests. Namely flat-file storage of descriptive text within the image. a.k.a image metadata and, in this specific case, EXIF Comments. Additionally the pages are "Content Rich" or "SEO Friendly" meaning that all the html or xhtml metadata is filled from descriptive data from the image files. Therefore, this project hands-off images data in the form of a url request with XHTML, JSON and PHP5 :D
The code is hosted on Google Project Hosting: cirrusImage.
The API
The collections: api
http://api.cirrusimage.net/collections.html
http://api.cirrusimage.net/collections.xhtml
http://api.cirrusimage.net/collections.json
Exhibitions: api
http://api.cirrusimage.net/collections/current_exhibition.html
http://api.cirrusimage.net/collections/current_exhibition.xhtml
http://api.cirrusimage.net/collections/current_exhibition.json
Image Details: api
http://api.cirrusimage.net/fauve_kali/fauve-kali_glass-frame.html
http://api.cirrusimage.net/fauve_kali/fauve-kali_glass-frame.xhtml
http://api.cirrusimage.net/fauve_kali/fauve-kali_glass-frame.json
http://api.cirrusimage.net/fauve_kali/fauve-kali_glass-frame.thumbnail.jpg
The code is simply written in PHP.
Get involed with cirrusImage on Google Code, Or Browse the cirrusImage source code on Google Code.
Use this command to anonymously check out the latest project source code:
svn checkout http://cirrusimage.googlecode.com/svn/ cirrusimage-read-only
cirrusimage.net
|
|
|----------------| api.cirrusimage.net [rest server / image repository]
|
|
|----------------------| gallery.cirrusimage.net [api interface]
ToDo:
Write exif to images
write exif CRUD
populate xhtml meta with exif
PHPdoc
request handlers:
image
thumbnail
xhtml
html
json
jsonp
upload to code.google
make http://cirrusimage.appspot.com/ work
and subauth http://googxauthdemo.appspot.com/
jQuery.getJSON():
From the JQuery manual example: jQuery.getJSON().
The html:
<div id="images"></div>
The JQuery
<script>
$.getJSON("http://api.cirrusimage.net/collections/current_exhibition.json?callback=?",
function(data){
$.each(data, function(i,item){
$("<img/>").attr("src", data[i][1]).appendTo("#images");
if ( i == 6 ) return false;
});
</script>