Published at
Updated at
Reading time
1min
This post is part of my Today I learned series in which I share all my web development learnings.

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! 🎉

Was this TIL post helpful?
Yes? Cool! You might want to check out Web Weekly for more quick learnings. The last edition went out 14 days ago.
Stefan standing in the park in front of a green background

About Stefan Judis

Frontend nerd with over ten years of experience, freelance dev, "Today I Learned" blogger, conference speaker, and Open Source maintainer.

Related Topics

Related Articles