thimc / lfimg

Image preview support for lf (list files) using Überzug
GNU General Public License v3.0
252 stars 45 forks source link

Pixelated-looking previews #19

Closed aeblyve closed 3 years ago

aeblyve commented 3 years ago

Hello, I'd like to get this project working to spec on my lf. Unfortunately, image previews come out looking kind of pixelated. pic-selected-210504-0854-52 I get this behavior with both xterm and st, both with the manual and make install methods. My ratios are set to the default. The bash script on ueberzug's github page does not display images like this.

What might be the problem here? Or is this intended behavior?

thimc commented 3 years ago

Hi. Well, it looks like chafa is being used instead ueberzug, this makes me think that somehow lfimg thinks that you're using it through an SSH connection.

Can you please dump the output of the following variables:

$SSH_CLIENT $SSH_TTY $DISPLAY

aeblyve commented 3 years ago

$SSH_CLIENT and $SSH_TTY are empty. $DISPLAY is :0 .

thimc commented 3 years ago

I see. Well, everything seems to be in order and should work.

Verify that you have the needed packages from the README file and git pull the latest version and try again.

eriteric commented 3 years ago

Same issue here, same values for the environment variables. All packages are installed. I had this line in my ~/.config/lf/lfrc which I believe came from LARBs

$lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope"

Just had to comment that out to use the lfimg previewer instead (which i set already in lfrc using the instructions from the lfimg README)

aeblyve commented 3 years ago

Same issue here, same values for the environment variables. All packages are installed. I had this line in my ~/.config/lf/lfrc which I believe came from LARBs

$lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope"

Just had to comment that out to use the lfimg previewer instead (which i set already in lfrc using the instructions from the lfimg README)

Ah- I was using LARBS too. Thank you!