elkowar / eww

ElKowars wacky widgets
https://elkowar.github.io/eww
MIT License
9.25k stars 381 forks source link

[BUG] Couldn’t recognize the image file format #1151

Closed fabolous005 closed 2 months ago

fabolous005 commented 2 months ago

Checklist before submitting an issue

Description of the bug

I have a script running that listens to playerctl to download current mpris:artUrl, but when i try to display that image with the image widget i get above error. The image is fine for other applications (kitty icat, Gimp).

Reproducing the issue

Test mpris Art

(image
    :path "path to image"
    :width 118
    :height 118

Expected behaviour

Display the image.

Additional context

Some debug info:

$ file pictures/mpris_art.jpg 
pictures/mpris_art.jpg: JPEG image data, JFIF standard 1.01,
resolution (DPCM), density 236x236, segment length 16,
baseline, precision 8, 640x640, components 3
ovalkonia commented 2 months ago

That's something wrong on your side. Check if you have libjpeg installed.

fabolous005 commented 2 months ago

You are right, of course i had libjpeg installed, but the jpeg useflag is not enabled by default for gdk-pixbuf, enabling it fixed it for me...