Last active
April 27, 2024 17:08
-
-
Save saviour123/a9156da6f4e1c0d1edd0255262959c18 to your computer and use it in GitHub Desktop.
Basic Scripts to convert images size
This file contains 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
# 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