- handle a slightly different warning from libtiff 4.x
https://rt.cpan.org/Ticket/Display.html?id=65268
+ - the sat transform2() op returned an incorrect saturation.
+ https://rt.cpan.org/Ticket/Display.html?id=65391
+
Imager 0.80 - 17 Jan 2011
===========
return 0;
}
else {
- int temp = i_min(i_max(color.rgb.r, color.rgb.g), color.rgb.b);
+ int temp = i_min(i_min(color.rgb.r, color.rgb.g), color.rgb.b);
return (value - temp) / (double)value;
}
}
#!perl -w
use strict;
-use Test::More tests => 37;
+use Test::More tests => 38;
BEGIN { use_ok('Imager'); }
use Imager::Test qw(is_color3);
op_test('800000', <<'EOS', 128, 0, 0, 'det');
1 0 0 1 det 128 * 1 1 1 1 det 128 * 0 rgb
EOS
+op_test('FF80C0', <<'EOS', 127, 0, 0, 'sat');
+0 0 getp1 sat 255 * 0.01 + 0 0 rgb
+EOS
use Imager::Transform;