Skip to content

Instantly share code, notes, and snippets.

@JPLeBreton
Created December 28, 2014 01:31
Show Gist options
  • Save JPLeBreton/12daa319aace463b3937 to your computer and use it in GitHub Desktop.
Save JPLeBreton/12daa319aace463b3937 to your computer and use it in GitHub Desktop.
Shell script to run Retrofilter on an image, in Linux using Wine
cp "$1" /tmp
infilewithext=`basename "$1"`
infile=`basename "$1" | cut -d\. -f1`
convert /tmp/$infilewithext -type TrueColor /tmp/$infile.tga
wine ~/wine_c/retrofilter/Retrofilter.exe /tmp/$infile.tga
convert /tmp/$infile.crt.tga $infile-crt.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment