Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by Abigail (26) on 2009.09.30 17:34 (#70722) Journal
    That works until you have a file whose name ends with a space. Another way:

    (mkdir X; cd X; convert -background "#ffffff" -fill "#000000" -font Helvetica -pointsize 14 -size 400x caption:"*" ../your-file.png; cd ..; rmdir X)

    This uses the fact that in an empty directory, a globbed '*' is just a '*'.

    • Except I'd rather not have odd directories being created, especially if anything goes wrong. Plus it seems a lot more work than the "magic" space :)