Hi Mac users,
A few weeks ago, marcsins was on iPhoto with [Forum, topic 18618] export photos from iPhoto to Piwigo. Now it's time for Aperture.
[extension by marcsins] ApertureToPiwigo
The plugin has been tested on Mac OSX 10.7 Lion. We need your tests and feedback to make sure the export plugin is as stable as needed!
Offline
I have seen a large following over on the Lightroom Export string in these forums, but it appears zero feedback on the Aperture Export.
First, thank you for attempting this on behalf of the Aperture community!!!
I have tried to use this export/plug-in with 2.3.4 and with 2.4.0RC2 (yes I know we have been directed not to use on a Live site. Well I am rebuilding after 3 years and have over 80g of photos to upload, and another 40g of video. So why not tinker with next latest and greatest since I am starting from ground zero. Like the fact I do not have to create the additional file/folder structures under 2.4. Migrating from the Apple Galleries may they rest in peace.)
1) Either way I am encountering the same issue where the export routine will crash after 80+ photos on both versions.
2) In 2.4.0RC2, none of the tag/keyword information flowed into my server. All photos went into the upload section, however showed up in the (virtual) folder I had created in the export process.
3) Would be great if the Raw+Jpeg were both exported to the server not just the Jpegs.
Sitting here thinking I might have to punt and purchase Lightroom instead. If I only new how to code maybe I could write the export script from something as simple as Windows 7 Photo Gallery. Looks like plg might already be investigating this ([Forum, topic 18958] Import from Windows Live Photo Gallery / Import from Facebook).
DAvery.
Offline
Hi,
Excuse my poor english but I am not native...
I have upload this morning 115 pictures ( 1.0-2 mégas / Picture) without any problems, no crash.
You have enough memory ?
Picture and Tags at the good place in version 2.4RC2
RAW version does not depend on me, but developers Piwigo.
Bests regards
MarcS
Offline
Found a spare moment to try again. This time zero photos uploaded before I errored out of the Aperture Export. Native jpeg file size is 7mg a piece. I tried smaller sets fom 106 down to 20, all failed.
Maybe I something completely different since the first time I uploaded 88, but none of the keywords.
Offline
Hi,
I do not know, I do not have the same incidents here !
Transmission time to the server is limited to 30 seconds, but does not crash !
What is the average size of images?
You have the right permissions on the directories?
I'll look again.
Best regards
MarcS.
Offline
Installation worked, connection to site successful, but it hangs on upload (doesn't even start)
If i click on cancel (after waiting several minutes) Aperture either crashes or i have to force quit it.
I would appreciate it very much to use the plugin, but currently it is simply unusable
P.S.: My piwigo is 2.3.4, Aperture 3.24 on Lion 10.7.4
Last edited by mike_by (2012-05-31 21:53:23)
Offline
Finally got it to work. Problem seems to be if the chosen image size is to big.
But: cannot connect as a normal user (upload enabled via community-plugin). Is there a workaround? Or do users (other than admin) have to use the web uploader?
Offline
This plugin has worked for me. I do have one question or request though. In aperture I created a custom meta data field; "Description". I have not found a way to capture that text in "Description" to "Description" in the the Piwigo meta data.
Aperture also has "Caption" for each photo but this does not seem to import into the Piwigo web site.
Any suggestions?
I am using a mac.
Thanks.
Offline
The export from Aperture keeps failing (Transmission Error), be it one photo or multiple photos.
I turned on the piwigo web service log file and this is what I got in the piwigo_ws.log:
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "original_sum" : "ea1aca59067e9af866c06d070a2f0e3d"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "file_sum" : "ea1aca59067e9af866c06d070a2f0e3d"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "name" : "St. Peter\'s Basilica"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "categories" : "6"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "resize" : "1"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "check_uniqueness" : "0"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "level" : "0"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "comment" : ""
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "tags" : ""
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "thumbnail_sum" : "NULL"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "high_sum" : "NULL"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "original_filename" : "NULL"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "author" : "NULL"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "date_creation" : "NULL"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "tag_ids" : "NULL"
[2012-06-10T14:22:28-07:00] [pwg.images.add] input param "image_id" : "NULL"
[2012-06-10T14:22:28-07:00] [pwg.images.add] resize activated
[2012-06-10T14:22:28-07:00] [merge_chunks] input parameter $output_filepath : ./upload/buffer/ea1aca59067e9af866c06d070a2f0e3d-file
[2012-06-10T14:22:28-07:00] [merge_chunks] memory_get_usage before loading chunks: 8009240
[2012-06-10T14:22:28-07:00] [merge_chunks] memory_get_usage after loading chunks: 8009320
[2012-06-10T14:22:32-07:00] [ws_images_add_chunk] welcome
[2012-06-10T14:22:32-07:00] [ws_images_add_chunk] input param "original_sum" : "ea1aca59067e9af866c06d070a2f0e3d"
[2012-06-10T14:22:32-07:00] [ws_images_add_chunk] input param "type" : "file"
[2012-06-10T14:22:32-07:00] [ws_images_add_chunk] input param "position" : "1"
[2012-06-10T14:22:32-07:00] [ws_images_add_chunk] data length : 533336
At the same time (don't worry about the timestamps; timezone wasn't set right), I also see the followings in the php.log:
[10-Jun-2012 14:22:28] PHP Warning: chmod() [<a href='function.chmod'>function.chmod</a>]: No such file or directory in /domain.com/include/ws_functions.inc.php on line 1691
[10-Jun-2012 14:22:28] PHP Warning: md5_file(./upload/buffer/ea1aca59067e9af866c06d070a2f0e3d-file) [<a href='function.md5-file'>function.md5-file</a>]: failed to open stream: No such file or directory in /domain.com/admin/include/functions_upload.inc.php on line 245
[10-Jun-2012 14:22:28] PHP Warning: getimagesize(./upload/buffer/ea1aca59067e9af866c06d070a2f0e3d-file) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in /domain.com/admin/include/functions_upload.inc.php on line 293
[10-Jun-2012 14:22:28] PHP Warning: copy(./upload/buffer/ea1aca59067e9af866c06d070a2f0e3d-file) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory in /domain.com/admin/include/functions_upload.inc.php on line 316
[10-Jun-2012 14:22:28] PHP Warning: getimagesize(././upload/2012/06/10/20120610142026-.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in /domain.com/admin/include/functions_upload.inc.php on line 524
[10-Jun-2012 14:22:28] PHP Warning: getimagesize(././upload/2012/06/10/20120610142026-.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in /domain.com/admin/include/functions_upload.inc.php on line 536
[10-Jun-2012 14:22:28] PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for ././upload/2012/06/10/20120610142026-.jpg in /domain.com/admin/include/functions_upload.inc.php on line 537
Any clue why the transmission failed?
The curious thing is that it doesn't always fail. But about 90% of the time it failed.
Last edited by batfung (2012-06-10 23:28:00)
Offline
Hi,
Excuse my long silence, but I'm overbooked and also my poor english, I am not native.
First :
You have all the rights on the directory and she exist ?
Second :
try with picture name without character "\" -> "St. Peter\'s Basilica"
on some system, it can be interpreted as a change of directory
Thank's for reply.
Bests regards
MarcSins
Offline
Hi,
Thanks a lot for your reply and your time. I appreciate it.
Regarding the 1st point, I am sure the directory settings are fine (I have an ssh shell access to the host).
Today I tried again and the upload is fine without any changes on both the server and Aperture. So I guess the problem is not related to the directory settings or the image name. What I notice is that upload failed when the server's load was heavy. I think something might have timed out because the server has a chance to respond. Does this ring any bell?
Best Regards,
Bat
Offline
Hello,
Indeed, there is a timeout limit of 30 seconds on the server for transmission and is also the default setting for many php scripts on the servers.
If you're really bored, I could try to make a version with a time-out more longer, but I do not know how your server will react. It may throw you out !
Bests regards
MarcSins
.
Last edited by marcsins (2012-06-19 11:56:20)
Offline
Hi,
I see. That starts to make sense. I timed the process and found that if error occurred, it would occur at around 30 seconds after the export. I have already changed the php.ini timeout settings to be 10 minutes. My guess was there is some kind of timeout limit on the server application.
Thanks for your suggestion of making a special version. I think I am good for now as I have found another way to upload images to Piwigo. However, I do wonder if it would be a good idea to make this timeout limit configurable.
Cheers,
Bat
Offline
Hi Marcsins,
just one question: is there a possibility to allow regular users (without admin privileges) to upload via this aperture plugin? (as mentioned above)
Thanks in advance
Michael
Offline
Hi,
I just tested the plugin and it works pretty good so far.
There was just one thing not working as expected, after entering my credentials to the preferences I hit the button save preferences and nothing "seemed" to be happen as the dialog did not close so I hit abort to get rid of the dialog.
Then the German translation is not well chosen when the export starts at the screens that follow after starting the process. But the workflow itself was pretty good and everything was working.
I use the latest Version of all tools Aperture 3.3.2, Piwigo 2.4.3 and the latest version of ApertureToPiwigo Revision 1.1E.
Many thanks for this plugin! I will make use of it on a regularly basis from my iMac.
But I do have an old MacBook which is only capable to run SnowLeopard and Aperture 3.2 and I wonder if the plugin could be run on this machine as well? (Didn't tried it so far, but will do so soon as the MacBook is still my companion on travels and I would appreciate to have this functionality while on the run!).
Cheers
Yogie
Last edited by Yogie (2012-08-09 06:59:25)
Offline