Created
June 24, 2014 00:53
-
-
Save scruss/786bf6ad979fc4aaa532 to your computer and use it in GitHub Desktop.
selfie simulator simulator ...
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
#!/bin/bash | |
# strongly influenced by Interstellar Selfie Simulator | |
# scruss - 2014-06-23 | |
anytopnm "$1" |\ | |
pnmscale -xsize 160 |\ | |
pnmhisteq |\ | |
ppmdither -red 4 -green 4 -blue 4 |\ | |
ppmtopgm |\ | |
pnmremap -mapfile <(echo P3 4 1 255 108 108 78 142 139 97 195 196 165 227 230 201) |\ | |
pnmscale -nomix 2 |\ | |
pnmtopng > "${1%.*}-selfie.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment