Created
October 9, 2011 19:39
-
-
Save photo/1274061 to your computer and use it in GitHub Desktop.
Upload all photos from a directory using command line (openphoto-php - https://github.com/openphoto/openphoto-php)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source secrets.sh | |
for i in $(ls /path/to/directory/*.JPG) ; do | |
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST; | |
done |
Just add tags as another parameter
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST -F "tags=tag1,tag2";
Great thanks!!
…----- Original Message -----
From: "Jaisen Mathai" reply@reply.github.com
To: "jdeproost" johnnydeproost@ossc.be
Sent: Tuesday, 11 October, 2011 1:09:33 AM
Subject: Re: gist gist: 1274061
Just add tags as another parameter
```
./openphoto -h yourhost -e /photo/upload.json -F "photo=@$i" -X POST -F "tags=tag1,tag2";
```
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/1274061
use folders as tags and albums
so if you have a
"Vacation 2012" folder
then it will be album "Vacation 2012" and all pictures inside it has the tags "Vacation,2012"
See a discussion about such a feature in http://openphoto.uservoice.com/forums/141441-general-discussion-and-feature-requests/suggestions/2427078-file-system-sync-scan-no-import-
I like this www.qoosi.com
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great, but would it be possible to add tags optionally at the same time? So all the uploaded photos are linked with the provided tags?