I am trying to convert a webpage to image on load.
1) fetching data from MySQL database
2) Populating it on a webpage with bootstrap
3) want to show the entire page as one image on the screen.
I tried
header('Content-Type: image/jpg');
but it says some error in the image. When I remove the header it shows no error.
I am sure something is missing here. I googled and SOed it but solutions are not working for me. Please help.