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

support a resolution scaling factor for export-as-png #81

Open
kswang1029 opened this issue Mar 7, 2023 · 6 comments · May be fixed by #113
Open

support a resolution scaling factor for export-as-png #81

kswang1029 opened this issue Mar 7, 2023 · 6 comments · May be fixed by #113
Labels
enhancement New feature or request
Milestone

Comments

@kswang1029
Copy link
Contributor

The frontend supports three resolution scaling options as 100% (as is on screen), 200%, and 400%, if users need a higher resolution PNG image for presentation purposes. Session.save_rendered_view() function could be enhanced to support this.

Currently we can use Session.set_view_area() to a desired PNG size. Having the scaling factor would be a handy if users are in the interactive mode. For headless mode, Session.set_view_area() alone should be sufficient.

@Jordatious
Copy link

This isn't quite intuitive to me. What's an example call Session.set_view_area() for something like 200% scaling?

@kswang1029
Copy link
Contributor Author

This isn't quite intuitive to me. What's an example call Session.set_view_area() for something like 200% scaling?

Need to consider both headless and interactive modes. So we need this (mainly for interactive mode)

@Jordatious
Copy link

Certainly I agree we need to support the 200% and 400% quality. It's just not clear how easy that is currently. In interactive mode, the user could use the GUI.

@Jordatious
Copy link

Another option that I don't see listed is to save in a format supportive of vectors (PDF, PS, EPS). This would be helpful for regions, contours, vector overlays or other annotations. Furthermore, despite giving no advantage to raster images, journals often request or require EPS images.

@kswang1029
Copy link
Contributor Author

Another option that I don't see listed is to save in a format supportive of vectors (PDF, PS, EPS). This would be helpful for regions, contours, vector overlays or other annotations. Furthermore, despite giving no advantage to raster images, journals often request or require EPS images.

We will wait until the frontend can support those. The scripting interface basically supports what can be done with the frontend only.

@Jordatious
Copy link

Makes sense. I guess I'm punting for its addition on the frontend, and relating it to the goal of having publication-quality images.

@kswang1029 kswang1029 added this to the v4.0-stable milestone May 11, 2023
@I-Chenn I-Chenn linked a pull request May 15, 2023 that will close this issue
@Kechil Kechil added this to CARTA Sep 18, 2023
@Kechil Kechil moved this to In progress in CARTA Sep 18, 2023
@kswang1029 kswang1029 modified the milestones: v4.0-stable, v5.0-beta Oct 3, 2023
@kswang1029 kswang1029 removed this from CARTA Dec 6, 2023
@kswang1029 kswang1029 added this to CARTA Dec 6, 2023
@kswang1029 kswang1029 moved this to Icebox in CARTA Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Icebox
Development

Successfully merging a pull request may close this issue.

3 participants