Last active
May 19, 2020 20:24
-
-
Save s3krit/39725ba2f4ca9e6a09d01ea6863516c7 to your computer and use it in GitHub Desktop.
Little script to take images and make them look like Gameboy Camera photos
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 characters
#!/bin/bash | |
image=$1 | |
convert -resize 128x112 -filter box -quality 100 $image gbtmp-resize-$image | |
convert -modulate 100,0,100 gbtmp-resize-$image gbtmp-desat-$image | |
convert -contrast-stretch 30% gbtmp-desat-$image gbtmp-contrast-$image | |
convert -ordered-dither o8x8,4 gbtmp-contrast-$image gbtmp-dithered-$image | |
convert -scale 500% -quality 100 gbtmp-dithered-$image gb-$image.png | |
rm gbtmp-*-$image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment