Skip to content

Instantly share code, notes, and snippets.

@saviour123
Last active November 4, 2024 08:52
Show Gist options
  • Save saviour123/a9156da6f4e1c0d1edd0255262959c18 to your computer and use it in GitHub Desktop.
Save saviour123/a9156da6f4e1c0d1edd0255262959c18 to your computer and use it in GitHub Desktop.
Basic Scripts to clean, convert, manipulate images
## Inspect image metadata
exiftool IMG_4487.JPG
## convert apple .HEIC to .jpg
find . -type f -name "*.HEIC" -exec heif-convert {} \;
## scale the images by half size(Reduce the Image size)
find *.jpg -prune | while read f; do ffmpeg -i "$f" -vf "scale=iw/2:ih/2" "scaled$f"; done
## Remove metadata from photo
exiftool -overwrite_original -all= IMG_4664.heic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment