Skip to content

Feature request: Support for WEBP as a possible extensionTypes.ImageFormat option #939

@hicallmeal

Description

@hicallmeal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage: chromeChrome needs to assess this issue for the first timeneeds-triage: safariSafari needs to assess this issue for the first timeneutral: firefoxNot opposed or supportive from Firefox

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions