I am creating an image editor type web application. I have a main div
which will contain many div
inside it.
When the user clicks on a save button, I want to save the main div
as an image in a folder.
I tried doing it using Canvas.toDataURL()
but then I found that i cant place a div(main div) inside canvas tags. I also tried imagegrabscreen()
function of php but it captured the screen before the whole page is loaded, so it was of no use.
Can anybody help me and suggest a way to implement this using php or javascript?