让 Mac 截图默认保存为 JPG
修改 macOS 截图的默认格式。
运行下面的命令后,之后每次截图(⌘⇧3 / ⌘⇧4 / ⌘⇧5)都会保存为 JPG。已有截图不受影响。
01命令
命令
$ defaults write com.apple.screencapture type jpg && killall SystemUIServer02作用说明
macOS 默认把截图存为 PNG。screencapture 的 type 偏好支持 png、jpg、tiff、gif、pdf。killall SystemUIServer 让设置立即生效。JPG 文件更小,适合照片类截图;如果截图里有大量文字,PNG 仍然更清晰。
03风险
!注意: JPG 为有损压缩,含小字号文字的截图可能略模糊。
04撤销
撤销
$ defaults write com.apple.screencapture type png && killall SystemUIServer05来源
- screencapture — take screenshots from the command line依据: com.apple.screencapture type accepts png, jpg, tiff, gif, pdf.
最后验证: 2025-11-15 · 分类: 系统与设置