Last active
August 9, 2020 06:45
-
-
Save ljcooke/a6145fdbe72e817d0abbe364735da5cf to your computer and use it in GitHub Desktop.
Drawing an icon with PostScript.
This file contains 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 characters
%!PS-Adobe-3.0 EPSF-3.0 | |
%%Pages: 1 | |
%%BoundingBox: 0 0 720 720 | |
%%EndComments | |
/inch { 72 mul } def | |
5 inch 5 inch translate | |
newpath | |
0 0 4 inch 0 360 arc | |
fill | |
showpage |
This file contains 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 characters
avatar-500.png: avatar.png | |
convert avatar.png -unsharp 0x5 -resize 500 avatar-500.png | |
avatar.png: avatar.pdf | |
inkscape -b white -d 100 -o avatar.png avatar.pdf | |
mogrify -flatten -background white avatar.png | |
avatar.pdf: avatar.ps | |
ps2pdf -dEPSCrop avatar.ps | |
clean: | |
rm *.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment