This service stores serves and creates media files (pictures, audio, videos). It also provides some metadata about uploaded pictures. Currently, it only supports pictures.
Main Linux Dependencies (have a look at the Dockerfile for a complete list):
- imagemagick
- sha256 (coreutils)
- several xserver packages
We assume an ext4 filesystem or at least a filesystem with no restriction for the number of files per folder. The service uses /tmp as a directory for temporary files. It can be speeded up massivly by having /tmp as a directory that lives in RAM. See Tmpfs for imformation about filesystem transfer into RAM.
The environment variable APPLICATION_PATH defines which folder is used to store and serve media files. There are other environment variables. Have a look at the Docker-Compose file for a complete listing. Some functionality needs URIs of different other SlideWiki services to work correctly.
cd /data/files
find ./ -name thumbnails -type d -exec find {} -name *.png \; > list
while read in; do cp "$in" /data/files/slideThumbnails/ ; done < list
cd slideThumbnails
for i in *.png ; do convert "$i" "${i%.*}.jpeg" ; done
find . -name "*.png" -type f -delete
cd /data/files/slideThumbnails
#remove all thumbnails
rm -Rf ./*
All thumbnails will be recreated automatically on first usage/request of the thumbnail with the new system.