Load image from URL

  • Hi!

    I have one questiom about Sprite action "Load image from URL". Is this function just loading image from URL or it's downloading picture into memory and then showing it?

    I need to know this. Let me explain why.

    In my app user will hit BROWSE button and then screen will show with small thumbnail pictures that will be loaded from the server and when it clicks on one of the thumbnails Construct will start downloading this picture and then it will load that downloaded (bigger) picture into sprite.

    There will be a lot of thumbnails, so i am afraid that my app will consume a lot of memory if " Load picture from URL" is downloading and then showing picture inside sprite.

  • Both are the same. To be able to draw the image it has to be in memory.

  • Yes, it is up to you whether you have separate thumbnails on your server for the thumbnails in your game, or if you want to just scale your large image as a thumbnail, but this will slow down the loading of your in-game "thumbnails".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, i will use some JS libraries to resize picture on the server in order to create thumbnails

  • Perhaps you could write a page that returns an image when requested? e.g. /image.aspx?id=1&size=1 where size could signify whether it should return the full image or a thumbnail. It'd require some work outside of the Construct UI, but it's a tool that can be re-used in the future for other projects as well. That way you don't need to make a thumbnail of every image yourself and when you expand you could just toss new images into the folder and the page handles all the logic for you.

  • ButcherZV Are you using Load Image and is it working? I use it in a game I am developing and until a few days ago, it was working fine. It does not seem to be working anymore.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)