Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for WebP image format #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brunopicinin
Copy link

Description

Added support for WebP image format. Pretty much every browser, except for IE, supports this format.

No major changes in code required, since the image decoding is handled by the native Image object.

Type of change

  • New feature (non-breaking change which adds functionality)

How has this change been tested, please provide a testcase or example of how you tested the change?

WebP image:

  • Dragged a webp image to the canvas
  • Created some polygons on top of it
  • Saved annotated image to validate export

PNG/JPEG/JPG images:

  • Dragged other supported images to the canvas to validate that other images still work

Other files:

  • Dragged a couple of text files to the canvas to make sure that non-image files throw an alert

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