c31f497d59
- Adds a `CropPaddingComputationMethod` enum which determines how the crop padding size is computed in `CGImage+StripeIdentity.swift` - Updates the cropping and scaling methods to throw errors directly instead throwing them from the Uploader Selfie images are cropped differently than Identity Document images – - The crop padding of documents is computed as a percentage of the max width or height of the original image size. - The crop padding of selfies is computed as a percentage of the region of interest's width |
||
---|---|---|
.. | ||
testCropContainedAndReturnError_@3x.png | ||
testCropPaddingUncontainedBottomRightAndReturnError_@3x.png | ||
testCropPaddingUncontainedTopLeftAndReturnError_@3x.png | ||
testCropROIUncontainedBottomLeftAndReturnError_@3x.png | ||
testCropROIUncontainedTopRightAndReturnError_@3x.png |