Skip to content

Commit

Permalink
fix getJpegInfo to skip DHT marker
Browse files Browse the repository at this point in the history
  • Loading branch information
rnigro-rwb committed Sep 17, 2024
1 parent caf5159 commit 0d4bddd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/modules/jpeg_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ import { jsPDF } from "../jspdf.js";
"use strict";

/**
* 0xc0 (SOF) Huffman - Baseline DCT
* 0xc1 (SOF) Huffman - Extended sequential DCT
* 0xc0 (SOF0) Huffman - Baseline DCT
* 0xc1 (SOF1) Huffman - Extended sequential DCT
* 0xc2 Progressive DCT (SOF2)
* 0xc3 Spatial (sequential) lossless (SOF3)
* 0xc4 Differential sequential DCT (SOF5)
* 0xc5 Differential progressive DCT (SOF6)
* 0xc6 Differential spatial (SOF7)
* 0xc7
* 0xc4 Define Huffman Tables (DHT) - skip
* 0xc5 Differential sequential DCT (SOF5)
* 0xc6 Differential progressive DCT (SOF6)
* 0xc7 Differential spatial (SOF7)
*/
var markers = [0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7];
var markers = [0xc0, 0xc1, 0xc2, 0xc3, 0xc5, 0xc6, 0xc7];

//takes a string imgData containing the raw bytes of
//a jpeg image and returns [width, height]
Expand Down

0 comments on commit 0d4bddd

Please sign in to comment.