How do I resolve FileChooser load into sprite?

0 favourites
  • 1 posts
From the Asset Store
Knights Resolve
$6.65 USD
5% off
An Action RPG Platformer. Strengthen your HP, Mana, Stamina, and energy as you level your player up.
  • I have an app where the user clicks a button then the FileChooser opens. The user selects a file. This all works. But then when the file tries to load into the sprite but the load fails.

    The file types accepted: image/*

    Can only select a single file.

    Original JPG

    Image dimensions 3373x5059, resize to image size. Will not load.

    Image dimensions 3373x5059, keep to image size. Sprite at 4000x4000. Will not load.

    Image dimensions 3373x5059, keep to image size. Sprite at 375x375. Will not load.

    Cropped JPG

    Image dimensions 3344x2677, resize to image size. It loads.

    Image dimensions 3344x2677, keep to image size. Sprite at 4000x4000. It loads.

    Image dimensions 3344x2677, keep to image size. Sprite at 375x375. It loads.

    Obviously resizing helped. The problem is pictures taken from my phone do not load in mobile app.

    Likely it is a dimension issue. Although it could be a files size issue or the length of the name or length/size of data is too long or

    Things I have tried:

    - Set the buffer length. Not sure if this would help?

    - Changed the Max spritesheet size (in project properties) to 4096. This is still not big enough.

    Does anyone have suggestions?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)