YanYuanFE / react-native-signature-canvas

:black_nib: React Native Signature Component based WebView Canvas for Android && IOS && expo
MIT License
425 stars 151 forks source link

trimWhitespace doesn't seem to work #185

Open BlueDevil2k6 opened 3 years ago

BlueDevil2k6 commented 3 years ago

What is the expected behavior of trimWhitespace? My expectation is that after capturing the signature, a rectangle would be formed and basically the image would be trimmed down to that. Is the expectation? Can't seem to get this to work for SVG images.

aretesoftware commented 2 years ago

trimWhitespace converts the image to image/png and doesn't seem to honor imageType='image/svg+xml'. is this intended?