Author Topic: Animated Gif not displaying  (Read 1591 times)

Offline poporacer

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Animated Gif not displaying
« on: October 21, 2019, 07:53:31 PM »
I have ran across a couple animated gifs that would not display in xLights. If I open the image in an image editing program, then save it, it will display properly. I am not sure what is wrong with the gif, but here is one that won't display in xLights.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Animated Gif not displaying
« Reply #1 on: October 21, 2019, 09:47:02 PM »
I tried your file in the debugger.  It doesn't appear that the wxWidgets object we use to read image files can read that one.

Offline Ebuechner

  • Hero Member
  • *****
  • Posts: 750
    • View Profile
Re: Animated Gif not displaying
« Reply #2 on: October 22, 2019, 06:13:02 AM »
If I have a problem with a gif file I open it in piskel and then save it with a new name.
So far that's worked for me every time.

Offline Ebuechner

  • Hero Member
  • *****
  • Posts: 750
    • View Profile
Re: Animated Gif not displaying
« Reply #3 on: October 22, 2019, 10:59:00 AM »
When I got home I downloaded that gif image and ran it through piskel and it works.

Offline poporacer

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Re: Animated Gif not displaying
« Reply #4 on: October 22, 2019, 09:59:13 PM »
If I have a problem with a gif file I open it in piskel and then save it with a new name.
So far that's worked for me every time.

Yes, I have been able to get them to work doing something similar, but there are some people out there that wouldn't know to do that so I posted it in case there is a fix.
 
I tried your file in the debugger.  It doesn't appear that the wxWidgets object we use to read image files can read that one.

Ok, thanks for looking at it. Do you know what attribute in the gif file is causing the issue?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Animated Gif not displaying
« Reply #5 on: October 23, 2019, 07:50:22 AM »
I don't know maybe you could investigate the differences between the file when it didn't work and then did work after saving in Piskel.

Offline Ebuechner

  • Hero Member
  • *****
  • Posts: 750
    • View Profile
Re: Animated Gif not displaying
« Reply #6 on: October 23, 2019, 10:28:37 AM »
Before you spend too much time on it, this is something that I went back and forth with Keith on over a year ago while he was making changes related to GIF files.
I gave him a few files that weren't working correctly and he was able to fix most of them but they were a few that he suggested that I just run through piskel.
I'm sure there's a reason why he stopped at the point that he did while he was working on that part of xlights.


Offline poporacer

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Re: Animated Gif not displaying
« Reply #7 on: October 23, 2019, 10:59:32 AM »
Thanks,
I will just fix them as I need them.