From 59902c132275d422f12e60e7c83d80efe772f207 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 21 Apr 2016 17:25:57 +0200 Subject: [PATCH] Make cropping optional --- TimeSeries.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TimeSeries.pm b/TimeSeries.pm index 691b6c1..d2a8070 100644 --- a/TimeSeries.pm +++ b/TimeSeries.pm @@ -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") {