+
+{ # RT #77063 rotate with degrees => 270 gives a black border
+ # so be a little less strict about rounding up
+ # I've also:
+ # - improved calculation of the rotation matrix
+ # - added rounding to interpolation for 1/3 channel images
+ my $im = test_image;
+ $im->box(color => "#00F");
+ my $right = $im->rotate(right => 270);
+ my $deg = $im->rotate(degrees => 270, back => "#FFF");
+ is($deg->getwidth, 150, "check degrees => 270 width");
+ is($deg->getheight, 150, "check degrees => 270 height");
+ ok($deg->write(file => "testout/t64rotdeg270.ppm"), "save it");
+ # deg->write(file => "testout/t64rotright270.ppm");
+ is_image($deg, $right, "check right and degrees result the same");
+ #$deg = $deg->convert(preset => "addalpha");
+ # $right = $right->convert(preset => "addalpha");
+ # my $diff = $right->difference(other => $deg, mindist => 1);
+ # $diff->write(file => "testout/t64rotdiff.png");
+}