pdfkit 0.19.0 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/pdfkit.js CHANGED
@@ -3839,7 +3839,7 @@ class JPEG {
3839
3839
  pos += 2;
3840
3840
  this.width = this.data.readUInt16BE(pos);
3841
3841
  pos += 2;
3842
- const channels = this.data[pos + 1];
3842
+ const channels = this.data[pos];
3843
3843
  this.colorSpace = COLOR_SPACE_MAP[channels];
3844
3844
  this.obj = null;
3845
3845
  }