Snapshot routines should allow users to specify image width/height
See original GitHub issueMotivated by https://github.com/plotly/plotly.js/issues/42#issuecomment-162520017
At the moment, the Snapshot.toImage
has hard-coded width
and height
parameters.
Something like:
Plotly.Snapshot.toImage(gd, {format: 'png', width: 1000, height: 800});
Moreover, maybe the on-success handler used by the modebar toImage
button could be used as the default on-success handler to Snapshot.toImage
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Snapshot of a SwiftUI View | Apple Developer Forums
The view always has width of 0 and a height of 0. I forced the view to load by adding self.loadView() as a...
Read more >Setting Height And Width On Images Is Important Again
To prevent layout shifts and improve performance scores, we need to always set width and height attributes on our images.
Read more >WordPress Image Sizes Explained (And How to Add Custom ...
The name you give your custom image size; The image width in pixels; The image height in pixels; Should the image be cropped...
Read more >Resize Your Image Without Losing Quality - YouTube
You've found the perfect image to use on your website or project, but when you download it you ... Image & Screenshot Editing...
Read more >Always Up-To-Date Guide to Social Media Image Sizes
From Twitter to Facebook to Pinterest, here's a guide to every important social media image size, always kept up-to-date.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I just started working through this. Here is the very preliminary set of thoughts. By the end of the week, I hope to have a full plan to address this. Is that ok?
done in https://github.com/plotly/plotly.js/pull/446