From 1727f9213c971348dfbb3eb24518d713c6e806f5 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 2 Oct 2023 19:55:22 -0700 Subject: [PATCH] it's actually jfif --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b7b913d..81ebeb8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -343,7 +343,7 @@ fn load_image(input:&mut R)->AResultOk(image::load(input,image::ImageFormat::Png)?), - b"JPEG"=>Ok(image::load(input,image::ImageFormat::Jpeg)?), + b"\xFF\xD8\xFF\xE0"=>Ok(image::load(input,image::ImageFormat::Jpeg)?),//JFIF other=>Err(anyhow::Error::msg(format!("Unknown texture format {:?}",other))), } }