Skip to content

Commit

Permalink
Fix animation cache not working when image is behind a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
mendess committed Oct 23, 2024
1 parent 0a39652 commit 7be78db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ fn make_img_request(
let animation = if !imgbuf.is_animated() {
None
} else if img.resize == ResizeStrategy::Crop {
match cache::load_animation_frames(img_path, dim, pixel_format) {
match cache::load_animation_frames(path.as_ref(), dim, pixel_format) {
Ok(Some(animation)) => Some(animation),
otherwise => {
if let Err(e) = otherwise {
Expand Down

0 comments on commit 7be78db

Please sign in to comment.