Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
saved image in html5? - Gideros Forum

saved image in html5?

MoKaLuxMoKaLux Member
edited September 24 in Game & application design
how are you?
I have a question for you please.
I have this code:
local myrt = RenderTarget.new(self.myrealsprite:getWidth(), self.myrealsprite:getHeight())
In HTML5, the png image is indeed saved somewhere on my computer but where? (this was the question)
Edit: it is saved into RAM not file because of |T| (thanks hgy29).

Can we ask the user where to save the image in html5? (this is the new question :( )

Media plugin works fine on android and windows for this task but it doesn't support html5 :'(

My prototype: https://mokalux.itch.io/onetiletotileset?secret=8Xi3Bi3W68YdlczWEJZQ8R15Zw


  • hgy29hgy29 Maintainer
    Accepted Answer
    Actually in this case the image is saved into ram, not on disk. In html you don’t have access to the file system, except if you can trick the browser into showing its ‘save as’ dialog.

    Likes: MoKaLux

    +1 -1 (+1 / -0 ) Share on Facebook
  • thank you for the answer, in this case I will try the |D| directory see what I get.
Sign In or Register to comment.