1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-26 23:35:12 +02:00

Handle non-standard but still in use image/x-jpeg mimetype as JPEG (#1372)

* Handle non-standard but still in use image/x-jpeg mimetype as JPEG

* Fix test
This commit is contained in:
Philippe Lonchampt
2024-07-02 17:53:07 +02:00
committed by GitHub
parent 137bdb356a
commit 4bc03a2304
3 changed files with 7 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ final class FormatTest extends BaseTestCase
$format = Format::JPEG;
$mediaTypes = $format->mediaTypes();
$this->assertIsArray($mediaTypes);
$this->assertCount(3, $mediaTypes);
$this->assertCount(4, $mediaTypes);
}
public function testMediaTypesWebp(): void