Selenium's takeScreanshot feature creates image in PNG, it does not create image in JPEG.
I want to take screenshot of web pages, I want the image files to be as small in byte size as possible.
I want to have an option to saven the screenshot in JPEG format, not PNG format.
I want to specify the compression quality. The compression quality could be in the range of (0.1, 1.0].
How to implement the conversion from PNG to JPEG? It is possible using the pure Java8.
https://stackoverflow.com/questions/17108234/setting-jpg-compression-level-with-imageio-in-java
Selenium's takeScreanshot feature creates image in PNG, it does not create image in JPEG.
I want to take screenshot of web pages, I want the image files to be as small in byte size as possible.
I want to have an option to saven the screenshot in JPEG format, not PNG format.
I want to specify the compression quality. The compression quality could be in the range of (0.1, 1.0].
How to implement the conversion from PNG to JPEG? It is possible using the pure Java8.
https://stackoverflow.com/questions/17108234/setting-jpg-compression-level-with-imageio-in-java