Open I-Chenn opened 1 year ago
@confluence I made some modifications according to your suggestions, the issue mentioned above (lock to 100% resolution issue after 20 - 30 mins) is still appearing. I firstly thought it probably due to: we reset the image_ratio
to 1 not until the data is written into the png file (and that's the reason I want to call resetImageRatio
in save_rendered_view
after the writing file line). Nevertheless, it seems that the issue still appears if I do so. Will keep investigating for the cause of the issue.
@confluence, another issue is that we need to restrict the image_ratio
. Do you think if it's proper to set 5 as the upper limit for image_ratio
?
@confluence This draft PR is to resolve #81.
An argument
image_ratio
and several steps are added intosave_rendered_view
to output png-image with different image ratio: SettingsetIsExportingImage
toTrue
enables setting output image ratio by callingsetImageRatio
. After writing the data to the file, we setsetIsExportingImage
toFalse
and reset the image ratio to1
withresetImageRatio
.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.