Skip to content

Commit ec87e3f

Browse files
committed
[css2] Now allows PNG
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401754
1 parent c13b98d commit ec87e3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

css2/bin/html2ps

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ $geturl=$package{'geturl'};
487487
$ulanch="f";
488488
$f=72/2.54;
489489
$giftopm="giftopnm" if($package{'netpbm'});
490+
$pngtopm="pngtopnm" if($package{'netpbm'});
490491
$giftopm="giftoppm" if($package{'pbmplus'});
491492

492493
for(keys %option){eval "\$opt_$_='$option{$_}' if(!defined \$opt_$_)"};
@@ -3628,6 +3629,8 @@ sub pictops {
36283629
} elsif($package{'pbmplus'} || $package{'netpbm'}) {
36293630
if($pic=~/^GIF/) {
36303631
&run("$giftopm $scr");
3632+
} elsif ($pic=~/^.PNG/) {
3633+
&run("$pngtopm $scr");
36313634
} else {
36323635
&run("anytopnm $scr");
36333636
}

0 commit comments

Comments
 (0)