{"id":127,"date":"2010-03-06T13:03:04","date_gmt":"2010-03-06T13:03:04","guid":{"rendered":"http:\/\/www.coralbark.net\/blog\/?p=127"},"modified":"2010-09-11T21:34:43","modified_gmt":"2010-09-11T21:34:43","slug":"a-wordpress-plugin-image-url-returner","status":"publish","type":"post","link":"https:\/\/www.coralbark.net\/blog\/technology\/2010\/03\/a-wordpress-plugin-image-url-returner\/","title":{"rendered":"A WordPress Plugin: Image URL Returner"},"content":{"rendered":"<p>There are a number of programs you can use to create entries for a WordPress blog. Now that I own an N900 phone, I&#8217;d like to use the excellent <a href=\"http:\/\/maemo-wordpy.garage.maemo.org\/\">MaStory<\/a> client. This works fine, unless you want to upload photos.<\/p>\n<p>When you upload a photo, WordPress automatically make smaller versions of the image (of configurable size). Unfortunately it doesn&#8217;t tell the client what the URLs to these resized images are. I&#8217;ve created a <a href=\"http:\/\/core.trac.wordpress.org\/ticket\/6430\">patch to WordPress<\/a> that returns the URLs but it has missed the cut off for 3.0 so it&#8217;ll be some time before it gets included. In the mean time, I&#8217;ve created a tiny plugin that  does the same thing.<\/p>\n<p>This plugin is not useful to you at all unless you use a blogging client that makes use of it. The only client I intend to alter is MaStory so I&#8217;m imagining this plugin will not be used by a lot of people.<\/p>\n<p>To use the plugin:<\/p>\n<ol>\n<li>Download the <a href=\"http:\/\/www.coralbark.net\/ImageURLReturner.zip\">plugin<\/a> (It&#8217;s now available from its <a href=\"http:\/\/wordpress.org\/extend\/plugins\/imageurlreturner\/\">plugin page<\/a> on wordpress.org as well)<\/li>\n<li>Upload `ImageURLReturner.php` to the `\/wp-content\/plugins\/` directory<\/li>\n<li>Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress<\/li>\n<li>Use a blogging client that makes use of the plugin &#8211; this is the hard bit &#8211; there is no such client at the moment. I have created a <a href=\"https:\/\/bugs.maemo.org\/show_bug.cgi?id=9428\">patch for MaStory<\/a> though.<\/li>\n<\/ol>\n<p><b>Update<\/b>: (Sept 11th 2010) I&#8217;ve just uploaded a <a href=\"http:\/\/www.coralbark.net\/ImageURLReturner.zip\">new version<\/a> (0.2) that handles images with duplicate names. Thanks to the people who pointed out the bug.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a number of programs you can use to create entries for a WordPress blog. Now that I own an N900 phone, I&#8217;d like to use the excellent MaStory client. This works fine, unless you want to upload photos. When you upload a photo, WordPress automatically make smaller versions of the image (of configurable [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts\/127"}],"collection":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":6,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/posts\/127\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coralbark.net\/blog\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}