Unpretentious open-source "workhorse" that maintains fitness of your photo and video archive.
100K+
Photius is unpretentious open-source multi-arch "workhorse" that maintains fitness of your personal home photo and video archive.
Photius constantly monitors an input directory /opt/src for media files (images and video), performs various optimizations on them and then moves them into an output directory /opt/dest sorting your media into YYYY/MM/DD subfolders.
Here're list of actions that Photius currently performs on media files:
jpegoptim.exiftran.ffmpeg (libx265 hvc1).exiftool.exiftool.Photius tries to be very delicate with your hardware and not to overload your system resources. Therefore you can use your computer normally while Photius performs its operations.
Please note that the software is in early beta stage. Please do regular backups of your data.
docker run -it --restart unless-stopped \
--name photius \
-v /srv/webdav:/opt \
llamaq/photius
When using volumes (-v flags) permissions issues can arise between the host OS and the container. You can avoid this issue by specifying the user PUID and group PGID value. For example, -e PUID=1000 -e PGID=1000. Default values for PUID and PGID are 1000, if no environment variables are provided.
PHOTIUS_SKIP_PICTURES exclude pictures from scanning and processing (default 0).PHOTIUS_SKIP_VIDEOS exclude videos from scanning and processing (default 0).PHOTIUS_FAILURE_THRESHOLD interval in seconds for the container to be considered unhealthy (default 300).PHOTIUS_ALLDATES_FROM_PROCESSINGDATE replace all exif dates with file processing datetime (default 0).PHOTIUS_RENAME_PROCESSINGDATE apply file processing datetime for all exif dates and use it as new filename with the following format %Y%m%d_%H%M%S_FOLDERNAME (default 0).PHOTIUS_RENAME_DATETIMEORIGINAL use exif datetime (DateTimeOriginal > CreateDate > ModifyDate > FileModifyDate, the first one found is applied) as new filename with the following format %Y%m%d_%H%M%S_FOLDERNAME (default 0).PHOTIUS_SF_DATETIMEORIGINAL smart folder name inside src (can be any valid folder name ). If set, files placed inside this smart folder will use exif datetime (DateTimeOriginal > CreateDate > ModifyDate > FileModifyDate, the first one found is applied) as new filename with the following format %Y%m%d_%H%M%S_FOLDERNAME regardless of the global PHOTIUS_RENAME_DATETIMEORIGINAL (default ``).PHOTIUS_SLEEP_INTERVAL idle time in seconds between processing each file, i.e. 0.5 for 500 ms. If 0, idle time will be equal to last processing time (default 0)./opt to any directory within webdav/ftp/samba/... server. Upload/copy your media into src directory. You may use our llamaq/nginx-extras docker container as the base for your webdav server.photius, nginx-extras and syncthing containers at each server location.Date Taken as Format for filenames as WebDAV doesn't allow preserve dates and this setting will allow you to preserve creation dates for media that do not have EXIF metadata (i.e. photos downloaded from Facebook or WhatsApp) or does not support it (i.e. GIF format). If you'd like to preserve parent directory name (which is often corresponds to app name) then check FolderSync's Create Subdirectories with format Folder Name and enable PHOTIUS_RENAME_DATETIMEORIGINAL for you container. You can get the same effect setting Date Taken + Folder Name (YR%mR%dR_%HR%MR%SR_%FP) as Custom Format for uploaded files in FolderSync. In this case, you don't have to enable PHOTIUS_RENAME_DATETIMEORIGINAL for your container.Using PHOTIUS_SKIP_PICTURES and PHOTIUS_SKIP_VIDEOS you may run simultaneously
two instances of Photius with different PHOTIUS_FAILURE_THRESHOLD values:
one for images and another for videos.
This way you can avoid jamming incoming processing queue (remember that video processing usually takes much longer than image processing).
docker run -it --restart unless-stopped
--name photius_pictures
-v /srv/webdav:/opt
-e PHOTIUS_FAILURE_THRESHOLD=300
-e PHOTIUS_SKIP_VIDEOS=1
llamaq/photius
docker run -it --restart unless-stopped
--name photius_videos
-v /srv/webdav:/opt
-e PHOTIUS_FAILURE_THRESHOLD=3600
-e PHOTIUS_SKIP_PICTURES=1
llamaq/photius
Source: https://github.com/llamaqcom/photius-docker
Bug reports: https://github.com/llamaqcom/photius-docker/issues
Docker image: https://hub.docker.com/r/llamaq/photius
This container and its code is licensed under the MIT License and provided "AS IS", without warranty of any kind.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Content type
Image
Digest
Size
140 MB
Last updated
about 5 years ago
docker pull llamaq/photius