Repository navigation
Replies: 7 comments 3 replies
|
Not sure about the exact size when it starts playing up, but it appears to work with a file size of 200kb but not with a file size of 480. So somewhere between 200kb and 480kb. I have use cases with 5mb+ file sizes (which has not been a problem in the past). Thank you! |
|
Hey, it must be something to do with my setup. I will have a look and get back to you. Thank you. |
|
Hi @JimmyDaddy , I've done some digging and it definitely has something to do with my own setup not being compatible. |
|
Hi @JimmyDaddy . I have installed the expo-example project locally and it seems to work as expected. Will investigate more on the week-end. Thanks again. |
|
Hi @JimmyDaddy . I have done some more digging. The background image gets scaled down to fit within 2154 pixels (although seems dependent on screen resolution) when the maximum of width/height goes beyond a trigger point (I'm not sure exactly where that is, around 3000 pixels it appears). In my case, what's causing the error above is that I try to manipulate the returned image using the original dimensions. Is the scaling expected behavior or a bug? Thanks for your help. |
Uh oh!
There was an error while loading. Please reload this page.
I'm not sure if this is a bug or a config issue,
Only happens with large images using react-native-image-marker v1.2.5 on android with expo sdk 50 (react-native v73) , but works fine on react-native-image-marker 1.1.1 on expo sdk 49. In earlier versions you could set the maxSize option to work around similar errors but versions below 1.2 of react-native-image-marker cause failed builds, so not an option for me.
Any ideas?
Thanks!
Your app just crashed. See the error below.
com.bumptech.glide.load.engine.CallbackException: Unexpected exception thrown by non-Glide code
com.bumptech.glide.load.engine.EngineJob.callCallbackOnResourceReady(EngineJob.java:161)
com.bumptech.glide.load.engine.EngineJob$CallResourceReady.run(EngineJob.java:428)
android.os.Handler.handleCallback(Handler.java:958)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loopOnce(Looper.java:230)
android.os.Looper.loop(Looper.java:319)
android.app.ActivityThread.main(ActivityThread.java:8893)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by java.lang.IllegalArgumentException: Invalid crop options have been passed. Please make sure the requested crop rectangle is inside source image.
expo.modules.imagemanipulator.actions.CropAction.run(CropAction.kt:8)
expo.modules.imagemanipulator.ImageManipulatorModule.runActions(ImageManipulatorModule.kt:44)
expo.modules.imagemanipulator.ImageManipulatorModule.access$runActions(ImageManipulatorModule.kt:19)
expo.modules.imagemanipulator.ImageManipulatorModule$definition$1$1$1.onSuccess(ImageManipulatorModule.kt:32)
expo.modules.imageloader.ImageLoaderModule$loadImageForManipulationFromURL$2.onResourceReady(ImageLoaderModule.kt:84)
expo.modules.imageloader.ImageLoaderModule$loadImageForManipulationFromURL$2.onResourceReady(ImageLoaderModule.kt:82)
com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:667)
com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:596)
com.bumptech.glide.load.engine.EngineJob.callCallbackOnResourceReady(EngineJob.java:159)
com.bumptech.glide.load.engine.EngineJob$CallResourceReady.run(EngineJob.java:428)
android.os.Handler.handleCallback(Handler.java:958)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loopOnce(Looper.java:230)
android.os.Looper.loop(Looper.java:319)
android.app.ActivityThread.main(ActivityThread.java:8893)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
All reactions