Skip to content

Instantly share code, notes, and snippets.

View atlc's full-sized avatar

Andrew Cartwright atlc

View GitHub Profile
@atlc
atlc / resize-images.sh
Created August 16, 2019 13:43 — forked from kazzkiq/resize-images.sh
[bash] Resize image and create thumbnail with ImageMagick
INDEX_RESIZE=0
for file in ./*.jpg; do
[ -e "$file" ] || continue
convert $file -resize 1000x1000^ $file
let INDEX_RESIZE=$(expr $INDEX_RESIZE+1)
done
INDEX_THUMBNAIL=0
for file in ./*.jpg; do
[ -e "$file" ] || continue