-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
[Feat] grass.jupyter.Map3D lacks save() method #5454
Comments
To solve this issue, would it be better to create a new save() function to save the image in the required format or modify the render() function to render it in the desired format? |
I would just convert it inside the save function, keep the render as is. |
I think about creating a save() function as follows: def save(self, filename): In this implementation, I did not import the def test_save_file(self): |
Thanks for working on this. Just to clarify, the expectation is that you actually test your solution, refine it and post the solution in a PR. |
I created a PR: #5494 |
Is your feature request related to a problem? Please describe.
Unlike
gj.Map
,gj.Map3D
doesn't have save method.Describe the solution you'd like
To have consistent API, I suggest adding save method. Unlike
gj.Map
,gj.Map3D
renders the image into tiff, but the save method should allow any image format. Pillow library could be used, it's already dependency.The text was updated successfully, but these errors were encountered: