fix(transcode): update WEBP_MAX_DIMENSION to 7680

This commit is contained in:
yiling
2026-06-09 11:20:41 +08:00
parent d34c978c43
commit 6fc754838b
3 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ describe('TranscodeService', () => {
expect(sharp).toHaveBeenCalledWith('input.png', { limitInputPixels: false })
const mockSharp = vi.mocked(sharp).mock.results[0].value
expect(mockSharp.resize).toHaveBeenCalledWith(480, 16383, expect.any(Object))
expect(mockSharp.resize).toHaveBeenCalledWith(480, 7680, expect.any(Object))
expect(mockSharp.webp).toHaveBeenCalledWith({ quality: 80 })
expect(mockSharp.toFile).toHaveBeenCalledWith(outputFile)
})
@@ -176,7 +176,7 @@ describe('TranscodeService', () => {
expect(sharp).toHaveBeenCalledWith(inputBuffer, { limitInputPixels: false })
const mockSharp = vi.mocked(sharp).mock.results[vi.mocked(sharp).mock.results.length - 1].value
expect(mockSharp.resize).toHaveBeenCalledWith(480, 16383, expect.any(Object))
expect(mockSharp.resize).toHaveBeenCalledWith(480, 7680, expect.any(Object))
expect(mockSharp.webp).toHaveBeenCalledWith({ quality: 80 })
expect(mockSharp.toFile).toHaveBeenCalledWith(outputFile)
})