Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/node/src/codecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ async function imageEncode(
}
case `image/png`:
case `image/jpeg`:
case `image/jpg`:
case `image/webp`:
const format = type.split('/').pop()! as Keys;
const buffer = await image
Expand Down
1 change: 1 addition & 0 deletions packages/node/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const ConfigSchema = z
.enum([
'image/png',
'image/jpeg',
'image/jpg',
'image/webp',
'image/x-rgba8',
'image/x-alpha8'
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/codecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async function imageEncode(
}
case `image/png`:
case `image/jpeg`:
case `image/jpg`:
case `image/webp`: {
const imageData = new ImageData(
new Uint8ClampedArray(imageTensor.data),
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const ConfigSchema = z
.enum([
'image/png',
'image/jpeg',
'image/jpg',
'image/webp',
'image/x-rgba8',
'image/x-alpha8'
Expand Down