{"id":322,"date":"2005-07-01T16:35:52","date_gmt":"2005-07-01T15:35:52","guid":{"rendered":"http:\/\/wp.devco.net\/?p=322"},"modified":"2009-10-09T16:59:52","modified_gmt":"2009-10-09T15:59:52","slug":"photoblog_changes","status":"publish","type":"post","link":"https:\/\/www.devco.net\/archives\/2005\/07\/01\/photoblog_changes.php","title":{"rendered":"Photoblog Changes"},"content":{"rendered":"

I made some changes to the workflow for getting photos onto my photoblog. Previously<\/a> I mentioned using a bit of Perl trickery to get photos posted to my photoblog<\/a> in a semi automated manner.
\nI’ve now made this much better since I got my
Flickr<\/a> account. Since all my photos that I’ve edited will end up on Flickr it also means that all photos I post to the blog will be on Flickr.
\nI wrote something using the
Flickr API<\/A> in Perl to fetch a given image from flickr, get the meta data from it, get the thumbnails that Flickr makes – nice uniformly square ones – and combine all of this into a blog posting. The advantage here is that I can use the very good Flickr UI to edit descriptions and the like relying on the Perl code to just fetch those and publish it to the blog without needing me to duplicate any data entry.
\nThere exists a
Flickr::API<\/a> module for Perl to make this easy but it uses XML::Parser::Lite::Tree<\/a> to give the data back to the user and I find this quite complex so I am using XML::DOM<\/A> to parse the XML that Flickr returns and while this is probably more code to write it is much more readable.
\nThe end result is that I’ve changed the layout of posts to be more readable, the shooting data is in a table with some bold’s etc and there is also now a links section that for the moment only points to the Flickr page of the posted photo. I’m also using the square thumbnails from Flickr which saves me time in making my own as well as making my blogs look better since thing’s are always laid out the same with these.
\nI may post some code samples later, suffice so say the Flickr API is really amazing you can easily skin the whole site into your design.<\/p>\n","protected":false},"excerpt":{"rendered":"

I made some changes to the workflow for getting photos onto my photoblog. Previously I mentioned using a bit of Perl trickery to get photos posted to my photoblog in a semi automated manner. I’ve now made this much better since I got my Flickr account. Since all my photos that I’ve edited will end […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","footnotes":""},"categories":[8],"tags":[52,122],"_links":{"self":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/322"}],"collection":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/comments?post=322"}],"version-history":[{"count":1,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":660,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/posts\/322\/revisions\/660"}],"wp:attachment":[{"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/categories?post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devco.net\/wp-json\/wp\/v2\/tags?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}