The `"' around arguments are needed to prevent breaking up around whitespace or the shell interpreting
special characters. If an album name consist of a single word you can omit them.
--instance,-i
You can have multiple Zoph installations on one system. For example a Zoph installation for
yourself and one for a family member or friend, or if you are a Zoph developper, a production and
a development version. The webinterface can determine which installation your are using by the
URL you are using. The command line interface does not have an URL thus it needs a different way
to find out which instance of Zoph is used.
By default, the first instance in zoph.ini is used.
--import,-I
The list of photos given will be imported in Zoph. This is the default.
--update,-u
Zoph will try to find the given list of photos in the database and apply the options to those
photos. You can either give a list of filenames or a list of id's, see --useIds.
--new,-N
Create albums, categories, places and people from CLI. Use --album "new album", --category "new
category", --person "new person", --place "new location". The new object will be created directly
under the root unless --parent is specified. See --person for details on how Zoph determines
what's the first and second name.
--help
Lists all supported options and quits
--version,-V
Show the current Zoph version.
--album,--albums,-a"album,[,album]"
put the references to the image(s) into album(s)--category,--categories,-c"category[,category]"
put the references to the image(s) into category(s)--photographer,-P"first_namelast_name"
store first_namelast_name as the photographer of image(s)
--person,--persons,-p,--people"first_namelast_name[,first_namelast_name]"
Specify one or multiple persons that appear on the photos specified. You can specify --person
multiple times.
The name of a person or a list of persons separated by commas. The person must pre-exist in the
database. When using --new to add new persons to the database, Zoph will try to determine which
parts of the name are first, middle and last. If a name is a single word ("John"), Zoph assumes
this is the first name. If a name is two words ("John Doe"), Zoph will assume this is the first
and last name. If a name is 3 or more words, Zoph will assume the first word is the first name,
the second is a middle name and all remaining words are the last name. If this does not give the
correct results, you can choose to separate by colon (":") instead of space. Zoph will then set
the part before the first colon to first name, then middle, then last and finally 'called'.
--location,-l,--place"place_title"
put the references to the image(s) into location
--fields,-f,--fieldname="value"
set the image(s) field name to value; common fields are title (text, 64 chars max), view (text, 64
chars max), description (text), rating (1..10) or level (1..10); possible fields are from the
MySQL database, table photos;
view can be used to describe what can be seen in the photo. Often this is covered by the location
field but sometimes you might want to be more specific, or to describe something you don't want to
store in the database as a location (view is just a string). In the demo the view field is used
in a photo of Big Ben in London: the location is set to Parliament (since that was where the
photographer was standing) and the view to Big Ben (since that was what where the photographer was
looking at).
In the description field you can store additional information that doesn't fit elsewhere.
level is used for access privileges. When someone is granted permission to view an album, they
are also granted an access level for that album. They will be able to view photos in that album
whose level is less than or equal to their access level. This is so you can selectively exclude
photos by giving them a higher level.
--thumbs, -t / --nothumbs, --nothumbs, -n
Specify whether thumbnails should be created.
When importing (--import), the default is to create thumbs. When updating (--update), the default
is to not create thumbs.
Use these commands to overrule the defaults. If you want to recreate thumbs for already imported
photos, use --thumbs. If you do not want to create thumbnails while importing, use --no-thumbs.
--exif,--EXIF / --no-exif,--noexif,--no-EXIF,--noEXIF
Specify whether EXIF data should be read.
When importing (--import), the default is to read EXIF data. When updating (--update), the default
is to not read EXIF data.
--size / --no-size, --nosize
Specify whether Zoph should update the dimensions of the photo stored in the database.
When importing (--import), the default is to update database with dimensions of the image. When
updating (--update), the default is to not update the size information.
Use these commands to overrule the defaults. If you want to update the information stored in the
database when updating, use --size. If you do not want store size information while importing
(although I see no real use for this), use --no-size.
--useids, --useIds, --use-ids, --useid, --use-id
When updating photos it can be useful to be able to specify database ids instead of filenames.
You can specify a list of ids instead of a list of filenames. You can either specify a single id
or a range of ids. Keep in mind that the list of filenames or ids are the last options of the
command and do not necessarily follow the --useids option.
You can specify ids as single numbers or ranges. For example:
zoph --update --useids 2 5 11-20 56
Without specifying this option, zoph assumes filenames are used. Specifying this option implies
--update is used.
--move / --copy
When importing photos, you can either import a copy of the photo or move the photo into the Zoph
image directory. By default, files are moved.
If the file imported is a symlink, in case of --move, a copy of the file the symlink points to is
imported and the symlink is deleted. In case of --copy, the symlink is not deleted.
--dateddirs, --datedDirs, --dated, -d / --no-dateddirs--no-datedDirs, --nodateddirs, --nodatedDirs
put photos in YYYY.MM.DD directories, which are automatically created from the date in the EXIF
header, or, when no date is found in the EXIF header, the file date. The directories are created
below path--hierarchical, --hier, -H / --no-hierarchical, --no-hier, --nohierarchical, --nohier
when given together with the --datedDirs option, the dated directories are created YYYYMMDD
(instead of YYYY.MM.DD), thus creating a hierarchical directory tree. The directories are created
below path--hash / --no-hash
As of v0.8.4 Zoph stores a hash of each photo in the database. This is currently only used for the
'share photo' feature. In the future other features will use this, as it will allow Zoph to detect
whether a photo has been changed. The default is to generate a hash or update the hash when
--update is used.
--parent
When adding new objects to the database using the --new option, you can determine where in the
tree an album, category or place will be placed by specifying --parent.
If you do not specify a parent, the new object will be placed directly under the root.
--parent must precede the actual album, category or place. The parent is only set for the next
--album, --category or --place.
--autoadd, -A, --auto-add
You can use --new to add albums, categories, places and people from CLI, with autoadd you can add
them in the same run as you are importing photos. Zoph will add any album, category, etc. you have
specified, but does not exist. However, to protect you from every typo to be automatically added
to the database, only items preceded with --parent will be added, unless you specify --addalways.
Of course this only works for albums, categories and locations, and not for persons and
photographers.
--addallways, -w, --add-alwys
When using --autoadd, zoph protects you from every typo to be automatically added to the database
by only adding albums, categories and location preceded with --parent. To overrule this behaviour,
use --addalways, which causes them to be added under the root album, category or location.
--recursive, -r
Recursively go through directories added to the file list and import photos found in those dirs as
well.
--dirpattern
With --dirpattern, you can automatically assign albums, categories, people, photographer, location
or path based on the directories the photos are in. You do this by specifying a pattern, based on
which Zoph will use directory names to assign to correct organizer. This pattern consists of a
list of letters, where each letter is a directory: a (album), c (category), l (location), p
(person), P (photographer) and D (path).
This option makes no sense if you do not specify --recursive as well.
--verbose
show verbosely whats going on (not implemented in v0.8.4)
--pathpath
the path relative to IMAGE_DIR (set in config.inc.php), where the images are physically stored
file...
The filenames or database ids (in case --useids is used) of the image(s) to be imported or
updated.