File Size When Export to PNG #22
Comments
See the options-list: https://github.com/senshu/Sozi-export |
The PNG rendering function also accepts a Initially, the PNG export was only an intermediate step before converting to video, so it made sense to keep the highest quality at the input of the video encoder. |
So, how should my command written?
Yes, i get different height size when i type 1080, so i use value 1064 to get value 1080 of height |
Sorry, I now realize that the options don't affect the temporally created png's. You will thus either have to hack the code pointed out by @SENSHU, wait for someone else doing it (since @SENSHU has acknowledged you question as a relevant improvement), or maybe use sozi-to-pdf, which will give you the option of downsizing the pages. Alternatively you downscale the files with a commandline-tool -- in linux that might be "convert": |
Yes, i did it manually before Btw, next month i'll talk about Sozi in openSUSE.Asia Summit :") |
I'm reopening this issue: I think it would be a good thing to add parameters to better control image resolution and quality. |
This might be related to this as well, since IMO the PNG-export is the most important function for animators: |
From my experiments so far, the For the record, the API documentation of PhantomJS tells that the PhantomJS being deprecated, I'm afraid we cannot expect any improvement on this topic in the near future. |
I found a question about a similar issue. |
My bad. After fixing an error in my code, I could reduce the image file size of my example from 3Mb to 30 kb. |
I have pushed a fix that adds a command-line option I have also fixed the image height issue based on the observation that PhantomJS always adds 16 pixels to the window height. The new version is published to NPM as Sozi-export 19.09.14. |
Hi, very thanks for this great tools.
I've a bit problem when i try to export sozi html file to png sequence. Each png has 8 MB size, some of them.are blank (only white) image, so i think it so big for blank image. Is there any way to set each png in minimum image size?
Thank you
The text was updated successfully, but these errors were encountered: