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

image-dpi and image-quality must be passed as integers #251

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

martinssipenko
Copy link
Contributor

@martinssipenko martinssipenko commented Jun 26, 2017

According to wkhtmltopdf documentation, the values for --image-dpi and --image-quality options must be passed as integers. If they are not they simply get ignored. So far the escapeshellarg function has been used to escape the shell arguments, which adds single quotes around the value.

This patch adds a test for such case and implements a fix.

@akerouanton akerouanton merged commit 3ba15a0 into KnpLabs:master Jul 3, 2017
@akerouanton
Copy link
Contributor

Thank you! :)

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

Successfully merging this pull request may close these issues.

2 participants