summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon duSaint2023-11-03 12:48:51 -0700
committerJon duSaint2023-11-03 12:48:51 -0700
commitec178cfc587485ce365c20c9643b746e276703a2 (patch)
tree126a8cf29028d28c5dbbe4ad6da26ce93f1be638
parentb56ee743bcd708ca560ebc205b1c3308b5eab6d6 (diff)

Reolink.pm: Images should be TrueColor

-rw-r--r--reolink/Reolink.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/reolink/Reolink.pm b/reolink/Reolink.pm
index 56b78c5..036c850 100644
--- a/reolink/Reolink.pm
+++ b/reolink/Reolink.pm
@@ -547,7 +547,11 @@ sub Snap {
if ($this->{image_quality_workaround}) {
my $image = Image::Magick->new ();
$image->BlobToImage ($resp->decoded_content);
- $image->Set (quality => 99);
+ $image->Set (quality => 66);
+ if ($image->Get ('type') ne 'TrueColor') {
+ print "Switching type from " . $image->Get ('type') . " to TrueColor\n";
+ $image->Set (type => 'TrueColor');
+ }
$image->Write (filename => $filename);
} else {
my $fh;