Robert MacLean
25 July 2009
A few weeks back I posted beta 2 of the gallery 2 .net toolkit where I have done considerable more work on it than I ever expected I would. Lots of need bits of code and features available. What’s in it now:
There are four items currently available:
- (Tool) For people just wanting to export all their images out of Gallery2, there is g2Export which is a command line tool to export images.
- (Tool) For people wanting to get information out of Gallery2 into a sane format, there is g2 Album Management which is an Excel 2007 add-in to export information about albums and images to Excel.
- (API) For developers wanting to write their own tools or integrations, there is the SADev.Gallery2.Protocol which wraps the Gallery2 remote API. Please see the What you should know? page for information on using the API.
- (Source) Lastly for developers needing some help, there is the source code for the the g2 Export Tool and the g2 Album Management Excel Add-in
Here is a screen shot of g2Export in action:
If you are interested in how much of the Gallery2 API is catered for, it’s most of it (the file upload parts are the only major outstanding ones). The key thing to note on the table is the tested column. While the code is written, it may not be tested and may not work at all. I have found the documentation is not 100% in line with the actual gallery2 code so something it needs considerable rework for it to actually work.
API Call | Basic Request | Basic Response | Tested | Advanced Request | Advanced Response |
login | done | done | done | done | done |
fetch-albums | done | done | done | done | done |
fetch-albums-prune | done | done | done | done | done |
add-item (upload) | done | done | |||
add-item (url) | done | done | done | done | |
album-properties | done | done | done | done | done |
new-album | done | done | done | done | |
fetch-album-images | done | done | done | done | done |
move-album | done | done | done | done | |
increment-view-count | done | done | done | done | |
image-properties | done | done | done | done | done |
no-op | done | done | done | done | done |