avram: (Default)
avram ([personal profile] avram) wrote2004-08-30 11:16 pm

Drawing and perling

Exercise yesterday, drawing today, I almost feel human again.

Melorne flying

I’ve also thrown together a quick perl script to build IMG tags with HEIGHT and WIDTH attributes, so I don’t have to keep going through BBEdit. The Image::Size module does all the heavy lifting. Here, in case you need something along those lines:

#!/usr/bin/perl -w

use Image::Size;

while (<@ARGV>) {
	my $url = "http://www.yourdomainhere.com/path/$_";
	my ($width, $height) = imgsize($_);
	print "<img src='$url' alt='AltTextHere' height='$height' width='$width' />\n\n";
}


Edit the green part so it points to the server and directory where you host your images.

I ran into [livejournal.com profile] jcb coming out of Ground; he said I look like the weight’s pouring off me, and was surprised when I told him I’d been gaining the past few months. Testimony to the power of belly-tightening abdominal exercise, I guess. Or of wearing dark shirts with light pants.

Post a comment in response:

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting