[PLUGIN] c2i - canvas/base64/screenshot to image

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • any good news about the update?

    I <img src="smileys/smiley27.gif" border="0" align="middle" /> this plugin!

  • For some reason I was hoping that saving Canvas would save the whole layout :( But I guess that's impossible because it's not all rendered.

  • Joe7 : to make screenshot of a webgl canvas, you need to have

    preserveDrawingBuffer: true

    set.

    Since I suppose you need it set from the C2 engine, perhaps you can ask Ashley if he can do something like this :

    var canvas = document.getElementById("canvas");

    var gl = getWebGLContext(canvas,{preserveDrawingBuffer: true});

    to make it works.

  • Awesome plugin. Just what I needed. Do you know if there is any way to save to the camera roll when using in iOS or android?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have your plugin working well, except that when the image is saved the saved completed action is not getting called, but it is saving the image completely. Any ideas how to fix this?

  • CincyPlanet did you get it to work on an iOS device? also where do you save your image? on a remote webserver i suppose?

    EDIT:

    Joe7 do you think it would be possible to save the screenshot from an iOS device to a remote server? Basically calling the createImg.php script which is located on a webserver somewhere?

  • CincyPlanet did you get it to work on an iOS device? also where do you save your image? on a remote webserver i suppose?

    I would love to know the answer to this as well! Im hoping to add save screenshot to Inklings my face generator app

  • Sorry about the delay. Yes, I was able to get it working saving to a server. But my client decided not to use the server as he thought it would take up to much space.

    I am soon entering into a new project that will also use this plugin extensively. I well post an update soon, as I need to find some graphics.

  • I forgot to mention check my app: play.google.com/store/apps/details

    The build a santa part was done in C2

  • I copied all files from joe7_c2i archive to Construct 2\exporters\html5\plugins\joe7_c2i directory but after running screenShotSaving.capx file I have an error:

    "The project you are opening uses addons that are not installed: Behaviour 'Extract Image'".

    I can't find this behaviour anywhere on Internet. What I did wrong? Did I miss sth?

  • Joe7 hey joe you still around? ... anyhow great plugin. I'm working on getting the result sent trough email. so far it works awesome when using it from the webserver(as a web aplication) but when I publish to android(crosswalk) it just stops working ... Any ideas... something tells me I'll have to improvise and load that specific view in an iframe from the server (which is not a very pretty solution for me)

  • please help how to run in android phone using this plugin.

  • Joe7 hey joe you still around? ... anyhow great plugin. I'm working on getting the result sent trough email. so far it works awesome when using it from the webserver(as a web aplication) but when I publish to android(crosswalk) it just stops working ... Any ideas... something tells me I'll have to improvise and load that specific view in an iframe from the server (which is not a very pretty solution for me)

    same to me dude.. can anyone help us to fix this problem..

  • I'm having a little trouble implementing this into my app; wondered if anyone could lend me a hand?

    Capx is here: https://www.dropbox.com/s/lb3t6wxr7jpzye1/save_canvas.zip

    Live demo is here: http://www.angelserver.in/html5/save_canvas/

    (This is a functionality-only version by the way! It is ugly as hell.)

    First click 'use webcam', then hit the 'snap' button to capture your face in the frame.

    Then hit save canvas, which supposedly saves a screenshot between points 1 and 2 (marked on live demo).

    Then hit show image, which is supposed to load the resultant screenshot in a new tab, for saving.

    Event sheet is below:

    What currently happens upon clicking save is a new tab is opened, and a "Not Found. The requested document was not found on this server." error occurs. This would lead me to believe that something is going wrong at the saving stage, but I can't quite figure out what. Where is the .png being saved? This is something that wasn't clear to me when I followed the original example.

    Any help would be appreciated to shed some light on this. Thank you.

  • Joe7 hey Joe which is the latest version of this plugin... im checking because I'm currently using it in one of my apps and it appears not to be doing anything... im just bug hunting.

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