Skip to content

Commit f3d57e6

Browse files
Apply suggestions from code review
Co-authored-by: Emelia Smith <ThisIsMissEm@users.noreply.github.com>
1 parent 4211afb commit f3d57e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/v1/media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function postMedia(c: Context<{ Variables: Variables }>) {
3131
}
3232

3333
const image = sharp(imageBytes).rotate();
34-
const rmMetaImage = await image.toBuffer();
34+
const rmMetaImage = await image.keepIccProfile().toBuffer();
3535
const fileMetadata = await sharp(rmMetaImage).metadata();
3636
const content = file.type.startsWith("video/") ? new Uint8Array(imageData) : new Uint8Array(rmMetaImage);
3737

0 commit comments

Comments
 (0)