You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Control-Shift-Command-4 format JPG

When I use the Control-Shift-Command-4 and I copy a portion of the screen to the clipboard, it always saves the image as PNG format. Is there any way to have the image saved as JPG format?

Posted on Aug 13, 2018 1:11 PM

Reply
19 replies

Aug 13, 2018 1:33 PM in response to AndyBajka

Dock : Launchpad : Other : Terminal.


Copy and paste the following into the Terminal and press return:


defaults write com.apple.screencapture type jpg

You can verify that this was set:

defaults read com.apple.screencapture

Future screen captures will be written as jpg, whether to the clipboard, or depending on the screencapture keystrokes, to a jpg file.


See System Preferences : Keyboard panel : Shortcuts : Screen Shots.

Aug 13, 2018 2:59 PM in response to AndyBajka

What I posted works to send .jpg data to the clipboard, or to a file. Tested before I posted.


Set the screencapture to jpg per my first item. Then, perform a control+shift+command+4 partial capture to the clipboard. In the Terminal, immediately do the following:


pbpaste > ~/Desktop/foo.jpg


And from the Finder, click once to select this foo.jpg file on your Desktop, and press option+command+i. The file type is reported as jpg.

Aug 13, 2018 3:14 PM in response to VikingOSX

What I posted works to send .jpg data to the clipboard, or to a file.

Not really. You opened a JPEG so it could be viewed in Photoshop, Preview or whatever you were using to view the file, and then do screen shot of that displayed image.


Thing is, you can't actually display a JPEG. In order to view the image, it must be decoded/uncompressed before it can be presented by the app you're using to view it. It is now an uncompressed image again. Likewise, the screen shot of that uncompressed image is also uncompressed data.

Aug 13, 2018 3:29 PM in response to dialabrain

Objective-C will show a public.jpeg URI type on the clipboard after the screenshot is sent there, but when one chooses new from clipboard in Preview, it appears as a .png.


If one pastes from the clipboard into Pages v7.1, the image tab in the sidebar reports the pasted image as "pasted-image.jpeg.” So, it may depend on how the individual application was written to accept data from the clipboard. When I do this with Pages '09 v4.3, it comes in as droppedimage.tiff.


Yes, you are right. Give an empty file a .jpg extension and it will lie up a storm. My bad.

Aug 13, 2018 3:35 PM in response to dialabrain

Thank you all for your support in this.


My goal is to be able to do a Control-Shift-Command-4 and select a portion of the screen, then navigate to an editor much like the one I'm typing in now and paste that clipboard content. When the post is saved (using a forum software called XenForo which uses an editor called Froala) the image becomes a PNG attachment. My goal is to have it save the image attachment as JPG. Why, for one reason is that adding a border around the image is much easier when the image is a JPG.


So I don't know where exactly this uncompressed raster data is defined as PNG, is it in the macOS, Froala or XenForo?

Control-Shift-Command-4 format JPG

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.