更改osx系统截屏图片格式和保存位置

MAC OSX默认截屏图片格式是PNG,另外支持JPG、GIF、TIFF和PDF,以前都是用第三方工具设置一下,这次还是记录下系统命令吧。

1、打开Terminal

2、以下命令分别对应不同的图片格式:

JPG

defaults write com.apple.screencapture type jpg;killall SystemUIServer

GIF

defaults write com.apple.screencapture type gif;killall SystemUIServer

PDF

defaults write com.apple.screencapture type pdf;killall SystemUIServer

TIFF

defaults write com.apple.screencapture type tiff;killall SystemUIServer

PNG

defaults write com.apple.screencapture type png;killall SystemUIServer

另外,默认的系统截屏图片保存位置是在桌面上,也可以修改保存目录,例如:

defaults write com.apple.screencapture location ~/Documents/Screenshots;killall SystemUIServer