Terminal Hacks - Set Screenshot's Default File Type

Change Default File Type

Open TerminalFinder > Applications > Utilities

In Terminal, type or paste one of the following…

JPG Joint Photographic Experts Group [raster format]
defaults write com.apple.screencapture type JPG

PDF Portable Document Format [vector format]
defaults write com.apple.screencapture type PDF

PNG Portable Network Graphics [raster format]
defaults write com.apple.screencapture type PNG

TIFF Tagged Image File Format [raster format]
defaults write com.apple.screencapture type TIFF

(return)

Originally posted 11 January, 2025.