macOS 截圖預設儲存為 PNG(無損壓縮、檔案較大)。若習慣分享 JPG 或需透明背景用 GIF,可透過 Terminal 修改預設格式,一勞永逸。
defaults write com.apple.screencapture type jpgkillall SystemUIServer



| 格式 | 指令參數 | 特性 |
|---|---|---|
| JPG | jpg / jpeg | 有損壓縮、檔案小、無透明度、適合照片/分享 |
| PNG | png | 無損、支援透明、預設格式、適合 UI/文檔 |
| GIF | gif | 256 色、支援動畫/透明、檔案極小、適合簡單動圖 |
pdf | 向量/混合、可編輯文字層、適合文檔歸檔 | |
| TIFF | tiff / tif | 無損/可壓縮、專業印刷、檔案極大 |
| BMP | bmp | 無壓縮、相容性最好、檔案巨大 |
範例:改為 GIF → defaults write com.apple.screencapture type gif + killall SystemUIServer
defaults write com.apple.screencapture location ~/Pictures/Screenshotsdefaults write com.apple.screencapture name "螢幕截圖"defaults write com.apple.screencapture disable-shadow -bool truekillall SystemUIServer善用終端機指令客製化截圖行為,讓 Mac 截圖流程完美融入個人工作流。