# Choose screenshot format

Choose the screenshots image format.

  • Tested on macOS:
    • Big Sur
    • Catalina
    • Mojave
  • Parameter type: string

# Set to png (default value)

The generated image is a png

defaults write com.apple.screencapture "type" -string "png" 

# Set to jpg

The generated image is a jpg

defaults write com.apple.screencapture "type" -string "jpg" 

# Read current value

defaults read com.apple.screencapture "type"

# Reset to default value

defaults delete com.apple.screencapture "type"