Request motivation
I use captureVisibleTab frequently and I often use a low quality, JPEG, capture to reduce the size for follow up operations (image processing / messaging) for performance reasons.
I've had to stop using low quality JPEG for quality reasons, and thought - wouldn't it be nice to be able to use WEBP instead, given its inherent benefits over both PNG and JPEG (reduced size at the same quality, optional quality adjustment).
I looked through Chromium and Firefox source codes and both could (in my naive opinion) fairly easily support it.
It doesn't seem like WebKit could, as if Canvas.toDataURL with WEBP isn't supported in WebKit, then this likely wouldn't be either, as I imagine this and the above are related to some degree.
Pros
- Inherent benefits that come with WEBP
- This change wouldn't (or shouldn't, at least) break any extensions
Cons
- Introduces new inconsistency
- Not supported in WebKit
- May become redundant as newer image formats (AVIF, JXL) are being implemented and may find their ways in to APIs
Conclusion
It would be a nice-to-have feature, but I can see and would understand why vendors would be unsupportive.
Nevertheless, I'm interested to hear thoughts.
Follow-up - Are vendors open to supporting newer formats (as described above) in the future?
Request motivation
I use
captureVisibleTabfrequently and I often use a low quality, JPEG, capture to reduce the size for follow up operations (image processing / messaging) for performance reasons.I've had to stop using low quality JPEG for quality reasons, and thought - wouldn't it be nice to be able to use WEBP instead, given its inherent benefits over both PNG and JPEG (reduced size at the same quality, optional quality adjustment).
I looked through Chromium and Firefox source codes and both could (in my naive opinion) fairly easily support it.
It doesn't seem like WebKit could, as if
Canvas.toDataURLwith WEBP isn't supported in WebKit, then this likely wouldn't be either, as I imagine this and the above are related to some degree.Pros
Cons
Conclusion
It would be a nice-to-have feature, but I can see and would understand why vendors would be unsupportive.
Nevertheless, I'm interested to hear thoughts.
Follow-up - Are vendors open to supporting newer formats (as described above) in the future?