+ $im->Resize( width => $w, height => $h, filter => 13, blur => 0.9 );
+
+ my $c = 1; # $h / 10;
+ my %info = (
+ font => 'Sans', pointsize => $h / 10,
+ #text => "$factor = $w*$h",
+ text => " $nr ",
+ y => $c,
+ x => $c,
+ );
+
+ if (0) {
+
+ #warn "# info ", dump %info;
+ #warn dump $im->QueryFontMetrics( %info );
+ my ($x_ppem, $y_ppem, $ascender, $descender, $width, $height, $max_advance) = $im->QueryFontMetrics( %info );
+ my $background = Graphics::Magick->new( size => $width . 'x' . $height );
+ $background->ReadImage( 'xc:black' );
+ $im->Composite( image => $background, compose => 'Over', x => $c, y => $c, opacity => 75 );
+ $info{y} += $ascender;
+ $im->Annotate( fill => 'yellow', %info );
+
+ } # Annotate
+
+ $im->Write( filename => $file );