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

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

brunopicinin
Copy link
Contributor

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

@capjamesg capjamesg self-requested a review October 3, 2024 15:09
Copy link
Collaborator

@capjamesg capjamesg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@capjamesg capjamesg merged commit 0c0479b into roboflow:main Oct 3, 2024
1 check failed
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.

2 participants