StansAssets / com.stansassets.ultimate-mobile

Ultimate Mobile Plugin Wiki
https://api.stansassets.com/ultimate-mobile/
11 stars 2 forks source link

PickImageFromGallery image size #23

Open sa4ek opened 4 years ago

sa4ek commented 4 years ago

I am trying to upload an image a little over 10mb, but unfortunately the application crashes after such attempts. What can be done? When working with small images, there is no such problem.

stan-osipov commented 3 years ago

Hey! Are you trying to get a bug image from the library but getting a crash instead? I want to make sure that I got you right.

With the plugin API, there are 2 abilities.

  1. You can limit image resolution, exactly for the reason because you do not want 10mb texture in our game. Not all devices can even handle resolution over 4096*4096.
  2. Plugin also provides a local image path so you can still gain access to the full-size user picked image, for example, if you would like to modify it or upload somewhere without loading into Unity.

Hope that helps. But if not please share your code sample so we can look further. I will keep the issue open for some time. Thanks!