pecos.utils.convert_html_to_image module

pecos.utils.convert_html_to_image.convert_html_to_image(html_filename, image_filename, image_format='jpg', quality=100, zoom=1)[source]

Convert html file to impage file using wkhtmltoimage See http://wkhtmltopdf.org/ for more information

Parameters:

html_filename : string

HTML filename with full path

image_filename : string

Image filename with full path

image_format : string (default = ‘jpg’)

Image format

quality : int (default = 100)

Image quality

zoom : int (default = 1)

Zoom factor