This is multiples "Automator" tools.
The scripts folder are located on /Users/<USER>/Library/Services/
copy all workflows manually or run script:
- in terminal go to cloned dir
chmod +x install.sh
./install.sh
Others folders:
Services - ~/Library/Services Folder Action - The actual workflow is saved in ~/Library/Workflows/Applications/Folder Actions. When creating the folder action, it asks for a folder to 'attach' to in the dropdown at the top. The actions will apply to the folder you choose here. Print Plugin - ~/Library/PDF Services iCal Alarm - ~/Library/Workflows/Applications/iCal Image Capture Plugin - ~/Library/Workflows/Applications/Image Capture
First step: you need install brew [https://brew.sh/] Second step: For Videos
brew install ffmpeg ffmpeg2theora
Images
brew install --with-libheif imagemagick
Images AVIF
brew install joedrago/repo/avifenc
now you have all to done it, okey...
Open Automator and select service
with next structure:
- Get input from Finder
- Adjust variable value with
input
connection - Run shell script
*** Video to OVG ***:
/usr/local/bin/ffmpeg2theora -i "$1" libtheora -q:v 7 -c:a libvorbis -q:a 4 "$1-hd.ogv"
*** Video AVI to MP4 ***:
/usr/local/bin/ffmpeg -i "$1" -c:v copy -c:a copy -y "$1.mp4"
*** Video MP4 to HEVC ***:
/usr/local/bin/ffmpeg -i "$1" -c:v libx265 -crf 28 -c:a aac -b:a 128k -tag:v hvc1 "$1.mp4"
*** Video MOV to WEBP transparent ***:
/usr/local/bin/ffmpeg -i "$1" -c:v libvpx-vp9 "$1.webm"
*** Images to AVIF ***:
/usr/local/bin/avifenc "$1" "$1.avif"
Doc: https://web.dev/compress-images-avif/
*** Images AVIF to JPG ***:
/usr/local/bin/avifdec "$1" "$1.jpg"
Structure:
- Get items from selected finder
- Get content from finder
- Rename items from folder:
- Replace text, search: .jpeg, replace: .jpg, in options check: show process
*** Video HEIC to JPG transparent ***:
/usr/local/bin/magick convert $1 "$1.jpg"
*** Video JPG to HEIC transparent ***:
/usr/local/bin/magick convert $1 "$1.heic"
In your top bar appear animated gear.