avram: (Default)
[personal profile] avram
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.

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags