-
Notifications
You must be signed in to change notification settings - Fork 110
Description
Describe the bug
The app crashes (only on android) when the function Marker.markImage is called.
To Reproduce
Steps to reproduce the behavior:
const markedPhoto = await Marker.markImage({
saveFormat: ImageFormat.png,
backgroundImage: {
src: media.path,
scale: 1,
},
watermarkImages: [
{
src: logo,
position: {
position: Position.topLeft,
},
alpha: 0.5,
scale: 1.2
},
{
src: logo,
position: {
position: Position.bottomRight,
},
alpha: 0.5,
scale: 1.2
},
],
});
where media is the PhotoFile that is being marked.
Expected behavior
A marked image with the logo added to the top left and bottom right of the image.
Screenshots
Devlopment environment(please complete the following information):
- OS: OSX
- nodejs: v21.6.2
- react-native: 0.73.8
- react-native-image-marker : 1.2.6
Smartphone (please complete the following information):
- Device: Android Emulator
- OS: Android VanillaIceCream
Additional context
This only happens on Android, not on iOS.