iPhoto to Gallery3 export
lescoste
Joined: 2010-09-17
Posts: 58 |
Posted: Fri, 2010-09-17 11:14 |
I wrote an iPhoto plugin based on the iPhotoToGallery plugin to upload iPhoto's photos to Gallery 3. Warning it doesn't work with OS X Mavericks iPhoto ! |
|
Posts: 58
I posted a new version on http://github.com/lescoste/iphototogallery3/downloads that fixes 2 bugs see http://github.com/lescoste/iphototogallery3/issues
Posts: 13
I just tried using your plugin but received an "Unknown Error: 1002". I am running iPhoto '11 and my Gallery 3 install lives off of a subdirectory /pictures/ from my site.
Any idea as to why this may be happening?
Looking forward to getting this working as I relied heavily on Zach's previous version for Gallery 2.
Thanks!
Posts: 58
Hi, to help me understand the pb , could you send me in private message the iPhoto logs created when you launch the export plugin found in the console app ?
Did you check that the gallery REST module is activated ? How much memory have you allowed php in the php.ini file on your server ? ( as recommended in the plugin readme file )
Posts: 6
Hi!
Has anyone tried the plugin with iphoto11?
Any expectations?
Posts: 58
I did and it works !
Posts: 6
Wow, that's pretty good news!
Thanks a lot
Posts: 13
I have my memory limit set to 99 MB and also have the REST module activated. When I go to log into my site (I had to use the /index.php/ at the end) I am getting told it is a bad username and password. I even tried copying and pasting but still not luck.
Any idea?
Posts: 13
I also tried creating a new admin account and that did not work either. Same error regarding username/password.
Posts: 58
You are right, I also got the same problem sometimes. I uploaded a new version that should fix it : 0.4.1 .
Posts: 13
Works for me now. Thanks!
I will let you know if I run into anything else.
Posts: 13
Unfortunately when I'm attempting to upload an image now, it stops processing before the 1st image completes. When I go to my gallery I see the title of the image but I do not see anything else.
I was able to create an album though.
Posts: 13
Also, I did just get an error message..."Export failed (error code: 1001)"
Posts: 58
Can you send me the iPhoto logs found in the console when you export a photo at my email :
stephane at lescoste dot net
Thanks.
Posts: 3
Hi. Don't want to be a pain, but I just thought this was odd:
Your plugin has been working great for several days. Today it just would not log in. The console gives this error:
10-11-14 8:51:54 PM iPhoto[9917] doLogin: Wrong request key:
And then the HTML of what I believe is the login page.
running the latest version of your plugin. I tried expiring the Key for the user I'm logging in as. Still not working. Is the key value possibly held by the plugin somewhere?
Posts: 58
This error message indicates that the plugin tries to login with the username/password and instead of having the proper response (a request key) it gets the login page.
The plugin only stores the gallery url and login/password. Not the request key.
Is it the same version of the plugin that worked and now doesn't work ?
If so then the problem may come from the server.
Are you sure the gallery REST API is still active ?
Did you change the gallery .htaccess file ?
Does the http server logs an error in its log file ?
I never got this kind of error, so it is difficult to fix.
Other people reported this symptom with previous versions of the plugin.
But it seems to be solved without my help as I did not get any more messages from them.
Posts: 3
Hello:
Thank you for your reply
I was using version .4.0 of the plugin when it stopped working. I upgraded to the most recent version, but still no luck.
- rest api is still active... I tried turning it on and off. Also tried replacing rest module with fresh copy from github. No success.
- What should I be looking for in the .htaccess file?
- I will look for errors in the apache logs.
Posts: 58
About the .htaccess file, I was just saying that if you modify it, then the gallery URL could be different and then the plugin could not login unless you update its gallery URL too.
For example .htaccess can be modified to remove the "index.php/" at the end of gallery urls.
But if you did not modify .htaccess then the problem is not there.
Posts: 3
Hello:
I reinstalled Gallery3 from git and it seems to work now... No idea what happened. Thanks for your help
Posts: 4
Hi,
I´m having trouble uploading pictures to the gallery. I get the famous error "Export failed (error code: 1001)".
The gallery is protected by HTTP Basic Authentication. I can connect to the gallery and see all galleries. I can also create a new gallery but the image upload fails.
If I remove HTTP Basic Authentication in the Apache configuration files everything works fine.
The consle gives the following output.
Nov 16 21:06:48 username iPhoto[1640]: addItemSynchronously: photo 'IMG_3956' upload to album http://gallery.mysite.com/index.php/rest/item/878 failed, response=<3c21444f 43545950 ......... 3e3c2f68 746d6c3e 0a>
Nov 16 21:06:48 username iPhoto[1640]: Export failed with error: 1001
The Apache access.log looks like this.
192.168.0.1 - - [16/Nov/2010:21:07:01 +0100] "POST /index.php/rest/item/878 HTTP/1.1" 401 756 "-" "iPhotoToGallery3 0.1"
I did some traces with Wireshark and it looks like the authentication bit is missing from the POST command. I´m not 100% sure about this part.
All suggestions are welcome.
Posts: 58
I'm pretty sure you are right, it doesn't work. I haven't tested the basic authentication feature.
I will test it and fix it.
I'll let you know when it is ready.
Posts: 4
That sounds great. I´m looking forward for a new release.
Posts: 58
I uploaded a new version on github.
Could you try it ? and tell me if it is ok now ?
https://github.com/lescoste/iphototogallery3
Posts: 4
I´ve tried the new version an now it´s possible to upload images. The formatting of the "Add to album" dropdownlist is lost with this newer version. It´s not as easy to see the treestructure of the albums now.
Posts: 58
I don't have this problem. My drop down list is still the same.
I did not change this part of the code.
Are you sure it is different ?
Can you send me a snapshot of the plugin to see the problem ?
Posts: 58
Ok i found the problem.
No need for snapshot, i will fix this soon.
Posts: 58
I updated the plugin on github, it should be ok now.
Posts: 4
Now it looks ok.
Thanks a lot for really fast bugfix. Keep up the good work.
Posts: 5
So, I had these problems. Though the error message was simply "couldn't authenticate" or some such. For me the problem was that the Top Level Album had NO permissions allowed for Everyone/Guest. Once I allowed View permissions for Everybody, then it connected just fine.
I really don't want to have even the Album thumbnails viewable by everyone, this is a private album. However, I do want to use iPhoto to upload, I guess I can just edit the permission whenever I need to upload, but would prefer to not to have to.
Posts: 58
It looks like it is a gallery bug.
To bypass it, you could open to all the top level album and put your private album inside it.
Guests will only see an empty album.
Posts: 5
Yes, isn't a good user experience though to do it that way. My non-tech savvy relatives need to see the BIG prompt for Username/Password that you get when the main gallery is private.
What I'm doing is just opening it up whenever I am ready to upload. Oh well. Hope it gets fixed sometime.
Posts: 58
I confirm it is a bug that has been fixed and will be available in the next release, see :
http://gallery.menalto.com/node/98835
Posts: 5
Cool, thanks! That will be great!
Posts: 7
I would love to get this plugin working, but it keeps crashing my iPhoto (iLife '09). Any suggestions?
Posts: 58
I need to know which version of Gallery and iPhotoToGallery3 you use ?
And I need the Mac console logs for iPhoto that the plugin outputs and the crash log too.
You can email it to me at stephane at lescoste dot net.
Posts: 7
Thanks - will do.
Posts: 1
I'm also getting the 1001 error and am unable to sort it out myself. I'm using iPhoto '11 and Gallery 3.0.1.
Anyone have any ideas on how to solve this issue?
If you need more info, please let me know.
Posts: 58
I need to know which version of iPhotoToGallery3 you use ?
And I need the Mac console logs for iPhoto that the plugin outputs and the crash log too.
You can email it to me at stephane at lescoste dot net.
Posts: 34
This plugin sounds like an awesome addition. We've been running Gallery 2.5 as our archive for 7+ years. We will eventually upgrade to 3; probably soon. I've had to wait until the Gallery2-to-Gallery3 import tool was made robust enough.
I've decided to start using iPhoto as my management archive and Gallery as one of a few destinations. So, I need to solve two problems: 1) export new iPhoto additions to Gallery complete with metadata, and 2) export older Gallery images and metadata back to iPhoto for archiving.
1) iPhoto to Gallery
According to the features listed on your blog, most of the metadata I want exported from iPhoto to Gallery seems achieved. Are location(exif), title, description, keywords (iptc) written to only the exported image or to the image in iPhoto's library?
2) Gallery to iPhoto
Do you have any suggestions how I might export Gallery's images with title, description and keywords back to my iPhoto archive? I can code if I need to but I'd prefer to save that time if someone else has already done something. Something simple like a CSV with "path to file", "title", "description", "keywords" would probably suffice my needs.
Thanks!
Posts: 58
1) the metadata is read from iPhoto API and wrote inside the exported photo by the plugin : i don't think this is stored in the original photo by iPhoto, but most probably in its xml files.
2) the export plugin can only "export" photos it cannot modifiy the photos inside iPhoto. I don't know how to automatically update iphoto's photos.
Stephane.
Posts: 34
Stephane,
Thanks. I tried out your export. Very nice. A couple of notes:
1) The location of a PNG image is not exported when it's location is set using iPhoto. I have thousands of old scanned photos. Is this something you might be able to fix? I can run a few more tests if you'd like.
2) iPhoto Crashed while "fetching albums...":
I can send the full debug if you'd like me to.
Back to one of my original topics regarding exporting Gallery3 back to iPhoto so I have a nice clean iPhoto.
Since you are well versed with Gallery3's REST API, I'd like to know how easy it would be to use the Gallery3 REST API to export this content for each photo in Gallery3?:
path, title, description, keywords
Any thoughts how I might do that? Perhaps a loop through RESTfull calls to Gallery3?
Thanks
Rob
Posts: 58
1) The location of a PNG image is not exported when it's location is set using iPhoto. I have thousands of old scanned photos. Is this something you might be able to fix? I can run a few more tests if you'd like.
You are right, it doesn't work for png. But the plugin doesn't do anything special for jpg. So i don't think this can be fixed easily.
2) iPhoto Crashed while "fetching albums...":
I can send the full debug if you'd like me to.
yes that would help.
send me these logs from the Mac OS X console :
- iphoto logs from when you start the plugin
- iphoto crash log, if any
And tell me which version of iPhoto and which version of the plugin you have.
Back to one of my original topics regarding exporting Gallery3 back to iPhoto so I have a nice clean iPhoto.
Since you are well versed with Gallery3's REST API, I'd like to know how easy it would be to use the Gallery3 REST API to export this content for each photo in Gallery3?:
path, title, description, keywords
The documentation is here
http://codex.gallery2.org/Gallery3:API:REST
The steps could be :
1) login to get the request key , or copy it from the web admin interface and put in hard coded in your requests
2) get the root album : http://your site/gallery3/rest/item/1
3) then loop on the response members to request what they contain.
[{
"entity":{
"id":"1",
"captured":null,
"created":"1282991704",
"description":"",
"height":null,
"level":"1",
"mime_type":null,
"name":null,
"owner_id":"2",
"rand_key":null,
"resize_height":null,
"resize_width":null,
"slug":"",
"sort_column":"weight",
"sort_order":"ASC",
"thumb_height":"113",
"thumb_width":"150",
"title":"Gallery Lescoste.net",
"type":"album",
"updated":"1283283475",
"view_count":"6656",
"width":null,
"view_1":"1",
"view_2":"1",
"view_3":"1",
"view_4":"1",
"view_5":"1",
"view_6":"1",
"album_cover":"http:\/\/lescoste.net\/gallery3\/rest\/item\/176",
"thumb_url":"http:\/\/lescoste.net\/gallery3\/var\/thumbs\/\/.album.jpg?m=1283283475",
"can_edit":false},
"relationships":{
"comments":{
"tags":{
},
"members":["http:\/\/lescoste.net\/gallery3\/rest\/item\/2",
"http:\/\/lescoste.net\/gallery3\/rest\/item\/5",
"http:\/\/lescoste.net\/gallery3\/rest\/item\/4",
"http:\/\/lescoste.net\/gallery3\/rest\/item\/3",
"http:\/\/lescoste.net\/gallery3\/rest\/item\/6"]}]
But read the REST API documentation and examples.
Posts: 1
Hello,
I think a recent change was made in the gallery3 api. When I try to create a new folder though the plugin, I get the 1001 error when I try to upload pictures into it. the plugin creates the folder, incorrectly(?), tries to upload a pic and fails. console shows a 1001 error. However, when I create the folder though the gallery3 web interface and then upload images through the plugin, it uploads just fine. thoughts?
Console example from a folder create:
5/13/11 13 May 2011 21:28 iPhoto[638] doCreateAlbumWithName: title : Missing Teeth , parent url : http://pics.wtfwasithinking.org/index.php/rest/item/19 album added : {
url = "http://pics.wtfwasithinking.org/index.php/rest/item/6615";
}
5/13/11 13 May 2011 21:28 iPhoto[638] getandparseAlbums: total albums = 158
5/13/11 13 May 2011 21:28 iPhoto[638] getandparseAlbums: Error get 158 albums starting at 0 , retrying
5/13/11 13 May 2011 21:28 iPhoto[638] getandparseAlbums: Error get 150 albums starting at 0 , retrying
5/13/11 13 May 2011 21:28 iPhoto[638] getandparseAlbums: Success get 112 albums starting at 0
5/13/11 13 May 2011 21:28 iPhoto[638] getandparseAlbums: Success get 46 albums starting at 112
5/13/11 13 May 2011 21:28 iPhoto[638] doGetAlbums: editable albums = 158
5/13/11 13 May 2011 21:29 iPhoto[638] addItemSynchronously: photo 'IMG_2068' upload to album http://pics.wtfwasithinking.org/index.php/rest/item/6615 failed, response=<3c68746d 6c20786d 6c6e733d 22687474 703a2f2f 7777772e 77332e6f 72672f31 3939392f 7868746d 6c222078 6d6c3a6c 616e673d 22656e22 206c616e 673d2265 6e223e0a 20203c68 6561643e 0a202020 203c7374 796c6520 74797065 3d227465 78742f63 7373223e 0a202020 20202062 6f647920 7b0a2020 20202020 20206261 636b6772 6f756e64 3a202366 66663b0a 20202020 20202020 666f6e74 2d73697a 653a2031 3470783b 0a202020 20202020 206c696e 652d6865 69676874 3a203133 30253b0a 20202020 20207d0a 0a202020 20202064 69762e62 69675f62 6f78207b 0a202020 20202020 20706164 64696e67 3a203130 70783b0a 20202020 20202020 6261636b 67726f75 6e643a20 23656565 3b0a2020 20202020 2020626f 72646572 3a20736f 6c696420 31707820 23636363 3b0a2020 20202020 2020666f 6e742d66 616d696c 793a2073 616e732d 73657269 663b0a20 20202020 20202063 6f6c6f72 3a202331 31313b0a 20202020 20202020 77696474 683a2036 30656d3b 0a202020 20202020 206d6172 67696e3a 20323070 78206175 746f3b0a 20202020 20207d0a 0a202020 20202023 6672616d 65776f72 6b5f6572 726f7220 7b0a2020 20202020 20206865 69676874 3a203865 6d3b0a20 20202020 207d0a0a 20202020 20202366 72616d65 776f726b 5f657272 6f72202e 63726173 686c6f67 6f207b0a 20202020 20202020 706f7369 74696f6e 3a207265 6c617469 76653b0a 20202020 20202020 746f703a 202e3365 6d3b0a20 20202020 20202066 6f6e742d 73697a65 3a203665 6d3b0a20 20202020 207d0a0a 20202020 20202366 72616d65 776f726b 5f657272 6f72202e 7469746c 65207b0a 20202020 20202020 706f7369 74696f6e 3a207265 6c617469 76653b0a 20202020 20202020 746f703a 202d3365 6d3b0a20 20202020 20202074 6578742d 616c6967 6e3a2063 656e7465 723b0a20 20202020 2020206d 61726769 6e3a2030 20617574 6f3b0a20 20202020 207d0a20 2020203c 2f737479 6c653e0a 20202020 3c6d6574 61206874 74702d65 71756976 3d22436f 6e74656e 742d5479 70652220 636f6e74 656e743d 22746578 742f6874 6d6c3b20 63686172 7365743d 5554462d 38222f3e 0a202020 203c7469 746c653e 536f6d65 7468696e 67207765 6e742077 726f6e67 213c2f74 69746c65 3e0a2020 3c2f6865 61643e0a 20203c62 6f64793e 0a202020 203c6469 7620636c 6173733d 22626967 5f626f78 22206964 3d226672 616d6577 6f726b5f 6572726f 72223e0a 20202020 20203c64 69762063 6c617373 3d226372 6173686c 6f676f22 3e0a2020 20202020 20203a2d 280a2020 20202020 3c2f6469 763e0a20 20202020 203c6469 7620636c 6173733d 22746974 6c65223e 0a202020 20202020 203c6831 3e0a2020 20202020 20202020 44616e67 2e2e2e20 20536f6d 65746869 6e672077 656e7420 77726f6e 67212020 20202020 20203c2f 68313e0a 20202020 20202020 3c68323e 0a202020 20202020 20202057 65207472 69656420 7265616c 6c792068 6172642c 20627574 20697427 73206272 6f6b656e 2e202020 20202020 203c2f68 323e0a20 20202020 2020203c 703e0a20 20202020 20202020 2054616c 6b20746f 20796f75 72204761 6c6c6572 79206164 6d696e69 73747261 746f7220 666f7220 68656c70 20666978 696e6720 74686973 21202020 20202020 203c2f70 3e0a2020 20202020 3c2f6469 763e0a20 2020203c 2f646976 3e0a2020 3c2f626f 64793e0a 3c2f6874 6d6c3e0a>
5/13/11 13 May 2011 21:29 iPhoto[638] Export failed with error: 1001
Posts: 58
I tested the plugin with the latest gallery : 3.0.1 and it works. So the problem must be something else.
Could you check if there is something interesting the server apache error logs when you create a new album and upload a photo.
And I need to know which version of iPhotoToGallery3 you use and the gallery version.
Stephane.
Posts: 30
Doesn't work for me with iPhoto 11 (9.1.1) and the gallery3 just freshly installed (Gallery 3.0.2 release, code named Coollanta). I get the 1001 error, regardless if the gallery folder is created or not (cf unlt33 comment). The console log for iPhoto returns:
Any clues?
Many thanks in advance!!
Posts: 58
Hi,
I just tried with the updated gallery 3.0.2 and it works too.
To understand why it fails on your server, I need the web server logs that occur during the upload.
You can send them at : stephane at lescoste dot net
De plus je suis francais peut-etre comme toi : toto le heros
Thanks.
Posts: 10
Hi,
First of all, thanks for the great plugin! My wife was complaining about losing the ability to drag photos to the uploader applet in g2, and unfortunately the flash uploader requires her to select photos and export as files, then upload or pick the files one by one via the flash browse form. So I'm hoping this uploader will be more of what she's looking for.
In testing it out for her, I noticed a couple of things:
1. we have a huge number of albums (659, spanning ~11 years), so it takes quite a while to fetch the album list. Would it be possible to cache this somehow or improve the performance?
2. again due to the large # of albums, it's difficult to find the album to upload to. As you can imagine, wading through 650+ albums in a pull down form is kind of a pain. Is there any future update planned that would make it easier for her to browse to find the album to upload to (or the album to create the new album in)? Something more like your typical file browser in OS X where you can double click to traverse directory structure/etc? This would make it immensely easier for her to find the album she wants to upload to.
Thanks again for this application, it's quite nice.
Posts: 58
Glad you like it.
Your suggestions are interesting. I will see if I can include them in the next release.
But don't expect anything before end of summer as this is a hobby development
Stephane.
Posts: 10
Yeah, I understand. Just some things that I think would make the user interface that much better. Great utility though!
Posts: 81
Thanks for the plugin and the great work!!!
I just installed the latest version from the github - 0.4.9. It logs me in OK, but cannot fetch any album. At the end of the day I don't see any album in the list. It is simply grayed out. [i]I use gallery 3.0.2.
Any help would be appreciated!
Posts: 81
Never mind. User error. Everything works great!