@xterm/addon-image
Advanced tools
Comparing version 0.9.0-beta.54 to 0.9.0-beta.55
@@ -28,6 +28,4 @@ "use strict"; | ||
} | ||
// JPEG: FF D8 FF E0 xx xx JFIF or FF D8 FF E1 xx xx Exif 00 00 | ||
if ((d32[0] === 0xE0FFD8FF || d32[0] === 0xE1FFD8FF) | ||
&& ((d[6] === 0x4a && d[7] === 0x46 && d[8] === 0x49 && d[9] === 0x46) | ||
|| (d[6] === 0x45 && d[7] === 0x78 && d[8] === 0x69 && d[9] === 0x66))) { | ||
// JPEG: FF D8 FF | ||
if (d[0] === 0xFF && d[1] === 0xD8 && d[2] === 0xFF) { | ||
const [width, height] = jpgSize(d); | ||
@@ -34,0 +32,0 @@ return { mime: 'image/jpeg', width, height }; |
@@ -24,2 +24,3 @@ "use strict"; | ||
['w3c_home.png', { mime: 'image/png', width: 72, height: 48 }], | ||
['w3c_home_noexif.jpg', { mime: 'image/jpeg', width: 72, height: 48 }], | ||
['spinfox.png', { mime: 'image/png', width: 148, height: 148 }], | ||
@@ -26,0 +27,0 @@ ['iphone_hdr_YES.jpg', { mime: 'image/jpeg', width: 3264, height: 2448 }], |
{ | ||
"name": "@xterm/addon-image", | ||
"version": "0.9.0-beta.54", | ||
"version": "0.9.0-beta.55", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "The xterm.js authors", |
@@ -28,2 +28,3 @@ /** | ||
['w3c_home.png', { mime: 'image/png', width: 72, height: 48 }], | ||
['w3c_home_noexif.jpg', { mime: 'image/jpeg', width: 72, height: 48 }], | ||
['spinfox.png', { mime: 'image/png', width: 148, height: 148 }], | ||
@@ -30,0 +31,0 @@ ['iphone_hdr_YES.jpg', { mime: 'image/jpeg', width: 3264, height: 2448 }], |
@@ -35,9 +35,4 @@ /** | ||
} | ||
// JPEG: FF D8 FF E0 xx xx JFIF or FF D8 FF E1 xx xx Exif 00 00 | ||
if ((d32[0] === 0xE0FFD8FF || d32[0] === 0xE1FFD8FF) | ||
&& ( | ||
(d[6] === 0x4a && d[7] === 0x46 && d[8] === 0x49 && d[9] === 0x46) | ||
|| (d[6] === 0x45 && d[7] === 0x78 && d[8] === 0x69 && d[9] === 0x66) | ||
) | ||
) { | ||
// JPEG: FF D8 FF | ||
if (d[0] === 0xFF && d[1] === 0xD8 && d[2] === 0xFF) { | ||
const [width, height] = jpgSize(d); | ||
@@ -44,0 +39,0 @@ return { mime: 'image/jpeg', width, height }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
864353
4472