Relative Content

Tag Archive for javascriptphphtmlcanvashtml2canvas

How to save a div into the DB without canvas size limitations?

I am trying to build a tool where it is possible to create your own personal poster. The users can modify their poster with different images, colors, text, … All of it is contained in a single <div id="divToImage">. I would like to save this div into the database of the website as an image. Therefore I have already tried to use the html2canvas and dom-to-image library. These two libraries try to convert the div into a canvas which makes it possible to save or create a dataUrl of it.