Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IdanRot opened this issue Aug 8, 2022 · 2 comments
Assignees
Labels

Comments

@IdanRot
Copy link

IdanRot commented Aug 8, 2022

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.

@jarrekk
Copy link
Owner

jarrekk commented May 29, 2023

did you run wkhtmltoimage with --no-background parameter and check if there is an error?

@IdanRot
Copy link
Author

IdanRot commented May 30, 2023

Hi, I used "transparent": "" and it worked nicely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants