Skip to content

Commit

Permalink
Enable loading images from JPEG
Browse files Browse the repository at this point in the history
  • Loading branch information
a1phyr committed Jul 26, 2023
1 parent 03d5805 commit 156c41f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ assets_manager = { version = "0.10", default-features = false, features = ["util
ggez = { version = "0.9.0", default-features = false, features = ["audio"] }

directories = "5.0"
image = { version = "0.24", default-features = false, features = ["png", "bmp", "webp"] }
image = { version = "0.24", default-features = false, features = ["png", "bmp", "webp", "jpeg"] }
log = "0.4"
parking_lot = "0.12"

Expand Down
2 changes: 1 addition & 1 deletion src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub struct ImageAsset(image::RgbaImage);

impl Asset for ImageAsset {
type Loader = GgezLoader;
const EXTENSIONS: &'static [&'static str] = &["png", "bmp", "wepb"];
const EXTENSIONS: &'static [&'static str] = &["png", "bmp", "wepb", "jpeg", "jpg"];
}

impl loader::Loader<ImageAsset> for GgezLoader {
Expand Down

0 comments on commit 156c41f

Please sign in to comment.