Skip to content

Instantly share code, notes, and snippets.

@uzulla
Last active March 31, 2023 14:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uzulla/8e2574194d2d5d7c99df72e5e8a52e1e to your computer and use it in GitHub Desktop.
Save uzulla/8e2574194d2d5d7c99df72e5e8a52e1e to your computer and use it in GitHub Desktop.
#!/bin/sh
# `convert` command is part of ImageMagick, apt install imagemagick, brew install imagemagick or ....
convert -threshold 30000 src.png tmp.jpg
# ^~~~ bad output? ok, try change here as you like!!!
# Wow, you need negative ? ok.
# convert -negate tmp.jpg tmp2.jpg
# mv tmp2.jpg tmp.jpg
convert -fuzz 50% -fill '#1278f8' -opaque '#ffffff' tmp.jpg cakephpized.jpg
# oh? you love soudai? ok ^~~ set here #0094e0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment