[Bug 59848] New: Please add WebP, AVIF and JXL support
http://bugs.winehq.org/show_bug.cgi?id=59848 Bug ID: 59848 Summary: Please add WebP, AVIF and JXL support Product: WineHQ Apps Database Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: appdb-unknown Assignee: wine-bugs@list.winehq.org Reporter: aros@gmx.com Distribution: --- WebP files cannot be uploaded (not supported). AVIF would be a nice option as well, the format is already supported by > 98% of modern web browsers. Also would be nice to add JXL (JPEG XL) support as well. In 2026 both Chrome and Firefox will enable JXL support by default. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 Ken Sharp <imwellcushtymelike@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 Austin English <austinenglish@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 --- Comment #1 from Ken Sharp <imwellcushtymelike@gmail.com> --- What currently happens? Does the server normalise uploads to fit certain dimensions? Adding support for other formats means adding more libraries and/or conversion tools. They can all be added but each time one is, it leaves another potentional security hole. I assume there's currently a file size limit, but there also needs to be a dimensions limit or any old nonsense could be uploaded. Again, potentional security issues. JPEG and PNG are already widely supported, and that is unlikely to change. Screenshots on my system default to PNG. Is there some reason to add these formats specifically? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 Artem S. Tashkinov <aros@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #2 from Artem S. Tashkinov <aros@gmx.com> --- All three provide much better compression ratios than PNG/JPG. Never mind. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 --- Comment #3 from Ken Sharp <imwellcushtymelike@gmail.com> --- WebP looks terrible compared to JPEG. The others don't though. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 --- Comment #4 from Artem S. Tashkinov <aros@gmx.com> --- (In reply to Ken Sharp from comment #3)
WebP looks terrible compared to JPEG. The others don't though.
1. WebP generally outperforms JPEG at the same visual quality and often produces substantially smaller files. 2. Unlike baseline JPEG, it also supports lossless compression. 3. Lossless WebP usually compresses better than PNG. 4. JXL generally outperforms WebP in lossy compression. 5. JXL often beats WebP in lossless compression too, although WebP can still be much faster (and even more efficient) for screenshots. JXL has the tools to do better across the board, but the implementation is still evolving. AVIF has gained good decoding support, but saving/export support is still less common than WebP. I'd still add support for at least WebP, but ultimately it's your decision. One limitation of WebP is that it's limited to 8 bits per channel, so no HDR. JXL addresses that. JPEG is also a poor choice for screenshots with text because of ringing and chroma artifacts. WebP, AVIF and JXL generally preserve them much better. I'm a bit of a compression enthusiast, hence this bug report. Regarding
potential security issues
That's a fair concern, but image processing should be isolated and sandboxed. Running decoders directly on the host is asking for trouble. I'm not asking for something niche like HEIC/HEIF support. Likewise, if users ever want to upload HDR screenshots, JPEG won't preserve them. Formats like AVIF, HEIC or JXL are much better suited for that. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 --- Comment #5 from Ken Sharp <imwellcushtymelike@gmail.com> --- The AppDB appears to use GD for the image handling, and so is limited by the support in that. avif and webp are supported, but no jxl at time of writing. https://www.php.net/manual/en/function.imagetypes.php The relevant libraries would need to be installed on the server. I've no idea if/how PHP isolates these processes. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 --- Comment #6 from Ken Sharp <imwellcushtymelike@gmail.com> --- I missed the line saying avif was added in PHP 8.1.0. The README for the AppDB says PHP 7.4, though this may be out of date. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 --- Comment #7 from Ken Sharp <imwellcushtymelike@gmail.com> --- https://gitlab.winehq.org/winehq/appdb/-/merge_requests/39 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 Ken Sharp <imwellcushtymelike@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |--- Status|RESOLVED |REOPENED Ever confirmed|0 |1 --- Comment #8 from Ken Sharp <imwellcushtymelike@gmail.com> --- If someone has knowledge about the security implications with this, please do shout up. JXL isn't widely supported, though the plumbing could be put in, it probably shouldn't be enabled until browsers catch up. But mobile browsers are always going to be an issue for new formats. The AppDB *could* detect this and convert to a suitable format (and this could be done generally), but do we want that to happen? The performance of the AppDB already isn't great. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59848 Ken Sharp <imwellcushtymelike@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW --- Comment #9 from Ken Sharp <imwellcushtymelike@gmail.com> --- WEBP supported added https://gitlab.winehq.org/winehq/appdb/-/commit/f46ad2710ed427d50fd0dc87d807... Example with "Early Gameplay - Wine 11.14": https://appdb.winehq.org/screenshots.php?iAppId=&iVersionId=24516 I think it's a little too early for AVIF: https://caniuse.com/?search=avif Way too early early for JXL: https://caniuse.com/?search=jxl Something to revisit in the future, or maybe these should be separate reports? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla