upload canvas snapshot

Get help using Construct 2

Post » Wed Apr 10, 2013 8:21 pm

guys how can upload an server or a folder "outside C2" picture "canvas snapshot" ???
B
13
S
3
G
3
Posts: 28
Reputation: 2,798

Post » Wed May 22, 2013 10:02 pm

Do you need help yet ??
B
3
Posts: 6
Reputation: 391

Post » Fri May 24, 2013 12:35 pm

Yes.:)
B
13
S
3
G
3
Posts: 28
Reputation: 2,798

Post » Tue May 28, 2013 5:51 pm

Hello Asatur.
In fact, i don't understand your question. But if you will want save a image of game in on server.
Follow the steps.

1- UserMedia.SnapshotURL: take a picture Media Camera.
    
    If you want take image from your all game screen , will you use the "CanvasSnapshot" instead of "UserMedia.SnapshotURL"
    I'm looking for how limit this picture area.




2 - Use a PHP to save the picture in your server.

(sorry for my bad English and, some words in printScreen are in portuguese: foto : picture | nome: name | TESTE: test)

that's it!muschalski2013-05-29 14:14:50
B
3
Posts: 6
Reputation: 391

Post » Sun Jul 14, 2013 12:04 am

Thank you for this information, that is almost the same functionality i need.

The only difference is that I need to upload an already taken picture (from phone gallery) Do you know how to do this?Xam2013-07-15 13:54:17
B
8
S
2
Posts: 23
Reputation: 692

Post » Fri Nov 22, 2013 5:02 pm

I haven't tried this yet, but this is exactly what I was looking for! Xam, I don't know if you already figured it out/stopped trying, but here's what I do for a picture already taken (Note: this only works if the picture is taken with the app you are making.) When the picture is taken, I also save the URI in WebStorage. You set a local key (ex: "Picture" & PictureCounter ...or whatever string you want to create) with the value of UserMedia.SnapshotURL.

(This part is an educated guess, as I haven't done this next step)
When you later want to upload the picture, in the AJAX action, replace UserMedia.SnapshotURL with WebStorage.LocalValue("Picture" & PictureCounter) or with whatever your string is.

If you want to upload a picture taken with the phone's own camera app, I do not know how to do that yet, sorry.sgtwombatstudios2013-11-22 17:04:16
B
6
S
1
G
1
Posts: 54
Reputation: 808

Post » Tue Dec 17, 2013 10:22 am

HI

Would love to get this working ... BUT where do I set my
url for server .. http://myserver.com/mygame/upload/

and most of all how can I retrieve/get the uploaded image as sprite in C2

Also how can I crop the captured image to 200x200 pixel

.........................................

The scenario :-)

Got a online top 10 Highscore (php,mysql)
and like to give player possibility to have a photo beside it


So if I make a C2 layout where player can place Name
and upload photo and somehow store these together


Idears welcome
B
23
S
12
G
10
Posts: 323
Reputation: 7,382

Post » Wed Jan 08, 2014 9:58 am

use php to corp or resize your picture
B
9
S
2
Posts: 108
Reputation: 1,010

Post » Tue Jun 10, 2014 9:23 pm

can this method with php work for geting files from the ftp to the hdd??
B
32
S
9
G
6
Posts: 1,471
Reputation: 7,959

Post » Sun Jun 29, 2014 2:29 am

HI
all this is almost same thing i am looking for too

all i need is i want to save my game screenshoot on gallery or in user media storage ( like : memory card )
hear is forum post i ask for help you guys can replay there

viewtopic.php?t=109174

thanks
B
8
S
2
Posts: 41
Reputation: 677

Next

Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, farfetchd83, mjj1990 and 5 guests