@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.
@@ -1191,8 +1191,8 @@ export class JaakStamps {
1191
1191
  if (captureState.step === 'front') {
1192
1192
  this.stateManager.setCapturedImages({
1193
1193
  front: {
1194
- fullFrame: captureCanvas.toDataURL('image/png'),
1195
- cropped: croppedCanvas.toDataURL('image/png')
1194
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
1195
+ cropped: croppedCanvas.toDataURL('image/jpeg')
1196
1196
  }
1197
1197
  });
1198
1198
  // Check if document classification is enabled (independent of detector)
@@ -1232,8 +1232,8 @@ export class JaakStamps {
1232
1232
  else if (captureState.step === 'back') {
1233
1233
  this.stateManager.setCapturedImages({
1234
1234
  back: {
1235
- fullFrame: captureCanvas.toDataURL('image/png'),
1236
- cropped: croppedCanvas.toDataURL('image/png')
1235
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
1236
+ cropped: croppedCanvas.toDataURL('image/jpeg')
1237
1237
  }
1238
1238
  });
1239
1239
  this.completeProcess(false);
@@ -1271,8 +1271,8 @@ export class JaakStamps {
1271
1271
  if (captureState.step === 'front') {
1272
1272
  this.stateManager.setCapturedImages({
1273
1273
  front: {
1274
- fullFrame: captureCanvas.toDataURL('image/png'),
1275
- cropped: croppedCanvas.toDataURL('image/png')
1274
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
1275
+ cropped: croppedCanvas.toDataURL('image/jpeg')
1276
1276
  }
1277
1277
  });
1278
1278
  // Check if document classification is enabled
@@ -1304,8 +1304,8 @@ export class JaakStamps {
1304
1304
  else if (captureState.step === 'back') {
1305
1305
  this.stateManager.setCapturedImages({
1306
1306
  back: {
1307
- fullFrame: captureCanvas.toDataURL('image/png'),
1308
- cropped: croppedCanvas.toDataURL('image/png')
1307
+ fullFrame: captureCanvas.toDataURL('image/jpeg'),
1308
+ cropped: croppedCanvas.toDataURL('image/jpeg')
1309
1309
  }
1310
1310
  });
1311
1311
  this.completeProcess(false);