takahirom / roborazzi

Make JVM Android integration test visible 🤖📸
https://takahirom.github.io/roborazzi/
Apache License 2.0
715 stars 34 forks source link

Different captured image format #522

Open ArcaNO93 opened 17 hours ago

ArcaNO93 commented 17 hours ago

Hello there Does Roborazzi support capturing\comparing in other formats rather than PNG (i have a particular interest in webp since it is lighter)? Thanks

takahirom commented 3 hours ago

Thanks. We might need to use the lossless format of WebP if we implement it. We should investigate whether it's compatible with platforms like Mac, Windows, and Linux. For now, you can try using RGB565 for size reduction. https://github.com/takahirom/roborazzi/blob/db6faacbcfbff7954cdd43741606bbc6e5bf53d3/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/RoborazziOptions.kt#L202