Skip to content

Instantly share code, notes, and snippets.

@db0company
Created August 8, 2016 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save db0company/e20b25ab0928e44429321f7283424768 to your computer and use it in GitHub Desktop.
Save db0company/e20b25ab0928e44429321f7283424768 to your computer and use it in GitHub Desktop.
#!/bin/bash
convert "$1" -flop tmp
convert "$1" tmp +append tmp
convert "$1" -flop tmp.png
convert "$1" tmp.png +append tmp.png
convert tmp.png -flip "$1"
convert tmp.png "$1" -append "$1"
rm tmp.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment