-
Notifications
You must be signed in to change notification settings - Fork 13
Add a job to D‐Genies gallery
Note: gallery is only available in webserver mode.
First, you must run a job, visualize the result and export the picture in png format.
We decide to stick to png format, but others, like jpg, can be used.
Then, use imagemagick to resize the picture to 500x500 pixels
convert my_orignal_picture.png -resize 500x500 my_resized_picture.png
Optionally, you can use tools like optipng
in order to optimize file size.
optipng -o7 my_resized_picture.png
Next, copy the illustrating picture file into the gallery directory inside the data directory (~/.dgenies/data/gallery
as default) Crete the directory if it not exists.
Finally, register the job into the gallery with the following command:
dgenies gallery add -i <id_job> -n <name> -q <query_name> -t <target_name> -p <pict_filename>
where:
-
id_job
: the name of the job -
name
: title of the job that will be displayed in the gallery -
query_name
: label displayed in the table at the end of the gallery table from the query -
target_name
: label displayed in the table at the end of the gallery table from the target -
pict_filename
: filename added in the gallery folder (without path)
You can also delete an item from the gallery:
dgenies gallery del -i <id_job>
or:
dgenies gallery del -n <name>
where id_job
and name
as described above. You can add the --remove-pict
option to remove the picture file from the gallery folder.
Note: first item of the gallery will be shown on home page.