Feature Request: Convert to GIF?


#1

Can you add the functionality to convert files to GIF as well? PNG is there, but I could not find GIF.
Reason is that I still sometimes use GIF instead of PNG when I need transparency. Or is this not a good idea (to use GIF instead of PNG8)?


#2

I’ll look into it as a save format. It’s relatively easy to add, but there’s no good control over the color palette to use…


#3

I seem to remember that Photoshop does it as a ‘web export’

and you can adjust the layers as a continuous animation or once through… as well as how fast to play each layer


#4

Saving to gif, and saving to animated gif are two different things as far as RB is concerned. Animated gifs are on the todo list for sure.


#5

The latest 1.1 beta build has support for writing gifs. You can grab it here:
http://flyingmeat.com/download/latest/#retrobatch


#6

If you need transparency then .png is the answer.

If you need animation then (I gather) .gif is the answer.


#7

Don’t forget about apng! :slight_smile:


#8

Hi @ccgus,

When will the animated GIF format be available?

TIA


Cary


#9

@carycrusiau Animated gifs are ready as of now. It’s a beta feature in the latest 1.2 build, which you can grab from here: http://flyingmeat.com/download/latest/#retrobatch

There’s no docs on it yet, and there’s probably still bugs, and I want to add animated PNG support to it as well. But give it a whirl and then provide some feedback!

-gus


#10

@ccgus Thanks for this! Looks promising. Unfortunately, I can’t get this to work.

I select a few JPGs images (900 x 636), create the Animated Image as GIF 1 FPS then Write Images as GIF. The resulting GIF is a 900 x 1 file without frames:

What am I doing wrong?


#11

Well that’s no good. I just made a new build with some changes (#686). Can you grab it and let me know how it works for you this time? http://flyingmeat.com/download/latest/#retrobatch

Also, what version of MacOS are you running?


#12

Actually, 688 is the latest version now. Looks like the gif wasn’t being made correctly on 10.12.


#13

Hi @ccgus,

Still no luck! :disappointed_relieved:

I downloaded the last version (691).

If I use “Read Folder” or “Read Individual Files”, the resulting GIF is still 1 pixel high and without animation.

If I use “Prompt for Files”, the image size is correct but the generated GIF still has only one frame.

FYI, I’m running 10.14.1 (18B75)


#14

Well I’m stumped. Does anything print out in Console.app from Retrobatch when you run the workflow?


#15

Sorry for my late reply. I was on vacation during the last few days. I tested again with the very last version (692). The generated GIF still has only one frame. I see nothing special in Console.app. Could you send me a .retrobatch file with a working “Animated Image” workflow that I could test on my side?


#16

Here’s a link to a sample workflow, including images and the result I get when running it:
https://flyingmeat.com/retrobatch/stuff/sampleanimatedgif.zip


#17

Apparently, the .retrobatch file I was working on from the beginning was corrupted. I just started from scratch. I created a new blank file and recreated the whole workflow. It seems to work now. Thanks again for your help!


#18

Can you send me the problematic Retrobatch file? I’d like to see if I can figure out what’s going on with it, and if there are any changes to Retrobatch to make it handle it better.


#19

animated_gif.retrobatch (4.8 KB)


#20

I found the problem! The Retrobatch file wasn’t corrupt, rather there is a bug in the 1.2 betas where if you use the animated gif node, combined with setting the Convert to: option in the Write node, will remove the animation from the GIF. I’ll get that fixed in the next update.