question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crash on createResizedImage

See original GitHub issue

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 ?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
taboulotcommented, Oct 25, 2022

@AlaaElden98

Fix published in 3.0.4. I close the issue. Tell me if you still have the problem.

0reactions
taboulotcommented, Oct 25, 2022

Hey,

Thank you for reporting the issue, I have located theproblem. A new release is coming today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash due to out of memory error which trying to compress ...
Since it is crashing my app, I am not able to use it in our production app. ... createResizedImage(ImageResizer.java:283) at ...
Read more >
App crashes on device and there ar… | Apple Developer Forums
I'm building an app with React Native. When I run the app through 'react-native run-ios' everything is fine, but when I try to...
Read more >
React native app crashing after enabling R8 / minifyEnabled
gradle . The build is successful but the app crashes on the run-time. Here's the code: enter image description here.
Read more >
Top 5 react-native-image-resizer Code Examples - Snyk
Learn more about how to use react-native-image-resizer, based on react-native-image-resizer code examples created from the most popular ways it is used in ...
Read more >
Bamlab React-Native-Image-Resizer Statistics & Issues
Issue Title State Comments Created Date Updated D... Not possible to resize an image into a square open 0 2022‑11‑03 2022‑11‑18 on Android open 0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found