mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Fix crash on loading animated webp alpha
This commit is contained in:
Generated
+2
-2
@@ -168,7 +168,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "boilr"
|
||||
version = "1.4.8"
|
||||
version = "1.4.9"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"chrono",
|
||||
@@ -1340,7 +1340,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "image"
|
||||
version = "0.24.3"
|
||||
source = "git+https://github.com/PhilipK/image?rev=cb66840dd42785c7283206cc9805240501695a61#cb66840dd42785c7283206cc9805240501695a61"
|
||||
source = "git+https://github.com/PhilipK/image?rev=55a668409b28fedcd6cd3dea25ae1b3cc9d25ec5#55a668409b28fedcd6cd3dea25ae1b3cc9d25ec5"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"byteorder",
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
edition = "2021"
|
||||
name = "boilr"
|
||||
version = "1.4.8"
|
||||
version = "1.4.9"
|
||||
|
||||
[dependencies]
|
||||
base64 = "^0.13.0"
|
||||
@@ -35,7 +35,7 @@ version = "^0.3.23"
|
||||
[dependencies.image]
|
||||
features = ["png","webp","jpeg"]
|
||||
git = "https://github.com/PhilipK/image"
|
||||
rev = "cb66840dd42785c7283206cc9805240501695a61"
|
||||
rev = "55a668409b28fedcd6cd3dea25ae1b3cc9d25ec5"
|
||||
|
||||
[dependencies.reqwest]
|
||||
default_features = false
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/philipk/image",
|
||||
"commit": "cb66840dd42785c7283206cc9805240501695a61",
|
||||
"dest": "flatpak-cargo/git/image-cb66840"
|
||||
"commit": "55a668409b28fedcd6cd3dea25ae1b3cc9d25ec5",
|
||||
"dest": "flatpak-cargo/git/image-55a6684"
|
||||
},
|
||||
{
|
||||
"type": "archive",
|
||||
@@ -1685,7 +1685,7 @@
|
||||
{
|
||||
"type": "shell",
|
||||
"commands": [
|
||||
"cp -r --reflink=auto \"flatpak-cargo/git/image-cb66840/.\" \"cargo/vendor/image\""
|
||||
"cp -r --reflink=auto \"flatpak-cargo/git\\image-55a6684\\.\" \"cargo/vendor/image\""
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -4439,7 +4439,7 @@
|
||||
},
|
||||
{
|
||||
"type": "inline",
|
||||
"contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/philipk/image\"]\ngit = \"https://github.com/philipk/image\"\nreplace-with = \"vendored-sources\"\nrev = \"cb66840dd42785c7283206cc9805240501695a61\"\n",
|
||||
"contents": "[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n\n[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.\"https://github.com/philipk/image\"]\ngit = \"https://github.com/philipk/image\"\nreplace-with = \"vendored-sources\"\nrev = \"55a668409b28fedcd6cd3dea25ae1b3cc9d25ec5\"\n",
|
||||
"dest": "cargo",
|
||||
"dest-filename": "config"
|
||||
}
|
||||
|
||||
@@ -25,6 +25,13 @@ https://hughsie.github.io/oars/index.html
|
||||
-->
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="1.4.9" date="2022-09-08">
|
||||
<description>
|
||||
<ul>
|
||||
<li>Fixed a crash that would happen when loading specific animated webp images that use alpha blending</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="1.4.8" date="2022-09-06">
|
||||
<description>
|
||||
<ul>
|
||||
|
||||
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 872 KiB |
@@ -94,4 +94,10 @@ mod tests {
|
||||
let res = load_image_from_path(std::path::Path::new("src/testdata/hollow.webp"));
|
||||
assert!(res.is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
pub fn test_image_load_animated_webp2() {
|
||||
let res = load_image_from_path(std::path::Path::new("src/testdata/tunic.webp"));
|
||||
assert!(res.is_err());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -577,9 +577,6 @@ impl MyEguiApp {
|
||||
let thumbnail_key = image.thumbnail_path.to_string_lossy().to_string();
|
||||
let thumbnail = self.image_selected_state.image_handles.remove(&thumbnail_key);
|
||||
if let Some((key,thumbnail)) = thumbnail {
|
||||
dbg!(&full_image_key);
|
||||
dbg!(&key);
|
||||
|
||||
self.image_selected_state
|
||||
.image_handles
|
||||
.insert(full_image_key, thumbnail);
|
||||
|
||||
Reference in New Issue
Block a user