Last active
November 4, 2024 08:52
-
-
Save saviour123/a9156da6f4e1c0d1edd0255262959c18 to your computer and use it in GitHub Desktop.
Basic Scripts to clean, convert, manipulate images
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
## 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