upload as JPEG

This commit is contained in:
Samuel Newman
2026-02-26 11:16:26 +02:00
parent 0ba7b259d7
commit fcf4da9062
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ const mockResizedImage = {
size: 100,
width: 100,
height: 100,
mime: 'image/webp',
mime: 'image/jpeg',
}
describe('downloadAndResize', () => {
@@ -63,7 +63,7 @@ describe('downloadAndResize', () => {
expect(manipulateAsync).toHaveBeenCalledWith(
expect.any(String),
[{resize: {height: opts.height, width: opts.width}}],
{format: SaveFormat.WEBP, compress: 1.0},
{format: SaveFormat.JPEG, compress: 1.0},
)
expect(deleteAsync).toHaveBeenCalledWith(expect.any(String), {
idempotent: true,