#imagemagick

canoodle@nerdpol.ch

GNU Linux bash - script to generate thumbnails

# requirements su - root apt update # has the convert command apt install imagemagick vim /scripts/create_thumbs.sh #!/bin/bash THUMBS_FOLDER=/path/to/images/thumbnails for file in /path/to/images/* do # next line checks the mime-type of the file IMAGE_TYPE=file --mime-type -b "$file" | awk -F'/' '{print $1}'[...]

#linux #gnu #gnulinux #opensource #administration #sysops #gnu-linux #bash #images #image #imagemagick

Originally posted at: https://dwaves.de/2021/12/02/gnu-linux-bash-script-to-generate-thumbnails/