Conversation
confluence
left a comment
There was a problem hiding this comment.
The image ratio parameter should be added to all three functions for retrieving data -- rendered_view_url, rendered_view_data as well as save_rendered_view. The user could access any of these stages directly. setImageRatio, resetImageRatio and setIsExportingImage should be called from the innermost function (rendered_view_url).
|
@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 |
|
@confluence, another issue is that we need to restrict the |
@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.