Apple - How do I take a screenshot without the shadow behind it?
I know this is an old question - but I can never find this information when searching for it (just the information in the accepted answer to turn it off globally), and end up just trying random keys each time.
If you hold option while clicking (after doing the Shift ⇧ + Command ⌘ + 4, Space dance), the saved screenshot will not have the drop shadow.
I'm unsure if this only applies to Mountain Lion and later.
You can disable the shadow added when capturing an entire window by executing the following command from the Terminal:
defaults write com.apple.screencapture disable-shadow -bool TRUE
You'll need to reboot or restart the UIServer for the changes to take effect:
killall SystemUIServer
You can undo this preference and re-enable shadows by executing the following:
defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer
Another option is to use screencapture
:
screencapture -oic
-o
disables shadows, -i
captures an area, and -c
copies the image to the clipboard.
This would use a timer of 5 seconds and save the image to a file:
screencapture -oi -T5 /tmp/screencapture.png
Run screencapture -h
to list all options:
$ screencapture -h
screencapture: illegal option -- h
usage: screencapture [-icMPmwsWxSCUtoa] [files]
-c force screen capture to go to the clipboard
-C capture the cursor as well as the screen. only in non-interactive modes
-d display errors to the user graphically
-i capture screen interactively, by selection or window
control key - causes screen shot to go to clipboard
space key - toggle between mouse selection and
window selection modes
escape key - cancels interactive screen shot
-m only capture the main monitor, undefined if -i is set
-M screen capture output will go to a new Mail message
-o in window capture mode, do not capture the shadow of the window
-P screen capture output will open in Preview
-s only allow mouse selection mode
-S in window capture mode, capture the screen not the window
-t<format> image format to create, default is png (other options include pdf, jpg, tiff and other formats)
-T<seconds> Take the picture after a delay of <seconds>, default is 5
-w only allow window selection mode
-W start interaction in window selection mode
-x do not play sounds
-a do not include windows attached to selected windows
-r do not add dpi meta data to image
-l<windowid> capture this windowsid
-R<x,y,w,h> capture screen rect
files where to save the screen capture, 1 file per screen
You can also use toggle-osx-shadows to disable shadows everywhere in OS X:
git clone https://github.com/pufuwozu/toggle-osx-shadows.git;cd toggle-osx-shadows;make;mv toggle-osx-shadows /usr/local/bin;toggle-osx-shadows