Mercurial > rinkhals
comparison regenerate_pngs.py @ 455:fef4b1686d6c
remove unued import
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 22 Nov 2009 17:56:41 +0000 |
parents | db7bb20d2336 |
children | 41864335aeee |
comparison
equal
deleted
inserted
replaced
454:30e6d6097b12 | 455:fef4b1686d6c |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 import cairo | 3 import cairo |
4 import rsvg | 4 import rsvg |
5 import os | 5 import os |
6 from Image import open | |
7 | 6 |
8 def svg_to_png(svg_name, png_name, w, h): | 7 def svg_to_png(svg_name, png_name, w, h): |
9 """Convert an SVG file to a PNG file.""" | 8 """Convert an SVG file to a PNG file.""" |
10 print "Generating %s at %dx%d..." % (png_name, w, h) | 9 print "Generating %s at %dx%d..." % (png_name, w, h) |
11 r = rsvg.Handle(svg_name) | 10 r = rsvg.Handle(svg_name) |