Image Convert
Drop images to convert them to JPG, PNG, HEIC or TIFF, optionally smaller, into a folder you choose. The originals stay as they are.
by MArk · Version 1 · Updated 5 days ago
- Price
- Free
- Works on
- Mac
- Permissions
- 2
What it does
-
Lives where you glance
Menu bar, TailApps Dock, Dashboard and a floating window on your Mac.
-
Asks you to set up
Save converted images to
What it may do
TailApps shows this list before installing and asks you once. The card can do nothing else.
-
Run its script convert.sh
script:convert.sh
-
Show notifications
notify
Scripts
Everything it runs is here to read before you install.
convert.sh
#!/bin/sh
# convert.sh <format> <longest side, 0 = keep> <folder> <files JSON>
# Converts each dropped image into the folder you chose, with the Mac's own sips (ImageMagick on Linux). Never overwrites (photo 2.jpg, …),
# never touches the originals. Prints { converted, failed, folder, first } for the card.
format="$1"; size="$2"; folder="$3"; files="$4"
case "$format" in jpeg) ext=jpg ;; png|heic|tiff) ext="$format" ;; *) echo "Unknown format '$format'" >&2; exit 1 ;; esac
case "$size" in ''|*[!0-9]*) size=0 ;; esac
[ -d "$folder" ] || { echo "Choose where converted images go first (⋯ › Settings…)" >&2; exit 1; }
if command -v sips >/dev/null 2>&1; then tool=sips
elif command -v magick >/dev/null 2>&1; then tool=magick
elif command -v convert >/dev/null 2>&1; then tool=convert
else echo "Needs sips (on a Mac) or ImageMagick" >&2; exit 1; fi
paths=$(printf '%s' "$files" | jq -r '.[].path') || { echo "Couldn't read the dropped files" >&2; exit 1; }
ok=0; bad=0; first=''
while IFS= read -r src; do
[ -n "$src" ] || continue
name=$(basename "$src"); base="${name%.*}"
dest="$folder/$base.$ext"; n=2
while [ -e "$dest" ]; do dest="$folder/$base $n.$ext"; n=$((n + 1)); done
if [ "$tool" != sips ] && [ "$size" -gt 0 ]; then
"$tool" "$src" -resize "${size}x${size}" "$dest" >/dev/null 2>&1
elif [ "$tool" != sips ]; then
"$tool" "$src" "$dest" >/dev/null 2>&1
elif [ "$size" -gt 0 ]; then
sips -s format "$format" -Z "$size" "$src" --out "$dest" >/dev/null 2>&1
else
sips -s format "$format" "$src" --out "$dest" >/dev/null 2>&1
fi
if [ -e "$dest" ]; then
ok=$((ok + 1)); [ -n "$first" ] || first=$(basename "$dest")
else
bad=$((bad + 1))
fi
done <<EOF
$paths
EOF
[ "$ok" -gt 0 ] || { echo "None of the $bad image(s) could be converted" >&2; exit 1; }
jq -n --argjson ok "$ok" --argjson bad "$bad" --arg folder "$folder" --arg first "$first" \
'{ converted: $ok, failed: $bad, folder: $folder, first: $first }'
More in Capture & media
See all →Clip
Record a short video, watch it, then share it or upload it to your own bucket (Cloudflare R2, S3 and others) and copy the link. Works on a Mac and on an iPhone.
Dictate
Hold a shortcut on the Mac (or tap Record on the iPhone), speak, let go: your words become text on your clipboard. Turn on Share and Sync to My Devices to see them on your other devices.
Now Playing
What Music or Spotify is playing on your Mac, with the cover, live progress and play, pause and skip. Your iPhone shows and controls it too: turn on Sync to My Devices on both.