emilk / emilk/egui

egui_extras `image` doesn't use image plugins

Open Beginner friendly
#8,546 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Describe the bug**
egui_extras uses the image::guess_format with ImageReader::with_format, this make it unable to utilize image codecs added by plugins.

**To Reproduce**
Try to load an image supported by a plugin for `image`.

**Expected behavior**
Support for plugins.

**Solution**
Use ImageReader::new instead, as it doesn't have this issue. And remove file extension and mime type checking

Contributor guide

Open the contributing guide

Research direction

Locate the egui_extras image-loading code that calls image::guess_format with ImageReader::with_format, then read how file extensions and MIME types are checked there. Reproduce the issue with an image format supplied by an image plugin, and verify that plugin-supported images load successfully without those checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.