Try building
This commit is contained in:
@@ -6,13 +6,15 @@ from inky.auto import auto
|
||||
|
||||
display = auto(verbose = True)
|
||||
|
||||
# config = imgkit.config(wkhtmltoimage='C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltoimage.exe')
|
||||
config = imgkit.config(wkhtmltoimage='C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltoimage.exe')
|
||||
|
||||
print("Generating html...")
|
||||
|
||||
|
||||
print("Converting to image...")
|
||||
imgkit.from_file('./test.html', 'out.png', options={
|
||||
imgkit.from_file('./test.html', 'out.png',
|
||||
config=config,
|
||||
options={
|
||||
'format': 'png',
|
||||
'crop-h': '300',
|
||||
'crop-w': '400'
|
||||
|
||||
Reference in New Issue
Block a user