Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Mar 28, 2024
1 parent a7ad674 commit e188672
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "image_thumbs"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
repository = "https://github.com/tweedegolf/image-thumbs"
keywords = ["GCS", "image", "thumbnails"]
Expand All @@ -18,12 +18,12 @@ name = "basic"

[dependencies]
object_store = { version = "0.9", features = ["gcp"] }
image = { version = "0.24", default-features = false, features = ["png", "jpeg"] }
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
config = { version = "0.14", default-features = false, features = ["yaml"] }
thiserror = "1.0"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.32", features = ["full"] }
bytes = "1.5"
futures = "0.3"
mime = "0.3"
sequential-test = "0.2"
sequential-test = "0.2"
4 changes: 2 additions & 2 deletions src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ impl<T: ObjectStore> ImageThumbs<T> {
};

match format {
ImageFormat::Png => {
ImageFormat::Jpeg => {
let encoder = JpegEncoder::new_with_quality(writer, params.quality);
thumbnail.write_with_encoder(encoder)?;
}
ImageFormat::Jpeg => {
ImageFormat::Png => {
let encoder = PngEncoder::new_with_quality(
writer,
CompressionType::default(),
Expand Down

0 comments on commit e188672

Please sign in to comment.