Skip to content

Instantly share code, notes, and snippets.

@dariowho
dariowho / generate_thumbs.sh
Created May 1, 2020 11:12
Generate JPEG thumbnails recursively, robust against whitespace in paths
#!/bin/bash
# Generate JPEG thumbnails recursively, robust against whitespace in paths
if [ "$1" == "--help" ] || [ "$1" == "-h" ]
then
echo "Usage: ./generate_thumbnails.sh SOURCE_DIR TARGET_DIR"
echo "Generate thumbnails from JPEG images in a given source folder, to a given target folder."
echo "Subfolders are visited recursively, and maintained in the target dir. Spaces in file names are allowed."
echo
exit

Keybase proof

I hereby claim:

  • I am dario-chiappetta on github.
  • I am dario_chi (https://keybase.io/dario_chi) on keybase.
  • I have a public key whose fingerprint is A224 7DB5 DCCC 3FFB ED53 17E5 D68F 0D32 20E1 3F25

To claim this, I am signing this object: