iZettle / android-html2bitmap

Generates a bitmap from html by rendering the content inside an off screen webview
MIT License
56 stars 20 forks source link

Increase performance for Local files #35

Closed ismdcf closed 3 years ago

ismdcf commented 3 years ago

Thank you for the awesome library

Are there any ways we could improve the bitmap generation time for local files. Currently, we are experiencing around 800ms delay. Could anyone give suggestions if there are any ways to achieve a lesser bitmap generation time?

Kudos

ismdcf commented 3 years ago

Found out that setting

.setScreenshotDelay(0)
.setMeasureDelay(0)

Had a decrease in the delay from 800ms to 150ms.

Closing the issue