I am trying to paint an image on a canvas before I get its dataURL(), but the data returned is like empty.    When I check it in the console, I see there is a lot of A in the string : ("data:image/png;base64,iVBO..some random chars... bQhfoAAAA...
I'm working on a generative art project where I would like to allow users to save the resulting images from an algorithm. The general idea is:   Create an image on an HTML5 Canvas using a generative algorithm When the image is completed, allow...
I'm using Nihilogic's "Canvas2Image" JavaScript tool to convert canvas drawings to PNG images.  What I need now is to turn those base64 strings that this tool generates, into actual PNG files on the server, using PHP.  In short, wha...
This question already has answers here:...
My code is working very well on my localhost but it is not working on the site.  I got this error from the console, for this line .getImageData(x,y,1,1).data:  Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRendering...
Is there any way of reading the contents of a HTML Canvas as binary data?  At the moment I've got the following HTML to show an input file and the canvas below it:  <p><button id="myButton" type="button">Get Image Co...
I am a total n00b with HTML5 and am working with the canvas to render shapes, colors, and text. In my app, I have a view adapter that creates a canvas dynamically, and fills it with content. This works really nicely, except that my text is rendered...
Many libraries I have found, like Jcrop, do not actually do the cropping, it only creates an image cropping UI. It then depends on the server doing the actual cropping.  How can I make the image cropping client-side by using some HTML5 feature witho...
I want to capture a frame from video every 5 seconds.   This is my JavaScript code:  video.addEventListener('loadeddata', function() {     var duration = video.duration;     var i = 0;      var interval = setInterval(function() {         vi...
In a 3D engine I'm working on I've succesfully managed to draw a cube in 3D. The only method to fill the sides is using either a solid color or gradient as far as I'm concerned. To make things more exciting, I'd really love to imple...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.