From media-tools
Convert a folder of iPhone HEIC photos to JPEG and package them for sharing — a browsable thumbnail gallery plus an optional password-protected ZIP sized to fit a static host's per-file cap. Uses macOS sips (zero install). Use when someone can't open HEIC (Windows, appraisal/CRM software, older tools), when you need to hand a non-technical recipient a JPEG photo set, or when prepping images for a static-hosted gallery. TRIGGERS - heic to jpeg, convert heic, jpeg bundle, photo gallery zip, heic wont open, share photos as jpeg, password protected photo zip.
How this skill is triggered — by the user, by Claude, or both
Slash command
/media-tools:heic-to-jpeg-bundle [source folder of HEIC images][source folder of HEIC images]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Self-Evolving Skill**: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Turn a folder of HEIC (or any sips-readable) images into a share-ready JPEG bundle:
a self-contained gallery page plus an optional password-protected ZIP. Everything runs
through macOS sips and zip — no Homebrew, no Python, no ImageMagick.
iPhones shoot HEIC by default. HEIC is poorly supported on Windows and in a lot of appraisal / CRM / dealer / insurance software, so recipients hit a wall: they can see the file but can't open or import it, and free online converters are flaky. Re-encoding to JPEG once, locally, removes that wall for everyone downstream.
cloudflare-workers-publish skill) and want a gallery + a bulk-download ZIP.For the full end-to-end playbook (pull from a cloud album → bundle → host unlisted →
share via a gist gateway), see the photo-gallery-delivery skill, which orchestrates this one.
SKILL_DIR="$(dirname "$(find ~/.claude ~/eon -path '*/heic-to-jpeg-bundle/scripts/make-bundle.sh' 2>/dev/null | head -1)")"
# Gallery + password-protected ZIP that fits the Cloudflare Workers 25 MiB cap:
bash "$SKILL_DIR/make-bundle.sh" \
--src ~/Pictures/my-photos \
--title "2023 Corolla Cross — trade-in photos" \
--zip --password "CorollaCross2023" --zip-cap-mib 25
# Also emit a full-resolution JPEG tier (host its ZIP off a large-file host, not Workers):
bash "$SKILL_DIR/make-bundle.sh" --src ~/Pictures/my-photos --full --zip
Output:
<src>/_bundle/site/index.html # gallery: thumbnails -> full "view" JPEGs
<src>/_bundle/site/photos/photo-NNN.jpg
<src>/_bundle/site/thumbs/photo-NNN.jpg
<src>/_bundle/site/bundle.zip # when --zip and it fits the cap
<src>/_bundle/full/photo-NNN.jpg # when --full (full-res tier)
Deploy the site/ directory to any static host. Tap-through opens the 2048px "view"
JPEG, so close-up detail (VIN stickers, odometer, damage) stays legible even if the ZIP
tier was downscaled to fit a size cap.
| Flag | Default | Meaning |
|---|---|---|
--src DIR | (required) | Source folder of .heic/.jpg/.png/.tiff (non-recursive) |
--out DIR | <src>/_bundle | Output root |
--title "TEXT" | Photos | Gallery heading + <title> |
--view-edge PX | 2048 | Long edge of the per-photo "view" JPEGs |
--view-quality | 82 | JPEG quality (1–100) for the view tier |
--full | off | Also emit a full-resolution JPEG tier (no resize) |
--zip | off | Build a ZIP of the view tier |
--zip-cap-mib | 25 | Auto-downscale the ZIP tier until it lands under N MiB |
--password PW | none | Encrypt the ZIP (ZipCrypto) |
--jobs N | 6 | Parallel sips workers |
sips honors EXIF orientation when it resamples (-Z), so portrait shots come out
upright. It ships on every macOS — never reach for ImageMagick/magick for this.Asset too large). A ZIP of ~120 full-res iPhone JPEGs is
~100–500 MB and will not fit — hence --zip-cap-mib, which downscales the ZIP tier
(not the gallery) until it fits. For a true full-resolution bulk download, host that ZIP
on a large-file host (R2, a GitHub Release, your own server), not on Workers.--password uses classic ZipCrypto (zip -e), which Windows
Explorer, 7-Zip, and macOS Archive Utility all open natively with the password. AES-256
zips are stronger but need 7-Zip on the recipient's end — more friction for a
non-technical recipient, so ZipCrypto is the pragmatic default. It's a light access gate,
not strong cryptography.cloudflare-workers-publish for the hosting side.-0), not deflate — zipping
doesn't shrink them and -0 is faster.photo-NNN.jpg.--title — is folded to a numeric HTML entity like —).
ASCII is byte-identical under UTF-8 / Latin-1 / Windows-1252, so the page cannot mojibake
even if a host serves text/html with no charset (Cloudflare Workers does exactly that).
A build-time guard (iconv -f ASCII) fails the run if any non-ASCII byte survives.
perl -pe / sed -i edit that inserts
non-ASCII (e.g. \x{2014}, \x{2B07}, an emoji) over a UTF-8 file without the -CSD
layer — perl will read the existing multibyte bytes as Latin-1 and re-emit them as UTF-8,
silently corrupting them (the tell-tale Wide character in print warning). Each pass
re-encodes again. If you must post-edit generated HTML, edit ASCII entities, or use
perl -CSD. This skill avoids the pattern entirely by folding to entities once.sips and zip are macOS built-ins; the script fails fast if either is missing. No other
dependencies.
After running, before closing:
make-bundle.sh that caused it.--zip-cap-mib matches that host's real
cap, and record the cap if it differs from 25 MiB.Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
npx claudepluginhub terrylica/cc-skills --plugin media-tools