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
import os.path | |
from PIL import Image | |
# image URLs for the two images used below: | |
# http://vectorpoem.com/images/grad.gif | |
# http://vectorpoem.com/images/grad2.gif | |
def convert_image(src_img_filename): | |
# convert source image to RGB, then convert it to an arbitrary test palette | |
print('reading %s...' % src_img_filename) |
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
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 |
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 | |
# from | |
# https://gist.github.com/3178130 | |
# gist created by brodul | |
# modified for http://twitch.tv/jplebreton | |
# originaly from http://tinyurl.com/twitch-linux from taladan | |
# www.youtube.com/user/taladan |
NewerOlder