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

imageURI width parameter doesn't work as expected #4901

Closed
andrussuitsu opened this issue Jan 6, 2025 · 0 comments
Closed

imageURI width parameter doesn't work as expected #4901

andrussuitsu opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@andrussuitsu
Copy link

Description

The width parameter to imageURI API call applies to the canvas but the image within the canvas still has the same original size.

Steps to Reproduce

  1. Open codepen https://codepen.io/andrussuitsu/pen/azoEZKB
  2. It will open a separate tab containing the image exported using imageURI API call.

Expected Behavior

I expect the chart to be scaled so that it will fill the 4096 area. I need this for exporting the image with a better resolution.

Actual Behavior

The chart still looks the same width, it is just on a larger canvas now.

Screenshots

Please look at the codepen link.

Reproduction Link

https://codepen.io/andrussuitsu/pen/azoEZKB

@andrussuitsu andrussuitsu added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant