[bug] Stop squimpshing the thumb'd nails
This commit is contained in:
parent
faa8776740
commit
486970692d
|
@ -17,7 +17,7 @@ pub fn thumbnail(bytes: &[u8]) -> ImageResult<(Option<WebPMemory>, u32, u32, Web
|
||||||
let scaled = if new_dimm < 400 {
|
let scaled = if new_dimm < 400 {
|
||||||
cropped
|
cropped
|
||||||
} else {
|
} else {
|
||||||
original_image.thumbnail_exact(400, 400)
|
cropped.thumbnail_exact(400, 400)
|
||||||
}.into_rgba8();
|
}.into_rgba8();
|
||||||
let scale = scaled.width();
|
let scale = scaled.width();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue