Skip to content

App crash on createResizedImage  #341

@AlaaElden98

Description

@AlaaElden98

I'm using version 3.0.3 : "@bam.tech/react-native-image-resizer": "^3.0.3"
After capture an image from camera, I'm passing the required data to createResizedImage, the app is crashing on Android -didn't test on ios- with the following error :

Code :

import ImageResizer from '@bam.tech/react-native-image-resizer';

 const result = await ImageResizer.createResizedImage(
        image.uri,
        image.width / 3.8,
        image.height / 3.8,
        'JPEG',
        100,
      );
      if (result) {
            // do stuff
       }

all passed params are valid.
Any idea what causes this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions