David PHAM-VAN

Fix Jpeg size detection

@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 ## 1.6.2 3 ## 1.6.2
4 4
5 - Use the Barcode library to generate QR-Codes 5 - Use the Barcode library to generate QR-Codes
  6 +- Fix Jpeg size detection
6 7
7 ## 1.6.1 8 ## 1.6.1
8 9
@@ -55,7 +55,7 @@ class PdfJpegInfo { @@ -55,7 +55,7 @@ class PdfJpegInfo {
55 final int len = buffer.getUint16(offset); 55 final int len = buffer.getUint16(offset);
56 offset += 2; 56 offset += 2;
57 57
58 - if (mrkr >= 0xc0 && mrkr <= 0xcf) { 58 + if (mrkr >= 0xc0 && mrkr <= 0xc2) {
59 height = buffer.getUint16(offset + 1); 59 height = buffer.getUint16(offset + 1);
60 width = buffer.getUint16(offset + 3); 60 width = buffer.getUint16(offset + 3);
61 color = buffer.getUint8(offset + 5); 61 color = buffer.getUint8(offset + 5);