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

puppeteer params.width and params.height error #102

Open
pilezkiy opened this issue Mar 24, 2023 · 0 comments
Open

puppeteer params.width and params.height error #102

pilezkiy opened this issue Mar 24, 2023 · 0 comments

Comments

@pilezkiy
Copy link

pilezkiy commented Mar 24, 2023

When set float scale like 2.9459 in options of convertFile puppeteer throw error

Invalid parameters Failed to deserialize params.width - BINDINGS: int32 value expected

In file /convert-svg-core/src/Converter.js:298 must to fix like:
if (options.scale !== 1) { dimensions.height *= options.scale; dimensions.height = Math.ceil(dimensions.height); dimensions.width *= options.scale; dimensions.width = Math.ceil(dimensions.width); await this[_setDimensions](page, dimensions); }

After that all works.

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

No branches or pull requests

1 participant