vrcx-team / VRCX

Friendship management tool for VRChat
MIT License
975 stars 183 forks source link

[Feature Request] WebP support for the screenshot viewer #844

Open Demez opened 2 months ago

Demez commented 2 months ago

I tend to convert all my VRChat screenshots to lossless webp to save space and so I can still upload them on discord, as I take lots of photos and converting them saves gigabytes of space. But I can't easily view the metadata in the screenshot viewer in VRCX, as it only supports PNG. Since this is based on chrome, ideally it should support all image formats chrome supports. If not all, at least webp and jpeg would be nice to have support for.

Turretoforth commented 2 months ago

The issue is, the metadata is embedded into the PNG file itself. When you convert it into another format, you lose this information and even if it is carried over, it would be at a different place that currently VRCX does not know about

Demez commented 2 months ago

2024-07-19_05-10-51_cmd__CWindowssystem32cmd exe

In my webp conversion script, I can extract the metadata as an xmp file with exiftool, and carry over the information into the webp itself with webpmux, so no information is actually lost. Though i'm not sure if you would need this, but you could use this API to read the xmp data from the webp: https://developers.google.com/speed/webp/docs/container-api

(also i mistakenly assumed vrcx was built all off of chrome, my bad)