Last active
September 22, 2024 14:58
Revisions
-
SubOptimal revised this gist
Feb 1, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ On Twitter, [Will McGuan](https://twitter.com/willmcgugan) posted a perspective [screenshot](https://twitter.com/willmcgugan/status/1488204827540742146?s=20&t=iFSfVzJpLZwSbq5GnCGo6g). This gist provides few basic steps, using [ImageMagick](https://imagemagick.org), to produce some similar looking. -
SubOptimal revised this gist
Feb 1, 2022 . 1 changed file with 0 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,14 +6,6 @@ Following steps were processed. - starting with a screenshot of the Rich CLI help in a terminal  - create a perspective view of the screenshot -
SubOptimal revised this gist
Feb 1, 2022 . 1 changed file with 21 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ #!/bin/bash set -o errexit screenshot=rich-help-screenshot.png perspective=01-perspective.png shadow=02-shadow.png gradient=03-gradient.png final=04-final.png # create perspective view convert ${screenshot} -matte -virtual-pixel transparent -distort Perspective '0,0 0,0 987,0 987,70 987,810 987,720 0,810 0,810' ${perspective} # add shadow to the perspective view convert ${perspective} \( +clone -background black -shadow 80x10+5+10 \) +swap -background none -layers merge +repage ${shadow} # create a color gradient for the background convert -size 1027x850 -define gradient:direction=57 'gradient:rgb(54,200,150)-rgb(20,90,160)' ${gradient} # combine both images convert -page +0+0 ${gradient} -page +0+0 ${shadow} +page -alpha Set -virtual-pixel transparent -background None -flatten ${final} -
SubOptimal created this gist
Feb 1, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ On Twitter, [Will McGuan](https://twitter.com/willmcgugan) posted a perspective [screenshot](https://twitter.com/willmcgugan/status/1488209960605564938?s=20&t=x-WTN_8tvUItGeoLtZWMIA). This gist provides few basic steps, using [ImageMagick](https://imagemagick.org), 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](https://twitter.com/willmcgugan) posted a perspective [screenshot](https://twitter.com/willmcgugan/status/1488209960605564938?s=20&t=x-WTN_8tvUItGeoLtZWMIA). This gist provides few basic steps, using [ImageMagick](https://imagemagick.org), to produce some similar looking. Following steps were processed. - starting with a screenshot of the Rich CLI help in a terminal  - create a perspective view of the screenshot  - add shadow to the perspective  - create a gradient for the background  - combine both images  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.