Package: piwiPre
piwiPrepiwiPre is a python/windows tool to prepare pictures for piwigo,
and maintain the piwigo albumIt was initially developed for a piwigo instance running on a remote server such as a Synology NAS,
while the 'photo' and 'web' directories are accessible from a PC where piwiPre is run,
but it can run on many other configurations.Some of its features can be useful even when piwigo is not used.piwiPre executes the following tasks:Read configuration files and command-line argument to insure a high level of configuration.Process new pictures on the local host in the TRIAGE directoryprocess copy of pictures and leave original unmodifiedrealign picture rotationinsert metadata (copyright, instructions)correct picture datesrename picturesavoid collision of filenamesput updated copies into ALBUMbuild piwigo thumbnailscopy thumbnails to a remote location through ssh/sftpself-configure ALBUM for maintenanceMaintain  ALBUMwork only on selected directoriesEnsure the directory is aligned with the current configurationlog intensively the actionswhat piwiPre doesnotpiwiPre does not manage synology thumbnails created by synology filestation,
which is not a concern because those thumbnails are small (less than 500KB).piwiPre does not copy pictures to piwogo albums that are accessible only through ssh.
This is a future feature in version 2.However, piwiPre DOES copythumbnailsto the piwigo server through ssh/sftp.How to get piwiPrePython module on Pypi :https://pypi.org/project/piwiPrePython source on gitlab:https://gitlab.com/fabien_battini/piwiPreWindows on-file exe on gitlab artifacts:https://fabien_battini.gitlab.io/piwipre/html/download.htmlHow to use piwiPre (short)Copy new pictures and videos from your cameras to the TRIAGE directory.Create subdirectories is TRIAGE according to your tasteThe name of the subdirectory will be a base for the new filename of picturesmove files into one of those.Optionally edit the pictures in TRIAGE with digiKam, gimp or other image processing tool.If you want managed files to be written to a remote piwigo server, then you need a piwiPre.ini configuration file.If it does not exist, create one by running 'piwiPre --reset-ini' and edit it.At least, the following items should be  updated: piwigo-user, piwigo-pwd, piwigo-host.An alternative is to not use the configuration file and use the corresponding --xxx command-line itemsRun piwiPreResults:pictures have metadata insertedpicture rotation is reset to defaultFiles are renamed according to directories, datesthe thumbnails are generatedfiles have been copied to ALBUMpiwiPre.log holds an exhaustive logpiwiPre as a toolpiwiPre is also a command-line tool, with command-line options.
For more information:piwiPre.py --helpDocumentationDocumentation is built using Sphinxhttps://www.sphinx-doc.org/Documentation is generated inhttps://fabien_battini.gitlab.io/piwipre/html/This process is achieved automatically through gitlab CI pipelines.gitlab:https://gitlab.com/fabien_battini/piwipredoc :https://fabien_battini.gitlab.io/piwipre/html/test coverage:https://fabien_battini.gitlab.io/piwipre/html/htmlcov/index.htmlpypi:https://pypi.org/project/piwipre/LinkedIN:https://www.linkedin.com/in/fabien-battini-supelec/