fix: tighten native image injection (#1098)

Thanks @tyler6204.

Co-authored-by: Tyler Yust <tyler6204@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-01-18 08:06:50 +00:00
parent ddcc05f5f4
commit 8b57f519c3
7 changed files with 81 additions and 119 deletions

View File

@@ -59,7 +59,6 @@ function readJpegExifOrientation(buffer: Buffer): number | null {
// APP1 marker (EXIF)
if (marker === 0xe1) {
const segmentLength = buffer.readUInt16BE(offset + 2);
const exifStart = offset + 4;
// Check for "Exif\0\0" header