I what to render this HTML page into jpg: but wkhtmltoimage seems to only render the small part of the page.
what's wrong with my code?
My code:
import imgkit
map0 = folium.Map(location=Center,tiles='Stamen Toner',zoom_start=12)
map0.save("SVI_Map.html")
config = imgkit.config(wkhtmltoimage='C:Program Files\\wkhtmltopdf\\bin\\wkhtmltoimage.exe')
with open("SVI_Map.html") as f:
imgkit.from_file(f, 'out.jpg',config=config)
So, with IMGKIT, the default is to fit the HTML with the text. To work around that, you can create the image as the "Content" so that IMGKIT knows what to render.
Here is what I did in the HTML file