giffer script makes corrupted gifs

Has something gone haywire? Let us know about it!
Post Reply
User avatar
gamnamno
Posts: 23
Joined: March 5th, 2014, 3:39 pm
Location: Rambaud, France
Contact:

giffer script makes corrupted gifs

Post by gamnamno » March 11th, 2014, 10:06 am

I really don't know why, but when I use the Perl script "giffer", with any number of frames and any dimensions, it creates a gif with a corrupted picture and without animation.
For example I select about 50x50 cells with the select tool, click on the script and let "100 1 out.gif" when the window appears. Then it runs the script and the file out.gif is created in the Perl scripts folder.

I'm on Windows 7 64bit, I use Golly 2.6 64bit and Perl 5.10 64bit, but I tried some other versions of both (older for golly, newer for Perl, and 32 or 64bit), and it didn't change anything.

Help me please

User avatar
Andrew
Moderator
Posts: 928
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: giffer script makes corrupted gifs

Post by Andrew » March 11th, 2014, 6:52 pm

I'm not sure what's going wrong. I can create a valid .gif file using giffer.pl on both Mac and Windows. In the latter case I'm running XP with a 32-bit Golly and Perl 5.10. Do the other .pl scripts supplied with Golly run ok? Where did you get Perl from? I downloaded the Perl installer from http://www.activestate.com.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

User avatar
gamnamno
Posts: 23
Joined: March 5th, 2014, 3:39 pm
Location: Rambaud, France
Contact:

Re: giffer script makes corrupted gifs

Post by gamnamno » March 13th, 2014, 9:50 am

The other Perl scripts work perfectly, but on Active State, I only found ActivePerl 5.16 which doesn't work on Golly, so I downloaded ActivePerl 5.10 on Softonic

UDiego
Posts: 2
Joined: November 1st, 2015, 1:30 pm

Re: giffer script makes corrupted gifs

Post by UDiego » November 1st, 2015, 1:40 pm

Bump, I have the same problem - I tried different versions of Strawberry Perl (5.10.1.5, 5.10.1.4 and 5.12). Anyone has a solution? Is there another easy way to generate pictures with Golly?
Last edited by UDiego on November 2nd, 2015, 1:01 pm, edited 1 time in total.

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: giffer script makes corrupted gifs

Post by Scorbie » November 1st, 2015, 7:06 pm

Here's the script translated (and added support for spaceships) in python. See if that works for you.
https://github.com/conwaylife/giffer

UDiego
Posts: 2
Joined: November 1st, 2015, 1:30 pm

Re: giffer script makes corrupted gifs

Post by UDiego » November 2nd, 2015, 1:00 pm

Thank you very much! Works perfectly with Python 2.7.

User avatar
Scorbie
Posts: 1692
Joined: December 7th, 2013, 1:05 am

Re: giffer script makes corrupted gifs

Post by Scorbie » November 10th, 2015, 6:40 pm

By the way, the original giffer.pl has a slight glitch.
The gif file should end with a semicolon(;) = chr(0x3b) while the original giffer.pl doesn't.
That's what's causing some gifs to flicker on Android, Chrome, etc.
One should edit the source code to make it append the semicolon before it closes the gif file.

Post Reply