Skip to content

Instantly share code, notes, and snippets.

View wilcoverhoeven's full-sized avatar

Wilco Verhoeven wilcoverhoeven

View GitHub Profile
# === vscode ===
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# === APPLE ===
# General
@wilcoverhoeven
wilcoverhoeven / resize.sh
Last active February 21, 2016 19:01
OSX bash script to reduce image (jpg) size, by resizing, removing color profiles and saving with a jpg quality of 70%.
#!/bin/bash
find . -type f \( -name '*.jpg' -o -name '*.JPG' -o -name '*.jpeg' -o -name '*.JPEG' \) -print0 | xargs -0 sips $(file) --resampleHeightWidthMax 2000 --deleteProperty profile --setProperty formatOptions 70