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 hidden or 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 |
Great thanks!!
…----- Original Message -----
From: "Jaisen Mathai" [email protected]
To: "jdeproost" [email protected]
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
Just add tags as another parameter