Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Decide how to handle HEIF files

Aperta
#50 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
macos, shell

Direzione di ricerca

The issue body holds the working notes: switching Screenshot's Capture Format back to PNG, a defaults write com.apple.screencapture type png command, and sips/ImageMagick conversion commands. The title asks for a decision, and the payload never says whether that means a config change, a script, or a doc page, so confirm with the maintainer first. Done means the chosen approach is recorded and the commands are checked on a Mac running Tahoe.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The HEIF switch comes from an HDR screenshot option Apple added in Tahoe. On supported Macs running macOS Tahoe 26 or later, if the Capture Format setting in the Screenshot app is set to HDR, screenshots are captured in HEIF format and screen recordings in HEVC. On some Macs, the system prompts you during a capture to switch to an HDR format, and after that every screenshot is saved as HEIC. That is probably how it got turned on for you.

Switching back to PNG

Press ⌘⇧5, open Options, and set Capture Format to SDR (Most Compatible). That menu switches between SDR, which saves PNG, and HDR, which saves HEIF/HEIC.

You can also set it from the terminal:

defaults write com.apple.screencapture type png
killall SystemUIServer screencaptureui 2>/dev/null

The type key is undocumented by Apple and may be ignored on newer macOS versions, including some Tahoe installations, so the menu setting is the one that reliably controls the format.

Converting existing HEIC files

sips is built into macOS and uses Apple's own decoder:

for f in *.heic; do sips -s format png "$f" --out "${f%.heic}.png"; done

With ImageMagick 7 (the Homebrew build includes libheif):

magick -list format | grep -i heic          # confirm HEIC support
magick in.heic -depth 8 out.png             # single file
magick mogrify -format png -depth 8 *.heic  # batch, writes next to originals

Use -depth 8 because HDR captures are 10-bit, and without it ImageMagick may write 16-bit PNGs that are about twice the size.

With libheif directly: heif-dec in.heic out.png. Older versions name the tool heif-convert.

PNG can't store HDR, so every one of these tools will compress the bright highlights into the normal brightness range. If ImageMagick's output looks too bright or too dull, try sips, which uses the same image framework as Preview.

Lingua principale
Shell
Stelle
1
Fork
0
Merge medio
9h 5m
PR unite (30g)
5

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di indexzero/dotfiles

Tutte le issue di indexzero/dotfiles

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.