Skip to content

Instantly share code, notes, and snippets.

@SubOptimal
Last active September 22, 2024 14:58
Show Gist options
  • Save SubOptimal/addb65cb10b8846f3edefd4a8100a315 to your computer and use it in GitHub Desktop.
Save SubOptimal/addb65cb10b8846f3edefd4a8100a315 to your computer and use it in GitHub Desktop.
create perspective screenshot

On Twitter, Will McGuan posted a perspective screenshot.

This gist provides few basic steps, using ImageMagick, to produce some similar looking.

Following steps were processed.

  • starting with a screenshot of the Rich CLI help in a terminal

On Twitter, Will McGuan posted a perspective screenshot.

This gist provides few basic steps, using ImageMagick, to produce some similar looking.

Following steps were processed.

  • starting with a screenshot of the Rich CLI help in a terminal

image

  • create a perspective view of the screenshot

image

  • add shadow to the perspective

image

  • create a gradient for the background

image

  • combine both images

image

The script create.sh process all the mentioned steps.

note: The aim was to provide the basic steps and not a fully optimized version of the workflow. Some imagemagick steps could be combined, but were not for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment