Skip to content

Instantly share code, notes, and snippets.

@saviour123
Last active April 27, 2024 17:08
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 convert images size
# convert apple .HEIC to .jpg
find . -type f -name "*.HEIC" -exec heif-convert {} \;
# scale the images by half 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
## Inspect image metadata
exiftool IMG_4487.JPG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment