App crash on createResizedImage
See original GitHub issueI’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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@AlaaElden98
Fix published in 3.0.4. I close the issue. Tell me if you still have the problem.
Hey,
Thank you for reporting the issue, I have located theproblem. A new release is coming today.