Screen Capture

Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
Hi

I have one pdf of Sheet Music that contains 2 pages
- Page Cover
- Sheet Music

The pdf is 2.4 MB and when I open it up , I make a screen shot ( shift command 3 ) of the Page Cover and a screen shot of the Sheet Music.

pdf = 2.4 MB
Page Cover = 4.2 MB
Sheet Music = 793 KB

If the total pdf is 2.4 MB, why is the extracted Page Cover 4.2 MB ? I am sure that it is because of the resolution....... is there a place where I can reduce the resolution?

Ron
 
OP
rphillipchuk
Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
I will answer my own question in case other users are having the same problem

Open up "Terminal" and enter "defaults write com.apple.screencapture type jpg". This will dramatically reduce the size of the screenshot.
And if you need the resolution back
Open up "Terminal" and enter "defaults write com.apple.screencapture type png"
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
You don't need to use the Terminal.

You already have an application on your Mac which can easily do what you want; it's called "Preview". Learn how to use it. :)
 

IWT


Joined
Jan 23, 2009
Messages
10,292
Reaction score
2,231
Points
113
Location
Born Scotland. Worked all over UK. Live in Wales
Your Mac's Specs
M2 Max Studio Extra, 32GB memory, 4TB, Sonoma 14.4.1 Apple 5K Retina Studio Monitor
Ron,

Screenshots are saved as PNG files which are large.

Open the screenshot file by double-clicking on it. By default, it will open in Preview. Click on File whilst holding down the Option key.

(You need to hold down the Option Key to bring up "Save As").

Click on "Save As". At the bottom look for FORMAT. Click on the arrowheads and it will bring up a list of choices. Choose JPEG.

Before saving the file, note that there is a slider under JPEG Format indicating "Quality" from Least to Best, with an indicator telling you the File Size associated with the choice you make. Make your choice and then "Save".

PS I've found that for most situations where text (like music) is concerned, there is not that much difference in visual quality between Least and Best, but a big difference in File Size.

Ian
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,771
Reaction score
2,111
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
I will answer my own question in case other users are having the same problem

Open up "Terminal" and enter "defaults write com.apple.screencapture type jpg". This will dramatically reduce the size of the screenshot.
And if you need the resolution back
Open up "Terminal" and enter "defaults write com.apple.screencapture type png"

Excellent find. For most screen capturing where you want to prioritize file size over quality, this is a good technique.
 
OP
rphillipchuk
Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
You know that old saying "You can't see the forest because of the tree's in front"...... That's me.........

Thanks all ! Great Site !
 
OP
rphillipchuk
Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
Ron,

Screenshots are saved as PNG files which are large.

Open the screenshot file by double-clicking on it. By default, it will open in Preview. Click on File whilst holding down the Option key.

(You need to hold down the Option Key to bring up "Save As").

Click on "Save As". At the bottom look for FORMAT. Click on the arrowheads and it will bring up a list of choices. Choose JPEG.

Before saving the file, note that there is a slider under JPEG Format indicating "Quality" from Least to Best, with an indicator telling you the File Size associated with the choice you make. Make your choice and then "Save".

PS I've found that for most situations where text (like music) is concerned, there is not that much difference in visual quality between Least and Best, but a big difference in File Size.

Ian


-
Excellent find. For most screen capturing where you want to prioritize file size over quality, this is a good technique.


Does anyone know what parameter to add as a percentage ? Similar to the slider, JPEG Format indicating "Quality" from Least to Best.

Example:
defaults write com.apple.screencapture type jpg
defaults write com.apple.screencapture type 50% jpg
 

IWT


Joined
Jan 23, 2009
Messages
10,292
Reaction score
2,231
Points
113
Location
Born Scotland. Worked all over UK. Live in Wales
Your Mac's Specs
M2 Max Studio Extra, 32GB memory, 4TB, Sonoma 14.4.1 Apple 5K Retina Studio Monitor
Please believe that I am in no way wishing to be controversial; but I am moved to suggest that the Preview method is incredibly simple, ticks all the boxes and is a comfortable solution for all.

The use of Terminal in any instance carries the risk of doing harm and is beyond the comfort zone of many users.

Rather than seeking parameters "Similar to the slider, JPEG Format indicating "Quality" from Least to Best", why not stick with the easy option?

In Preview, you can instantly see the JPEG file size as you move the cursor along the slider.

Just my personal thoughts. No offence intended.

Ian
 
OP
rphillipchuk
Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
Please believe that I am in no way wishing to be controversial; but I am moved to suggest that the Preview method is incredibly simple, ticks all the boxes and is a comfortable solution for all.

The use of Terminal in any instance carries the risk of doing harm and is beyond the comfort zone of many users.

Rather than seeking parameters "Similar to the slider, JPEG Format indicating "Quality" from Least to Best", why not stick with the easy option?

In Preview, you can instantly see the JPEG file size as you move the cursor along the slider.

Just my personal thoughts. No offence intended.

Ian

No offence taken.......... Right now its all about workflow and key strokes..... I have about 3 or 4 thousand pngs that need to be converted to jpg ( Server Storage is killing me ).

So if I can eliminate 5 key strokes 4000 times , it will save me a lot of time.

I think the "Automator" is the right tool to use, the problem is I do not have the skill set..

Thank you for your interest in this topic, it is appreciated
 
Joined
May 21, 2012
Messages
10,747
Reaction score
1,196
Points
113
Location
Rhode Island
Your Mac's Specs
M1 Mac Studio, 11" iPad Pro 3rd Gen, iPhone 13 Pro Max, Watch Series 7, AirPods Pro
Hi

I have one pdf of Sheet Music that contains 2 pages
- Page Cover
- Sheet Music

The pdf is 2.4 MB and when I open it up , I make a screen shot ( shift command 3 ) of the Page Cover and a screen shot of the Sheet Music.

pdf = 2.4 MB
Page Cover = 4.2 MB
Sheet Music = 793 KB

If the total pdf is 2.4 MB, why is the extracted Page Cover 4.2 MB ? I am sure that it is because of the resolution....... is there a place where I can reduce the resolution?

Ron
Where are you getting the sheet music from? Can you goto File > Print > PDF > Save as pdf?
 
OP
rphillipchuk
Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
I run a couple web sites .... Users upload a PDF and I extract the Cover Page, the Index Page and the first page of the sheet music
If I use png the size is 2.3 MB..... If I save as JPG, it drops down to 288 KB....a HUGE difference
 
Last edited:

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
As an aside to all your efforts.....

Hopefully you are respecting copyright. ??
 

Slydude

Well-known member
Staff member
Moderator
Joined
Nov 15, 2009
Messages
17,616
Reaction score
1,079
Points
113
Location
North Louisiana, USA
Your Mac's Specs
M1 MacMini 16 GB - Ventura, iPhone 14 Pro Max, 2015 iMac 16 GB Monterey
I'm not sure which version of macOS you're running but here's another option. Why not let Automator do the work for you without using Terminal? The steps should be almost identical no matter which version you're using.
 
OP
rphillipchuk
Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
Thanks, I will give this a try..... Just hope that the old brain can make sense of it LOL

Before I get to far into this, what I would like to do, is to select the png file, then have Automator convert it to a jpg file and place it in the same directory, go to the next directory and rinse and repeat...

Is this doable ?
 
Last edited:

Slydude

Well-known member
Staff member
Moderator
Joined
Nov 15, 2009
Messages
17,616
Reaction score
1,079
Points
113
Location
North Louisiana, USA
Your Mac's Specs
M1 MacMini 16 GB - Ventura, iPhone 14 Pro Max, 2015 iMac 16 GB Monterey
It should be. It has been a while, and I've really only scratched the surface of what it can do.
 
OP
rphillipchuk
Joined
Sep 8, 2020
Messages
21
Reaction score
1
Points
3
Your Mac's Specs
MacBook Pro (16 - inch,2019), 2.3 GHz 8 - Core i9, 32 GB 2667 MHz DDR4, Intel UHD Graphics 630 1536
-



Does anyone know what parameter to add as a percentage ? Similar to the slider, JPEG Format indicating "Quality" from Least to Best.

Example:
defaults write com.apple.screencapture type jpg
defaults write com.apple.screencapture type 50% jpg

I am hoping by bumping this topic up, I could receive some advice.

I am quite happy with the "Terminal" commands to save the screenshot as a "jpeg" instead of a "png". But I do miss the Slider option to control the file size !

Again I respectfully ask ?

Does anyone know what parameter to add as a percentage ? Similar to the slider, JPEG Format indicating "Quality" from Least to Best.

Example:
defaults write com.apple.screencapture type jpg
defaults write com.apple.screencapture type 50% jpg


Ron
 
Joined
May 21, 2012
Messages
10,747
Reaction score
1,196
Points
113
Location
Rhode Island
Your Mac's Specs
M1 Mac Studio, 11" iPad Pro 3rd Gen, iPhone 13 Pro Max, Watch Series 7, AirPods Pro
I don't think you can change the quality, or it may change the size if you add the quantity. If you want the "quality" option, use Preview.
 

IWT


Joined
Jan 23, 2009
Messages
10,292
Reaction score
2,231
Points
113
Location
Born Scotland. Worked all over UK. Live in Wales
Your Mac's Specs
M2 Max Studio Extra, 32GB memory, 4TB, Sonoma 14.4.1 Apple 5K Retina Studio Monitor

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top