$this->assertEquals(static::ROTATE_TRANSPARENT,$color,"New GIF image with no transparent color set after creation has full transparent color at corner 1.");
// Save image.
$this->assertTrue($image->save($file_path),"New GIF image {$file} was saved.");
// JPEG and AVIF have small differences in color after processing.
$tolerance=match($image_original_type){
IMAGETYPE_JPEG,IMAGETYPE_AVIF=>3,
default=>1,
};
$this->assertColorsAreEqual($expected_color,$actual_color,$tolerance,"Image '$this->sourceTestImage' object after '$test_case' action has the correct color placement at corner '$key'");
}
// Check that saved image reloads without raising PHP errors.