bamlab / react-native-image-resizer

🗻 Resize local images with React Native
MIT License
1.61k stars 347 forks source link

iOS [__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0] #334

Closed Parkjunwu closed 2 years ago

Parkjunwu commented 2 years ago

Hello!

When I use "@bam.tech/react-native-image-resizer" this new version with code

" await ImageResizer.createResizedImage(uri, width, height, "JPEG", 90, 0, null, false, {onlyScaleDown:true}); "

then it is not worked with " iOS [__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0] " message.

When I use "react-native-image-resizer" package which is old version, it works well.

I use M1 air and React Native 0.70.1 version.

Thank you!

joshnissenbaum commented 2 years ago

Same issue. Reverted back to the old version for now

taboulot commented 2 years ago

Hey @Parkjunwu & @joshnissenbaum,

Thank you for reporting the issue. I have identified the problem. I will push a fix this morning.