macOS 系統自帶的截圖功能默認保存為 PNG 格式,雖然無損畫質優異,但檔案體積較大,佔用存儲空間且分享傳輸較慢。對於頻繁截圖的用戶,改為 JPG 格式能顯著節省空間,且畫質對日常使用足夠。
defaults write com.apple.screencapture type jpg
killall SystemUIServer
完成後,所有通過系統快捷鍵截取的圖片將自動保存為 JPG 格式。
在終端執行:
defaults write com.apple.screencapture type png
killall SystemUIServer
除 jpg 和 png 外,還支援 tiff、pdf、gif、bmp、pict、jp2、psd、sgi、tga 等格式,只需將指令中的 jpg 替換為目標格式縮寫即可。
JPG 預設壓縮品質約 80%。如需調整,可執行:
defaults write com.apple.screencapture quality 90
killall SystemUIServer
數值範圍 1-100,數值越大畫質越好、檔案越大。
可以。例如改存到桌面「Screenshots」資料夾:
defaults write com.apple.screencapture location ~/Desktop/Screenshots
killall SystemUIServer
一條 defaults write 指令即可永久修改 macOS 截圖默認格式,配合 killall SystemUIServer 即時生效,無需第三方工具,安全高效。建議根據使用習慣在 JPG(省空間)與 PNG(高畫質)間切換,或按需調整品質參數,打造最順手的截圖工作流。