img = new image["file:///home/eliasen/pictures/sally/2011/12/IMG_7184.JPG"] w=img.getWidth[] h=img.getHeight[] g = new graphics g.color[0,0,0] //g.drawRectCenter[0 in, 0 in, 6 in, 4 in] g.fitCenter[img, -1.5 in, 0 in, 2 in, 2 in, 830, 250, 2800, 2200] g.fitCenter[img, 1.5 in, 0 in, 2 in, 2 in, 830, 250, 2800, 2200] println["$w x $h"] g.show[] g.write["passportpic.html", 800, 800] browse["passportpic.html"]