Update deps
This commit is contained in:
parent
6a2b890545
commit
81db65def8
1872
Cargo.lock
generated
1872
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -7,10 +7,11 @@ use config::Config;
|
|||||||
use errors::{anyhow, Context, Result};
|
use errors::{anyhow, Context, Result};
|
||||||
use libs::ahash::{HashMap, HashSet};
|
use libs::ahash::{HashMap, HashSet};
|
||||||
use libs::image::imageops::FilterType;
|
use libs::image::imageops::FilterType;
|
||||||
use libs::image::{EncodableLayout, ImageOutputFormat};
|
use libs::image::{EncodableLayout, ImageFormat};
|
||||||
use libs::rayon::prelude::*;
|
use libs::rayon::prelude::*;
|
||||||
use libs::{image, webp};
|
use libs::{image, webp};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
use libs::image::codecs::jpeg::JpegEncoder;
|
||||||
use utils::fs as ufs;
|
use utils::fs as ufs;
|
||||||
|
|
||||||
use crate::format::Format;
|
use crate::format::Format;
|
||||||
@ -55,10 +56,11 @@ impl ImageOp {
|
|||||||
|
|
||||||
match self.format {
|
match self.format {
|
||||||
Format::Png => {
|
Format::Png => {
|
||||||
img.write_to(&mut buffered_f, ImageOutputFormat::Png)?;
|
img.write_to(&mut buffered_f, ImageFormat::Png)?;
|
||||||
}
|
}
|
||||||
Format::Jpeg(q) => {
|
Format::Jpeg(q) => {
|
||||||
img.write_to(&mut buffered_f, ImageOutputFormat::Jpeg(q))?;
|
let mut encoder = JpegEncoder::new_with_quality(&mut buffered_f, q);
|
||||||
|
encoder.encode_image(&img)?;
|
||||||
}
|
}
|
||||||
Format::WebP(q) => {
|
Format::WebP(q) => {
|
||||||
let encoder = webp::Encoder::from_image(&img)
|
let encoder = webp::Encoder::from_image(&img)
|
||||||
|
|||||||
@ -5,25 +5,25 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ahash = "0.8"
|
ahash = "0.8"
|
||||||
ammonia = "3"
|
ammonia = "4"
|
||||||
atty = "0.2.11"
|
atty = "0.2.11"
|
||||||
base64 = "0.21"
|
base64 = "0.22"
|
||||||
csv = "1"
|
csv = "1"
|
||||||
elasticlunr-rs = { version = "3.0.2", features = ["da", "no", "de", "du", "es", "fi", "fr", "hu", "it", "pt", "ro", "ru", "sv", "tr"] }
|
elasticlunr-rs = { version = "3.0.2", features = ["da", "no", "de", "du", "es", "fi", "fr", "hu", "it", "pt", "ro", "ru", "sv", "tr"] }
|
||||||
filetime = "0.2"
|
filetime = "0.2"
|
||||||
gh-emoji = "1"
|
gh-emoji = "1"
|
||||||
glob = "0.3"
|
glob = "0.3"
|
||||||
globset = "0.4"
|
globset = "0.4"
|
||||||
image = "0.24"
|
image = "0.25"
|
||||||
lexical-sort = "0.3"
|
lexical-sort = "0.3"
|
||||||
minify-html = "0.11"
|
minify-html = "0.15"
|
||||||
nom-bibtex = "0.5"
|
nom-bibtex = "0.5"
|
||||||
num-format = "0.4"
|
num-format = "0.4"
|
||||||
once_cell = "1"
|
once_cell = "1"
|
||||||
percent-encoding = "2"
|
percent-encoding = "2"
|
||||||
pulldown-cmark = { version = "0.10", default-features = false, features = ["html", "simd"] }
|
pulldown-cmark = { version = "0.10", default-features = false, features = ["html", "simd"] }
|
||||||
pulldown-cmark-escape = { version = "0.10", default-features = false }
|
pulldown-cmark-escape = { version = "0.10", default-features = false }
|
||||||
quickxml_to_serde = "0.5"
|
quickxml_to_serde = "0.6"
|
||||||
rayon = "1"
|
rayon = "1"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
relative-path = "1"
|
relative-path = "1"
|
||||||
@ -43,7 +43,7 @@ unic-langid = "0.9"
|
|||||||
unicode-segmentation = "1.2"
|
unicode-segmentation = "1.2"
|
||||||
url = "2"
|
url = "2"
|
||||||
walkdir = "2"
|
walkdir = "2"
|
||||||
webp = "0.2"
|
webp = "0.3"
|
||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user