Aylur/ags

[Question] Gif preview

myryk31415 opened this issue · 2 comments

So I am trying to my a wallpaper picker for swww and support gifs as well.

If I just use the give as Wiget.icon it throws this error:
JS ERROR: GdkPixbuf.PixbufError: Not all frames of the GIF image were loaded.

I found this line in script from JaKooLit:
printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${wallDIR}/${PICS[$i]}\n"
output for an example gif:
mygif^@icon^_/home/user/path/to/file/mygif.gif
This then gets piped into rofi.

Is there anyway to get a preview or a thumbnail of the gif?

regarding the line from the script, I just checked the picker again and it doesn't have a thumbnail either

I found a workaround: setting the gif / image as css background, this way gifs are shown as well. (Even though not animated.)