4 ms·
I've done this to strip Exif metadata from pictures using Automator. Uses homebrew and the exiftool package. Workflow receives current "image files" in "any ap
by nullindividual 2y ago
I've done this to strip Exif metadata from pictures using Automator. Uses homebrew and the exiftool package.
Workflow receives current "image files" in "any application"
Image = Action
Run shell script:
Shell: /bin/zsh
Pass input: As argument
for f in "$@"
do
/opt/homebrew/bin/exiftool -all= -tagsfromfile @ -ColorSpaceTags -Orientation $f
done
----
Will be under the Quick Actions menu.
I tried the same with Shortcuts, but I cannot get it to run from the context menu, only within Shortcuts during testing. Maybe something limiting shell command access from Shortcuts? Not sure.
- msephton 2y agonice use case!
- lelandfe 2y agoThe built in "Convert Image" Quick Action has a Strip Metadata option
- nullindividual 2y agoThanks! However, it lacks a couple of things the Automator script does. It wants to convert by default to JPEG instead of keeping the source format, it requires interactivity, and for some reason if I cancel the dialog, I can't get it to run again without relaunching Finder (on 14.6).
- lelandfe 2y agoWow, can confirm that it silently dies if cancelled. Apple these days, huh?
- slmjkdbtl 2y agoHow come it doesn't run with Shortcuts? Any error message? I migrated all my context menu scripts from Automator to Shortcuts and have no problem
- nullindividual 2y agoJust "Error opening file /correctPathToFile". Step 1 - Receive Images input from Quick Actions Step 2 - Run same script as above, Shell: zsh, Input: <blank, Shortcuts Input?>, Pass Input: As args Step 3 - Show Shell Script Result