1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Merge pull request #5625 from BookStackApp/avif_images

AVIF image support
This commit is contained in:
Dan Brown
2025-05-23 17:30:24 +01:00
committed by GitHub
5 changed files with 60 additions and 11 deletions

View File

@@ -68,7 +68,20 @@ class ImageTest extends TestCase
$this->files->deleteAtRelativePath($imgDetails['path']);
$this->assertStringContainsString('thumbs-', $imgDetails['response']->thumbs->gallery);
$this->assertStringNotContainsString('thumbs-', $imgDetails['response']->thumbs->display);
$this->assertStringNotContainsString('scaled-', $imgDetails['response']->thumbs->display);
}
public function test_image_display_thumbnail_generation_for_animated_avif_images_uses_original_file()
{
$page = $this->entities->page();
$admin = $this->users->admin();
$this->actingAs($admin);
$imgDetails = $this->files->uploadGalleryImageToPage($this, $page, 'animated.avif');
$this->files->deleteAtRelativePath($imgDetails['path']);
$this->assertStringContainsString('thumbs-', $imgDetails['response']->thumbs->gallery);
$this->assertStringNotContainsString('scaled-', $imgDetails['response']->thumbs->display);
}
public function test_image_edit()

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB