Icchen/81 high resolution export #113
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@confluence
This draft PR is to resolve #81.
An argument
image_ratioand several steps are added intosave_rendered_viewto output png-image with different image ratio:Setting
setIsExportingImagetoTrueenables setting output image ratio by callingsetImageRatio. After writing the data to the file, we setsetIsExportingImagetoFalseand reset the image ratio to1withresetImageRatio.The new-configured function does work for a new opened session. With the script like:
I am able to generate a reolution = 400% png image like:


Nevertheless, there's something really odd: after a period of time (say 20 - 30 mins) without touching anything, the exact same execution will then generate something like:
The image is still with the same 400% resolution in size, but the output content seems to lock to 100% resolution.
I still have no idea what's the reason that causes the phenomena, but I will discuss with @YuHsuan-Hwang and see if there's any mechanism at frontend will causes that.