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

Figure.export() ? #504

Closed
kushalkolar opened this issue May 13, 2024 · 2 comments · Fixed by #531
Closed

Figure.export() ? #504

kushalkolar opened this issue May 13, 2024 · 2 comments · Fixed by #531

Comments

@kushalkolar
Copy link
Member

What do you think about an Figure.export() method. I'm not sure because Figure.renderer.snapshot() exists, and then users can use their preferred library for saving that RGBA array to an image. And if they want to deal with the alpha channel in a special way they can do that. But I often see people searching the docs for "save" and "save figure" . We can have a simple Figure.export() imageio that takes the snapshot and does stuff in a default way? Just saves it to an png, or a jpg by stripping the alpha channel?

@apasarkar
Copy link
Collaborator

I think we should support a "maximum quality" figure export of some kind. This can be useful if people want to demo results of a pipeline/exploratory data analysis to others.

Similar thoughts re: exporting a high-resolution video ("screen recording") for sharing with others. I know many people who would regularly use this, especially the video bit.

@almarklein
Copy link
Collaborator

Makes sense!

I think we should support a "maximum quality" figure export of some kind.

I thought about this. Could perhaps be an option in pygfx to render a frame with a higher pixel-ratio.

This was referenced Jun 16, 2024
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 a pull request may close this issue.

3 participants