Skip to content

OSError: wkhtmltoimage exited with non-zero code 1. error: Unknown long argument --no-background #86

@IdanRot

Description

@IdanRot

Describe the bug
python imgkit doesnt recognize no-background option.

To Reproduce in python:

import imgkit
kitoptions = {
    'no-background': ''
}
imgkit.from_file('test.html', 'out.png', options=kitoptions)

Expected behavior
etting a no-background image. instead getting an error:

OSError: wkhtmltoimage exited with non-zero code 1. error:
Unknown long argument --no-background

  • OS: [windows 10]
  • IMGkit Version [e.g. 1.2.2]
  • wkhtmltopdf Version [0.12.6 ]

Additional context
other options are working fine.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions