I've hacked together a method for exporting images from iPhoto to my Drupal image gallery. It uses AppleScript to grab the image information from iPhoto and PHP (with cURL) to automatically login to Drupal and upload the image. Details and source on my weblog.

Comments

Jared White’s picture

Wow, I haven't personally tried this yet, but if it works as advertised, that's really awesome. I've just started using Drupal and will probably use it for a client's Web site that I'll be designing soon, and one of her needs is that she can upload photos from iPhoto to a Web gallery. This should work wonders!

Thanks,

Jared

reinvented’s picture

I'd caution you not to assume that the hack is "ready for prime time," especially if you're going to rely upon using it for a paying client. There's little or no error checking, and the script has a hard-coded taxonomy category for images. With some upgrading and testing, however, I'm sure you could get it to where it needs to be. Think of my hack as a "proof on concept" rather than an "implementation."

sgwealti’s picture

Now if someone can do the same thing for Picasa it would be even better.

reinvented’s picture

I've done a bit more experimenting with AppleScript and cURL, and have created a sample script that allows logging in to Drupal from entirely within an AppleScript. Source code here.

I'm now going to try and modify the iPhotoToDrupal script to work entirely within AppleScript, which should be an easy job, and should simplfy the process considerably.

reinvented’s picture

I've created an updated version of this script that removes the need for a PHP script for the upload (the upload is now done entirely in AppleScript by calling cURL). The new version also supports selection and upload of multiple images in iPhoto at the same time.

Standart’s picture

Thanks for the script! I've updated it to work with Drupal 6 and adjusted it to use my custom content type "image" having a CCK ImageField: http://siarp.de/node/196 .

Should be easy to change it to whatever your needs are…