odelia Posted February 4, 2016 Share Posted February 4, 2016 I'm uploading an Image with JS. When I send that data to the phaser code I sometimes don't see it. It does receive the data but don't show it... function(BitmapData) { var data = new Image(); data.src = BitmapData; this.game.cache.addImage("image-data", BitmapData, data); this.userPic = this.game.add.sprite(10, 10, 'image-data'); console.log("loadUploadedImg",BitmapData,this.userPic); } Even when I try to load the same image, so it's not the image it self... Does anyone know what I'm doing wrong?... Thank you Link to comment Share on other sites More sharing options...
mattstyles Posted February 4, 2016 Share Posted February 4, 2016 What does BitmapData look like? If its a URL then you'd have to wait for it to load before using it by adding a load event listener to your newly created image object. Link to comment Share on other sites More sharing options...
drhayes Posted February 4, 2016 Share Posted February 4, 2016 When you do that (make an Image with its constructor and set its src property) you have to wait for it to load before doing anything with it. Stick an "onload" handler on that Image instance with code that adds it to the cache, you should be good. data.onload = function() { ... } Link to comment Share on other sites More sharing options...
odelia Posted February 7, 2016 Author Share Posted February 7, 2016 On 2/4/2016 at 5:34 PM, mattstyles said: What does BitmapData look like? If its a URL then you'd have to wait for it to load before using it by adding a load event listener to your newly created image object. my bitmap looks like a string (data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eH....) I upload it with Javascript... On 2/4/2016 at 10:40 PM, drhayes said: When you do that (make an Image with its constructor and set its src property) you have to wait for it to load before doing anything with it. Stick an "onload" handler on that Image instance with code that adds it to the cache, you should be good. data.onload = function() { ... } how can I pass the scope in the function? Link to comment Share on other sites More sharing options...
odelia Posted February 7, 2016 Author Share Posted February 7, 2016 I've changed the code, now I don't get any image... loadUploadedImg: function(BitmapData){ var data = new Image(); data.src = BitmapData; this.game.cache.addImage("userImage", BitmapData, data); data.onload = function() { var src = parent.GameState.loadImgFromCache(this); } data.onerror = function() { console.log(this); } }, loadImgFromCache: function(BitmapData){ console.log(this.game.cache.getImage("userImage").width,this.game.cache.getImage("userImage").height); this.userPic = this.game.add.sprite(0, 0, "userImage"); this.userPic.anchor.set(0.5); console.log("loadImgFromCache",BitmapData,this.userPic); } I do get the width and height of the cached image... Link to comment Share on other sites More sharing options...
mattstyles Posted February 7, 2016 Share Posted February 7, 2016 I'm not a Phaser user so I'm not sure on the internals, but what happens if you add the image to the cache inside the onLoad handler? (I'm just thinking that I've seen that pattern mentioned before), although it does sound odd that you got it before but not now. Just as a test you could use a timeout (set to, say, 1 second or 2) rather the onLoad handler just to make sure it is loaded, obviously you'd never do this, but to test stuff its fine. It's slightly odd to pass `this` into a function, technically its ok but its a strange pattern to use, particularly as you then mutate it by adding `userPic`, try looking up .bind to handle scope (JS scope handling can get a little hairy so do some research, too little information—i.e. the sort of stuff you'd get in a paragraph or 2—is dangerous). You can also append event listeners to the image and then just pass it a function which saves you a hop you dont need in the example above and is a cleaner pattern. Link to comment Share on other sites More sharing options...
odelia Posted February 8, 2016 Author Share Posted February 8, 2016 I can't load the image on the onLoad handler because a user upload an image from his device. Now I always get the image data but can't show the image... What I get: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQECWAJYAAD/4QBKRXhpZgAASUkqAAgAAAADABoBBQABAAAAMgAAABsBBQABAAAAOgAAACgBAwABAAAAAgBhAAAAAAAARsMjQEIPAABGwyNAQg8A/9sAQwAFAwQEBAMFBAQEBQUFBgcMCAcHBwcPCwsJDBEPEhIRDxERExYcFxMUGhURERghGBodHR8fHxMXIiQiHiQcHh8e/9sAQwEFBQUHBgcOCAgOHhQRFB4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e/8AAEQgA6gFUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNR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eX0qOVFXwypVVBELEED0LYoAdseHEboEIAwAHOeB1wevb8KK1IwGBLAEliST9aKAP/9k= Link to comment Share on other sites More sharing options...
odelia Posted February 8, 2016 Author Share Posted February 8, 2016 Also, when I try to add the image-data without uploading - i see it only when i refresh without clearing the cache. when I do clean the cache i don't see it... preload: function() { var dataURI = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQECWAJYAAD/4QBKRXhpZgAASUkqAAgAAAADABoBBQABAAAAMgAAABsBBQABAAAAOgAAACgBAwABAAAAAgBhAAAAAAAARsMjQEIPAABGwyNAQg...'; var data = new Image(); data.src = dataURI; this.game.cache.addImage('image-data', dataURI, data); }, create: function() { this.game.add.sprite(0, 400, 'image-data'); } Link to comment Share on other sites More sharing options...
mattstyles Posted February 8, 2016 Share Posted February 8, 2016 I mean, you just tell Phaser about the image after it has loaded. It just sounds like you add the image to the cache too early, which means you add it when it is not an image (how exactly this works is up to Phaser, but Pixi does the same thing so it probably defers to the Pixi sprite). When you run the code the first time, the browser stuffs the image into cache, so, the next time you run without a cache clear it is instantaneous, so you see your image. When you clear the cache it takes a bit of time so you dont see it. Literally just move `game.cache.addImage` into the onload handler and it looks like it will work (based on what you've said). It doesnt matter if the user has uploaded the image or not, the steps are the same, load the image first then stuff it into Phaser. I did check the Phaser docs (never done it myself as I have my own asset loader), http://phaser.io/docs/2.4.4/Phaser.Cache.html#addImage and they agree with the sentence above. Quote The file must have already been loaded, typically via Phaser.Loader, but can also have been loaded into the DOM Load, then stuff into Phaser. Currently I think you are simply adding the image too early. Link to comment Share on other sites More sharing options...
odelia Posted February 8, 2016 Author Share Posted February 8, 2016 Thank you mattstyles! it worked! I first load the image in the HTML and then I pass it to the phaser... mattstyles 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted February 17, 2016 Share Posted February 17, 2016 See my example... you can load the image when you want (without use the preload function) { ... var loader = new Phaser.Loader(this.game); loader.image('myImage', 'base64...'); loader.onLoadComplete.addOnce(this.loadImageComplete, this); loader.start(); }, loadImageComplete: function(){ this.game.add.sprite(x, y, 'myImage'); } Regards, Nicholls odelia 1 Link to comment Share on other sites More sharing options...
Recommended Posts