Skip to content

Commit

Permalink
increase cover size, I'm killing the planet
Browse files Browse the repository at this point in the history
  • Loading branch information
thasos committed Jul 15, 2024
1 parent face407 commit fc33e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/html_render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ pub fn file_info(
: if read_status { "✅" } else { "" };
}
h2(style="text-align: center;") { : file.name ; }
img(src=format!("/cover/{}", file.id), alt="cover", width="150", height="230", class="infos");
img(src=format!("/cover/{}", file.id), alt="cover", class="infos");
p(style="text-align: center;") {
: format!("size : {}", file.size) ;
br;
Expand Down
3 changes: 2 additions & 1 deletion src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,8 @@ pub fn resize_cover(cover: image::DynamicImage) -> image::DynamicImage {
// TODO do not keep ratio ? crop ? the max heigh is the most important
// TODO test thumbnail fn :
// https://docs.rs/image/latest/image/enum.DynamicImage.html#method.thumbnail
cover.resize(150, 230, FilterType::Triangle)
// cover.resize(150, 230, FilterType::Triangle)
cover.resize(180, 280, FilterType::Triangle)

// // test crate fast_image_resize ?
// use fast_image_resize as fir;
Expand Down

0 comments on commit fc33e22

Please sign in to comment.