b0VIM 6.2P06AD§º(Idbairdspeare5-1-14~dbaird/public_html/tmp/email/email.pyU3210#"! Utpÿ=adš¢=î§`BAÄÃW V 4 *    ü û å ¿ < .    ú é Ð ª ~ [  ï à ‹ x w 3 ) Ó É ° ‚ n > èØŽdE3–ˆut1죢second_attempt(email, 'c.png', 60, 'light/liquid_blue.jpg', 'cyber.gif')second_attempt(email, 'b.png', 100, 'light/pebbles.jpg', 'xc:black')second_attempt(email, 'a.png', 100, 'light/rings.jpg', 'xc:black') os.system(cmd) print cmd cmd = 'convert -size %sx%s xc:white -tile %s -draw "color 0,0 replace" -tile %s '%(maxsize*len(email), height, bg, fg) + ' '.join(draw) + ' %s' % output x += size draw.append(d.strip()) ''' % (size, x, baseline, rot, l) -pointsize %s -draw "translate %s,%s rotate %s text 0,0 '%s'" d = ''' rot = random.randint(-20,20) baseline = random.randint(size, maxsize) size = random.randint(minsize, maxsize) for l in email: draw = [] minsize = int(maxsize * .7) maxsize = height - 7 x = 5def second_attempt(email, output='foo.png', height=60, fg='xc:black', bg='xc:white'): whiledef placement_generator(maxsize, minsize, blos=0., mindeg, maxdeg): os.system(cmd) cmd = '''montage -mode Concatenate -tile 999x1 %s out.png''' % ' '.join(letters) i += 1 letters.append(outfile) os.system(make_letter(letter, baseline, size, 'ArialBkI', outfile)) outfile = 'tmp-%d.png' % i baseline = random.randint(size, 30) size = random.randint(15, 20) for letter in email: letters = [] i = 0def first_attempt(email): return cmd print cmd cmd = '''convert -size 20x40 gradient:yellow-green -font %s -pointsize %s -draw "text 5,%s '%s'" %s''' % (f, s, b, l, outfile)def make_letter(l, b, s, f, outfile):# -- first attempt --email = sys.argv[1]import randomimport sysimport osfrom __future__ import generators# convert -gravity west -size 400x80 xc:white -tile plasma_maze.gif -draw "color 0,0 replace" -tile cyber.gif -pointsize 60 -draw "translate 5,60 text 0,0 'abcdefg'" foo.png# convert -gravity west -size 400x80 xc:white -tile cyber.gif -pointsize 15 -draw "text 5,20 'a'" -draw "rotate 15 text 20,20 'b'" -draw "translate 50,20 rotate 45 text 0,0 'cde'" foo.png# convert -size 400x80 xc:white -tile cyber.gif -pointsize 15 -draw "text 5,20 'a'" -draw "rotate 15 text 25,20 'b'" foo.png# Turn this into a CGI script# picture, and some constraint on the crazy variations to the letters.# This program should allow you to specify a foreground and background#!/usr/bin/python