@jaak.ai/stamps 2.1.0-dev.12 → 2.1.0-dev.13

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.
@@ -2316,8 +2316,8 @@ const JaakStamps = class {
2316
2316
  if (captureState.step === 'front') {
2317
2317
  this.stateManager.setCapturedImages({
2318
2318
  front: {
2319
- fullFrame: captureCanvas.toDataURL('image/png'),
2320
- cropped: croppedCanvas.toDataURL('image/png')
2319
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
2320
+ cropped: croppedCanvas.toDataURL('image/jpeg')
2321
2321
  }
2322
2322
  });
2323
2323
  // Check if document classification is enabled (independent of detector)
@@ -2357,8 +2357,8 @@ const JaakStamps = class {
2357
2357
  else if (captureState.step === 'back') {
2358
2358
  this.stateManager.setCapturedImages({
2359
2359
  back: {
2360
- fullFrame: captureCanvas.toDataURL('image/png'),
2361
- cropped: croppedCanvas.toDataURL('image/png')
2360
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
2361
+ cropped: croppedCanvas.toDataURL('image/jpeg')
2362
2362
  }
2363
2363
  });
2364
2364
  this.completeProcess(false);
@@ -2396,8 +2396,8 @@ const JaakStamps = class {
2396
2396
  if (captureState.step === 'front') {
2397
2397
  this.stateManager.setCapturedImages({
2398
2398
  front: {
2399
- fullFrame: captureCanvas.toDataURL('image/png'),
2400
- cropped: croppedCanvas.toDataURL('image/png')
2399
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
2400
+ cropped: croppedCanvas.toDataURL('image/jpeg')
2401
2401
  }
2402
2402
  });
2403
2403
  // Check if document classification is enabled
@@ -2429,8 +2429,8 @@ const JaakStamps = class {
2429
2429
  else if (captureState.step === 'back') {
2430
2430
  this.stateManager.setCapturedImages({
2431
2431
  back: {
2432
- fullFrame: captureCanvas.toDataURL('image/png'),
2433
- cropped: croppedCanvas.toDataURL('image/png')
2432
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
2433
+ cropped: croppedCanvas.toDataURL('image/jpeg')
2434
2434
  }
2435
2435
  });
2436
2436
  this.completeProcess(false);