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