Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

If I take a screenshot with Shift ⇧ + Command ⌘ + 4 + Space, then I get one of the two images:
blue-with-focus
blue-wo-focus

Either way the saved image is surrounded by the shadow halo. I could then edit it out by hand (using Preview) to discard the shadow, or I could use Shift ⇧ + Command ⌘ + 4 and try to pinpoint the boundary by hand, but neither lets me get a pixel-perfect boundary easily.

Is there a convenient way to save a window without its shadow?

share|improve this question

3 Answers

up vote 17 down vote accepted

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
share|improve this answer

If you don't want to change the default, another option would be to use screencapture.

screencapture -o -T5 -i -c
  • -o: no shadow
  • -T5: timer 5 seconds
  • -i: interactive (capture an area)
  • -c: copy to clipboard
share|improve this answer
2  
also very useful when one wants to capture from a script. – Calaf May 9 '12 at 17:09

Another useful option is to use TinkerTool. Go to TinkerTool and under the General tab, you'll find an option to disable shadows only when taking screenshots (along with several other related options):

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.