Skip to content

App Crashing on Mark Image (android) #230

@Muhammad19Omer

Description

@Muhammad19Omer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions