fix: tighten native image injection (#1098)
Thanks @tyler6204. Co-authored-by: Tyler Yust <tyler6204@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user