Skip to content

fzf-preview.sh: The image keeps loading #4870

Description

@XhstormR

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.74 (conda-forge)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

export FZF_CTRL_T_OPTS='--preview "fzf-preview.sh {}" --preview-window "~4"'

Unable to preview images using fzf-preview.sh, stuck in loading, but text preview works fine.

Image

Chafa is installed, and displaying images directly using Chafa works correctly. All tool CLIs are up-to-date.

Image
└──❯ v tmux
tmux 3.7b
└──❯ v fish
fish,version 4.8.1
└──❯ v fzf
0.74 (conda-forge)
└──❯ v chafa
Chafa version 1.18.2

Loaders:  AVIF CoreGraphics GIF JPEG JXL PNG QOI TIFF WebP XWD
Features: none
Applying: none

Copyright (C) 2018-2025 Hans Petter Jansson et al.
Incl. libnsgif copyright (C) 2004 Richard Wilson, copyright (C) 2008 Sean Fox
Incl. LodePNG copyright (C) 2005-2018 Lode Vandevenne
Incl. QOI decoder copyright (C) 2021 Dominic Szablewski

This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions