{"id":121,"date":"2010-08-24T15:15:00","date_gmt":"2010-08-24T15:15:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=121"},"modified":"2010-08-24T15:15:00","modified_gmt":"2010-08-24T15:15:00","slug":"mobileme-bugs-image-upload-with-linux-based-browsers-impossible","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=121","title":{"rendered":"MobileMe bugs: Image upload with Linux based browsers impossible"},"content":{"rendered":"<p>Well, the MobileMe gallery upload seems to only like Mac browsers. I have only my SuSE box here, so I tried to upload using Chrom 5.0 and Firefox 3.5. No luck. Both browsers throw errors. Just like this:<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/2.bp.blogspot.com\/_Mc79Xvd2xvE\/THPhyy6V7YI\/AAAAAAAAAVA\/aRaqndzAJ9c\/s1600\/mobile-me-upload-error.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img border=\"0\" src=\"http:\/\/2.bp.blogspot.com\/_Mc79Xvd2xvE\/THPhyy6V7YI\/AAAAAAAAAVA\/aRaqndzAJ9c\/s320\/mobile-me-upload-error.png\" \/><\/a><\/div>\n<p>So far, I cannot find any documentation on this behaviour. I would have assumed that either FFox or Chrome would work. MobileMe on OS X says it supports FFox and Safari. But since Safari is not available on Linux, I thought I might try FFox and Chrome. Now waiting for a MobileMe chat support guy. I doubt they are educated enough to actually help me&#8230;<br \/><b><br \/><\/b><br \/><b>Update:<\/b>&nbsp;The chat guy was friendly, and had one hint: update to FFox 3.6. I was still on 3.5. And sure enough: now the upload works. Only one file at a time, though. But I found out even more on my own. It seems all the images are accessible from your iDisk as well. They are stored in Web\/Sites\/_gallery\/id. Where id is the number of your gallery. However, you cannot just upload pictures there. Every image needs to be put in a separate directory. Every directory must then have the following files:<br \/><span style=\"font-family: 'Courier New', Courier, monospace;\"><br \/><\/span><br \/><span style=\"font-family: 'Courier New', Courier, monospace;\">exif.json<\/span><br \/><span style=\"font-family: 'Courier New', Courier, monospace;\">large.jpg<\/span><br \/><span style=\"font-family: 'Courier New', Courier, monospace;\">medium.jpg<\/span><br \/><span style=\"font-family: 'Courier New', Courier, monospace;\">square.jpg<\/span><br \/><span style=\"font-family: 'Courier New', Courier, monospace;\">web.jpg<\/span><\/p>\n<div><span style=\"font-family: inherit;\"><br \/><\/span><\/div>\n<div><span style=\"font-family: inherit;\">The exif.json is obviously a JSON style EXIF data block, e.g. like this:<\/span><\/div>\n<div><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace;\">{&#8220;data&#8221;:{&#8220;infoSensing&#8221;:&#8221;One-chip color area sensor&#8221;,&#8221;infoExposure&#8221;:&#8221;Normal program&#8221;,&#8221;infoExposureIndex&#8221;:&#8221;&#8211;&#8220;,&#8221;infoFNumber&#8221;:&#8221;2.8&#8243;,&#8221;infoDistance&#8221;:&#8221;&#8211;&#8220;,&#8221;infoGPSLongitude&#8221;:&#8221;8\u00b0 15&amp;#39 35.40&#8243; E&#8221;,&#8221;infoWidth&#8221;:&#8221;2,048 pixels&#8221;,&#8221;infoName&#8221;:&#8221;IMG_0133.jpg&#8221;,&#8221;infoDigitizedDate&#8221;:&#8221;Thu, 19 Aug 2010 12:18:20 PDT&#8221;,&#8221;infoFocalLength&#8221;:&#8221;3.85 mm&#8221;,&#8221;infoHeight&#8221;:&#8221;1,536 pixels&#8221;,&#8221;infoExposureTime&#8221;:&#8221;0.003846154&#8243;,&#8221;infoGPSLatitude&#8221;:&#8221;50\u00b0 0&amp;#39 5.40&#8243; N&#8221;,&#8221;infoAperture&#8221;:&#8221;f\/3.0&#8243;,&#8221;infoMetering&#8221;:&#8221;Average&#8221;,&#8221;infoShutter&#8221;:&#8221;1\/260&#8243;,&#8221;infoSize&#8221;:&#8221;1022.27 KB&#8221;,&#8221;infoBrightness&#8221;:&#8221;&#8211;&#8220;,&#8221;infoCameraModel&#8221;:&#8221;iPhone 3GS&#8221;,&#8221;infoMaxAperture&#8221;:&#8221;&#8211;&#8220;,&#8221;infoCameraMake&#8221;:&#8221;Apple&#8221;,&#8221;infoExposureBias&#8221;:&#8221;&#8211;&#8220;,&#8221;infoFlash&#8221;:&#8221;32&#8243;,&#8221;infoOriginalDate&#8221;:&#8221;Thu, 19 Aug 2010 12:18:20 PDT&#8221;,&#8221;infoGPSAltitude&#8221;:&#8221;115.00 m&#8221;,&#8221;infoISOSpeed&#8221;:&#8221;64&#8243;,&#8221;infoLightSource&#8221;:&#8221;&#8211;&#8220;,&#8221;infoSoftware&#8221;:&#8221;4.0.2&#8243;},&#8221;status&#8221;:1}<\/span><\/div>\n<div>This should be easily created by a short shell script, using &#8220;exiftool -s image.jpg&#8221; and some awk magic. The image files in the folder are:<\/p>\n<p>large.jpg:&nbsp;2048&#215;1536 (original resolution? at least for iPhone 3GS)<br \/>medium.jpg:&nbsp;427&#215;320 (approx. iPhone screen resolution)<br \/>square.jpg: 160&#215;160 (thumbnail)<br \/>web.jpg: 1024&#215;768<\/p>\n<p>For portrait, I assume that the width and height are swapped. Have not checked this yet. Later, I will try to whip up a bash or Python script which produces these files automatically from a list of input images. Let&#8217;s see if this works.<\/p>\n<p>Oh yes, one more thing: In Linux you can easily mount the iDisk with &#8220;wdfs&nbsp;&nbsp;http:\/\/idisk.me.com\/your-id iDisk\/<br \/>&#8220;.<\/div>\n<div><b>Update 2:<\/b>&nbsp;A quick check revealed that the iDisk interface is quasi read-only. Writing new albums or pictures there will not show up in the gallery itself. That would have been too nice. So I guess this is only possible via the (unpublished?) HTTP API of MobileMe itself. Just like the <a href=\"http:\/\/code.google.com\/intl\/de-DE\/apis\/picasaweb\/overview.html\">Picasa API<\/a> for uploading and manipulating photos. But it seems the API is <a href=\"http:\/\/www.javarants.com\/2009\/07\/03\/creating-a-json-web-service-api-for-find-my-iphone\/\">quite hard to decipher<\/a>, which is sad, given that Google practically documents all their APIs and encourages mashups and websites using their services.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Well, the MobileMe gallery upload seems to only like Mac browsers. I have only my SuSE box here, so I tried to upload using Chrom 5.0 and Firefox 3.5. No luck. Both browsers throw errors. Just like this: So far, I cannot find any documentation on this behaviour. I would have assumed that either FFox &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=121\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MobileMe bugs: Image upload with Linux based browsers impossible&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22,2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/121"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=121"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/121\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}