This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Image renaming script, requires exiftool | |
for f in "${1%/}"/*.{jpg,jpeg} | |
do | |
if [ -f "$f" ] | |
then | |
echo "Preparing $f" | |
filename=$(basename "$f") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Image renaming script, requires exiftool | |
for f in "${1%/}"/*.{jpg,jpeg} | |
do | |
if [ -f "$f" ] | |
then | |
echo "Preparing $f" | |
filename=$(basename "$f") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# VIDEO Conversion Tool | |
# Takes a source directory, and converts for the web into an output directory | |
# Arguments: src, dest | |
# Set the title of the source file | |
# for f in "${1%/}"/*.{mp4,m4v} | |
# do | |
# filename=$(basename "$f") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Takes an icon PNG as an argument, uses sips (macOS) or convert (ImageMagick), makes a lot of icons! | |
input_file=$1 | |
sizes=(20 29 40 50 57 60 72 76 83.5 512) | |
scales=(1 2 3) | |
for size in "${sizes[@]}" | |
do | |
for scale in "${scales[@]}" |
NewerOlder