How to change the output image format of macOS screenshots
- Published at
- Updated at
- Reading time
- 1min
This post is part of my Today I learned series in which I share all my learnings regarding web development.
Today, I came across this Twitter thread by Corey Ginnivan in which he shared a bunch of tips and tricks about macOS screenshotting. If you want to learn more and see how you can screenshot more productive, you should check it out!
This quick post is only about the fact that you can change the image format of screenshots, though. (so that I won't forget)
Now and then, I want to use a screenshot on a website. MacOS uses png
as default image format, and due to png
's lossless nature and its big file size, it is not always the best option. My flow was then to open the png
and convert it to a jpg
to save some bytes. It was not great!
Corey shared that to change the output format of the macOS screenshot tool to you can run the following command in your terminal.
defaults write com.apple.screencapture type -string "jpg"
According to the tweet, the following formats are supported: png
, bmp
, gif
, jpg
, pdf
, tiff
. Awesome! 🎉
Related Topics
Related Articles
- Why I don't need to clean up my desktop and downloads folder in macOS
- A terminal script to get notified when macOS changes its appearance (dark/light mode)
- Finding macOS command line settings and options
- My Mac didn't boot after installing a driver, here's how I fixed it.
- Copy screenshots directly to the clipboard