chore: remove or change branded test files in thumbnail service

This commit is contained in:
Jannik Stehle
2025-01-27 15:08:19 +01:00
parent e428d56443
commit fac4ebbf0f
8 changed files with 3 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ func BenchmarkGet(b *testing.B) {
Checksum: "1872ade88f3013edeb33decd74a4f947",
}
cwd, _ := os.Getwd()
p := filepath.Join(cwd, "../../testdata/oc.png")
p := filepath.Join(cwd, "../../testdata/test.png")
f, _ := os.Open(p)
defer f.Close()
img, ext, _ := image.Decode(f)
@@ -150,8 +150,8 @@ func TestPreviewGenerationTooBigImage(t *testing.T) {
fileName string
mimeType string
}{
{name: "png", mimeType: "image/png", fileName: "../../testdata/oc.png"},
{name: "gif", mimeType: "image/gif", fileName: "../../testdata/oc.gif"},
{name: "png", mimeType: "image/png", fileName: "../../testdata/test.png"},
{name: "jpg", mimeType: "image/jpeg", fileName: "../../testdata/test.jpg"},
{name: "ggs", mimeType: "application/vnd.geogebra.slides", fileName: "../../testdata/test.ggs"},
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

File diff suppressed because one or more lines are too long

BIN
services/thumbnails/testdata/test.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
services/thumbnails/testdata/test.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB