Make cropping optional
This commit is contained in:
parent
ba6b4c824e
commit
59902c1322
|
@ -450,9 +450,10 @@ sub plot {
|
|||
if ($self->{gsresolution} != $self->{finalresolution}) {
|
||||
$pipe .= "pnmscale " . ($self->{finalresolution} / $self->{gsresolution}) . " |";
|
||||
}
|
||||
$pipe .=
|
||||
"pnmflip -cw |" .
|
||||
"pnmcrop 2> /dev/null |";
|
||||
$pipe .= "pnmflip -cw |";
|
||||
if ($self->{crop}) {
|
||||
$pipe .= "pnmcrop 2> /dev/null |";
|
||||
}
|
||||
}
|
||||
|
||||
if ($self->{output_format} eq "png") {
|
||||
|
|
Loading…
Reference in New Issue