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

Reducing the dimentions of image #409

Closed
puneet336 opened this issue Feb 27, 2023 · 4 comments
Closed

Reducing the dimentions of image #409

puneet336 opened this issue Feb 27, 2023 · 4 comments
Labels
stale type/question Further information is requested

Comments

@puneet336
Copy link

puneet336 commented Feb 27, 2023

I have created an automation through which i am "stitching" 4 graphs (downloading via requests) after changing FROM, TO in following URLs and sending them to email ( smtplib as html).

http://grafana-02:3003/render/d-solo/qEe_x5xVk/mydash1?orgId=1&from=_FROM_&to=_TO_&panelId=2&width=1000&height=500&tz=Asia%2FCalcutta

Here 's how the graph looks -
image

Problem is that these graphs are very big in size, and i have to unzoom upto 30% to see these graphs properly.

once i do width=100&height=50, the image gets cropped -
http://grafana-02:3003/render/d-solo/qEe_x5xVk/mydash1?orgId=1&from=_FROM_&to=_TO_&panelId=2&width=100&height=50&tz=Asia%2FCalcutta
, the graph does not get small, the image gets cropped , example -
image

Is there a way to reduce the dimentions of image through render api ?
Please do let me know if i can provide you with any further information.

@puneet336
Copy link
Author

I think there is a feature request already on this topic.
grafana/grafana#47211

@joanlopez
Copy link
Collaborator

joanlopez commented Apr 6, 2023

Hi @puneet336,

I think that's precisely the purpose of deviceScaleFactor, have you tried it?
That's the argument we use from Grafana side in order to set up a scale (zoom) factor per report.

Thanks!

@joanlopez joanlopez added the type/question Further information is requested label Apr 6, 2023
@kaffarell
Copy link
Contributor

You can also try to set a smaller width/height and then set a negative pageZoomLevel...

@AgnesToulet
Copy link
Contributor

Closing this as stale as this was not updated for a while. Please feel free to re-open if the suggestions above did not solve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants