Skip to content

Support saving screenshot images in JPEG format with compression #2

Description

@kazurayam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions