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

use Perl Log In

Log In

[ Create a new account ]

Abigail (26)

Abigail
  (email not shown publicly)
+ -

  Comment: Re: (Score 1) on 2009.09.30 17:39

by Abigail on 2009.09.30 17:39 (#70724)
Attached to: ImageMagick / convert / --no-globbing!
Or even:

convert -background "#ffffff" -fill "#000000" -font Helvetica -pointsize 14 -size 400x caption:\"*\" your-file.png

Read More 7 comments
Comments: 7
+ -

  Comment: Re: (Score 1) on 2009.09.30 17:37

by Abigail on 2009.09.30 17:37 (#70723)
Attached to: ImageMagick / convert / --no-globbing!
Duh. Much simpler:

convert -background "#ffffff" -fill "#000000" -font Helvetica -pointsize 14 -size 400x caption:"'*'" your-file.png

The shell eats the double quotes, and convert gets the single quotes.

Read More 7 comments
Comments: 7
+ -

  Comment: Re: (Score 1) on 2009.09.30 17:34

by Abigail on 2009.09.30 17:34 (#70722)
Attached to: ImageMagick / convert / --no-globbing!
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 '*'.

Read More 7 comments
Comments: 7