Skip to content

Commit

Permalink
Include alternative Jpeg 2000 magic byte signature
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 28, 2024
1 parent 5a656d3 commit ea6668a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function assertMediaTypeJpeg2000(string|EncodedImage $input): void
$sample = strtoupper(substr(bin2hex((string) $input), 0, 1024));

$this->assertTrue(
preg_match("/^0000000C6A5020200D0A870A/", $sample) === 1,
preg_match("/^0000000C6A5020200D0A870A|FF4FFF51/", $sample) === 1,
'Detected MIME type does not belong to the Jpeg 2000 format (' . substr($sample, 0, 24) . ').'
);
}
Expand Down

0 comments on commit ea6668a

Please sign in to comment.