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! ๐ŸŽ‰

If you enjoyed this article...

Join 5.5k readers and learn something new every week with Web Weekly.

Web Weekly โ€” Your friendly Web Dev newsletter
Reply to this post and share your thoughts via good old email.
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