Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

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.

Enable drop-shadow on screenshots

I know how to use or remove the drop-shadow from screenshots when using the "window" selector, but is there a way to add the drop-shadow when using the "selected portion" screenshot method?


I've looked through the  support article (How to take a screenshot on your Mac - Apple Support) but couldn't find what I was looking for.

MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13.3)

Posted on Feb 27, 2018 8:10 PM

Question marked as Top-ranking reply

Posted on Mar 3, 2018 11:32 PM

One option for taking a screenshot of a selected portion of your screen with drop-shadow:


1. Install ImageMagick.


The simplest way is to use Rudix. Either install the package manager first and then the package from Terminal or just download the package and install. Rudix packages are precompiled with dependencies included. Rudix ImageMagick packages are available for OS's from Snow Leopard to Sierra. If you are on High Sierra you can try installing the Sierra package, although I haven't tested if it will install or function. I'm still using Yosemite and unable to confirm one way or the other. Other options for ImageMagick install for High Sierra are MacPorts, Homebrew, the binary release available on the ImageMagick website, or building from source. if using the other options be prepared for any greater complexity or troubleshooting. Rudix packages use a version of ImageMagick 6. The latest version is ImageMagick 7. ImageMagick maintains a legacy website for ImageMagick 6. The examples below were created with ImageMagick 6 installed using a Rudix package.


2. Install FastScripts.


This allows you to run scripts from the menu bar and from a keyboard shortcut. Although FastScripts is free to use for a limited number of keyboard shortcuts, If you prefer not to install another piece of software you can create an Automator service instead. Besides its convenience, I find FastScripts reliable.


3. Create the AppleScript.


In Script Editor create the following AppleScript, compile, and save to your ~/Library/Scripts/ folder using a filename of your choice:


set filePath to POSIX path of (path to desktop)

set currentDate to (do shell script "date +'Screen Shot %Y-%m-%d at %H.%M.%S'")

set tmpFile to "/tmp/sourcefile.png"

set outputFile to quoted form of (filePath & currentDate & ".png")

try

do shell script "screencapture -i -s " & tmpFile

on error

return

end try

try

do shell script "/usr/local/bin/convert " & tmpFile & ¬

" \\( +clone -background Black -shadow 50x25+0+20 \\) +swap -background none -layers merge +repage " & outputFile

on error

display dialog "An error occured. Review your script and try again." buttons {"OK"} default button "OK"

end try


4. Create a keyboard shortcut.


If you installed FastScripts click on its menulet in the menu bar, hold down the Command key (⌘) while highlighting the script name and click. A preferences window will open where you can enter a unique keyboard shortcut. Following the sequence of keyboard shortcuts for screen capture you might try Shift-Command-5 (⇧⌘5). If you created an Automator service instead you can set the keyboard shortcut in System Preferences.


5. Run the script.


Use the keyboard shortcut you created to run the script. A crosshair cursor will appear. Click-drag the area to capture and release. Hit the Escape key any time before release to cancel. A PNG file will appear on your Desktop.


Examples:


Selected portion of the screen with drop-shadow:

User uploaded file

Besides black ("-background Black -shadow"), you can use any color for the shadow as in Red here:

User uploaded file

Using ImageMagick you can manipulate your screenshots in other ways, such as a torn paper edge effect:


User uploaded file


Or a "Polaroid" effect with a push pin layered on top:

User uploaded file

Photo spread:

User uploaded file

And so on...


Tested with OS X Yosemite 10.10.5 & ImageMagick 6.8.6 only.

5 replies
Question marked as Top-ranking reply

Mar 3, 2018 11:32 PM in response to Community User

One option for taking a screenshot of a selected portion of your screen with drop-shadow:


1. Install ImageMagick.


The simplest way is to use Rudix. Either install the package manager first and then the package from Terminal or just download the package and install. Rudix packages are precompiled with dependencies included. Rudix ImageMagick packages are available for OS's from Snow Leopard to Sierra. If you are on High Sierra you can try installing the Sierra package, although I haven't tested if it will install or function. I'm still using Yosemite and unable to confirm one way or the other. Other options for ImageMagick install for High Sierra are MacPorts, Homebrew, the binary release available on the ImageMagick website, or building from source. if using the other options be prepared for any greater complexity or troubleshooting. Rudix packages use a version of ImageMagick 6. The latest version is ImageMagick 7. ImageMagick maintains a legacy website for ImageMagick 6. The examples below were created with ImageMagick 6 installed using a Rudix package.


2. Install FastScripts.


This allows you to run scripts from the menu bar and from a keyboard shortcut. Although FastScripts is free to use for a limited number of keyboard shortcuts, If you prefer not to install another piece of software you can create an Automator service instead. Besides its convenience, I find FastScripts reliable.


3. Create the AppleScript.


In Script Editor create the following AppleScript, compile, and save to your ~/Library/Scripts/ folder using a filename of your choice:


set filePath to POSIX path of (path to desktop)

set currentDate to (do shell script "date +'Screen Shot %Y-%m-%d at %H.%M.%S'")

set tmpFile to "/tmp/sourcefile.png"

set outputFile to quoted form of (filePath & currentDate & ".png")

try

do shell script "screencapture -i -s " & tmpFile

on error

return

end try

try

do shell script "/usr/local/bin/convert " & tmpFile & ¬

" \\( +clone -background Black -shadow 50x25+0+20 \\) +swap -background none -layers merge +repage " & outputFile

on error

display dialog "An error occured. Review your script and try again." buttons {"OK"} default button "OK"

end try


4. Create a keyboard shortcut.


If you installed FastScripts click on its menulet in the menu bar, hold down the Command key (⌘) while highlighting the script name and click. A preferences window will open where you can enter a unique keyboard shortcut. Following the sequence of keyboard shortcuts for screen capture you might try Shift-Command-5 (⇧⌘5). If you created an Automator service instead you can set the keyboard shortcut in System Preferences.


5. Run the script.


Use the keyboard shortcut you created to run the script. A crosshair cursor will appear. Click-drag the area to capture and release. Hit the Escape key any time before release to cancel. A PNG file will appear on your Desktop.


Examples:


Selected portion of the screen with drop-shadow:

User uploaded file

Besides black ("-background Black -shadow"), you can use any color for the shadow as in Red here:

User uploaded file

Using ImageMagick you can manipulate your screenshots in other ways, such as a torn paper edge effect:


User uploaded file


Or a "Polaroid" effect with a push pin layered on top:

User uploaded file

Photo spread:

User uploaded file

And so on...


Tested with OS X Yosemite 10.10.5 & ImageMagick 6.8.6 only.

Enable drop-shadow on screenshots

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