Skip to content

feat(editor): add WebP support - #536

Open
CoconutMacaroon wants to merge 2 commits into
StackExchange:mainfrom
CoconutMacaroon:main
Open

CoconutMacaroon wants to merge 2 commits into
StackExchange:mainfrom
CoconutMacaroon:main

Conversation

@CoconutMacaroon

Copy link
Copy Markdown

Addresses MSE post: Allow WebP image uploads in the Stacks Editor

Describe your changes

Enables support for uploading WebP files (in addition to the existing support for JPEG/PNG/GIF)

PR Checklist

  • All new/changed functionality includes unit and (optionally) e2e tests as appropriate
  • All new/changed functions have /** ... */ docs
  • I've added the bug/enhancement and other labels as appropriate

Environment(s) tested

  • Device: Laptop
  • OS: Windows 11 25H2
  • Browser: Firefox
  • Version: 156.0 (64-bit)

Additional context

I haven't added something like this for WebP, but I can (in test/shared/prosemirror-plugins/image-upload.test.ts)

await expect(
    uploader.showImagePreview(
        mockFile("some jpeg file", "image/jpeg")
    )
).resolves.toBeUndefined();
expect(findValidationMessage(uploader).classList).toContain(
    "d-none"
);

@CoconutMacaroon
CoconutMacaroon requested a review from a team as a code owner September 28, 2026 01:59
@changeset-bot

changeset-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c15fbe5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant