[Graph-dev] png options?

Daniel_Boughton@ao.uscourts.gov Daniel_Boughton at ao.uscourts.gov
Thu May 3 12:25:06 PDT 2007


I was wondering if you would consider adding options to the png terminal 
type.  I added it to my local copy (sans documentation) as follows:

361c361
<           if (!($value =~ /^(pbm|gif|tgif|svg|(eps|png)(:? .*)?)$/)) {
---
>           if (!($value =~ /^(pbm|gif|tgif|png|svg|eps(:? .*)?)$/)) {
391,392c391
<     } elsif ($output_type =~ /^png( .*)?$/) {
<       my $options = $1 || "small";
---
>     } elsif ($output_type eq "png") {
397c396
<       print $handle "set terminal png $options\n";
---
>       print $handle "set terminal png small\n";
450c449
<     } elsif (defined $output_file && $output_type =~ /^(pbm|(eps|png)(?: 
.*)?|tgif)$/) {
---
>     } elsif (defined $output_file && $output_type =~ /^(pbm|eps(?: 
.*)?|png|tgif)$/) {

The advantage is being able to set the absolute size by setting the output 
type to 'png size 1000,600' versus fiddling with ratios.

Thanks,

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rommie.caida.org/pipermail/graph-dev/attachments/20070503/2673529a/attachment.htm


More information about the Graph-dev mailing list