Skip to content

Instantly share code, notes, and snippets.

@s3krit
Last active May 19, 2020 20:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s3krit/39725ba2f4ca9e6a09d01ea6863516c7 to your computer and use it in GitHub Desktop.
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
#!/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