react-native-image-marker icon indicating copy to clipboard operation
react-native-image-marker copied to clipboard

App Crashing on Mark Image (android)

Open Muhammad19Omer opened this issue 8 months ago • 4 comments

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.

Muhammad19Omer avatar Jun 12 '24 15:06 Muhammad19Omer