I'm learning how to make gifs. Thread contains Goku
proof of concept

proof of concept

waiting for the day the whole world fucking dies
@Parallax Skull
I finally snagged the source mp4 you sent me. I want to know more about how you choose your color palette. I have some ideas for optimizations, and the general goal is to allow for more colors in the same file size, but I figure that the colors I start with should be somewhat close to the ones you pared down to instead of just putting up with photoshop's automatically selected ones.

I found a decent way to get solid colors to come out better, something i was trying to figure out earlier this page.

Before


After


It takes some manual work to modify the palette but it's not that hard. I can sort the palette by popularity, delete the least used colors, and eyedropper some solid colored areas from the source video.
Clarification on these two things or some screenshots would be helpful.

Also you mentioned in the thread you start your edits with 720p source videos, but the .mp4 you sent me is already reduced to 540x304. Are you reducing the frame size in premier before exporting to photoshop? If so what interpolation method are you using? There are different ways to choose how to color pixels when reducing an image and what you use can have an impact on things like weird noise showing up in areas that should be one solid color.

letting photoshop set pixels on subsequent frames to transparent when aren't exactly the same color values as long as they're still pretty close
Is there something I can look up to get started on this one?
turns out this is a thing in gimp and I was misremembering it as being in photoshop. It's like the one thing that's easier to do in gimp than photoshop, which probably means either I just don't know how to do it in photoshop, or photoshop takes care of it automatically in a way smarter way than gimp does because gimp sucks nuts. I was badly mixing up what ps/gimp/ezgif can each respectively do before I went and made my edit to your other gif which is why some of the stuff I was talking about a few weeks ago might not have made much sense.
 
  • 1
Parallax Skull

Parallax Skull

@Parallax Skull
I finally snagged the source mp4 you sent me. I want to know more about how you choose your color palette. I have some ideas for optimizations, and the general goal is to allow for more colors in the same file size, but I figure that the colors I start with should be somewhat close to the ones you pared down to instead of just putting up with photoshop's automatically selected ones.

Clarification on these two things or some screenshots would be helpful.

Also you mentioned in the thread you start your edits with 720p source videos, but the .mp4 you sent me is already reduced to 540x304. Are you reducing the frame size in premier before exporting to photoshop? If so what interpolation method are you using? There are different ways to choose how to color pixels when reducing an image and what you use can have an impact on things like weird noise showing up in areas that should be one solid color.
Yeah I export the video from Premiere in the final resolution the gif will be unless I plan on cropping it in Photoshop. IDK what interpolation I'm using other than "default." When I have some spare time I'll answer the above in more detail.

letting photoshop set pixels on subsequent frames to transparent when aren't exactly the same color values as long as they're still pretty close
Is there something I can look up to get started on this one?
turns out this is a thing in gimp and I was misremembering it as being in photoshop. It's like the one thing that's easier to do in gimp than photoshop, which probably means either I just don't know how to do it in photoshop, or photoshop takes care of it automatically in a way smarter way than gimp does because gimp sucks nuts. I was badly mixing up what ps/gimp/ezgif can each respectively do before I went and made my edit to your other gif which is why some of the stuff I was talking about a few weeks ago might not have made much sense.
Photoshop's gif export is a "legacy" feature, meaning they haven't taken it out of Photoshop, but they also no longer support or update it. Maybe Gimp's useful for something after all? I'm curious now.
 
Parallax Skull

Parallax Skull

Anyway, since Dragon Ball has ended, let's go back to how it started.

256 colors, tiny amount of lossy gif compression, customized palette of course

 
  • 1
Parallax Skull

Parallax Skull

@Parallax SkullAlso you mentioned in the thread you start your edits with 720p source videos, but the .mp4 you sent me is already reduced to 540x304. Are you reducing the frame size in premier before exporting to photoshop? If so what interpolation method are you using? There are different ways to choose how to color pixels when reducing an image and what you use can have an impact on things like weird noise showing up in areas that should be one solid color.
This is the settings I have in Premiere right before I click Export.

 
  • 1
Parallax Skull

Parallax Skull

Streamable made it all blurry but I think you can see what I'm doing when I pick colors. The color table on the right is sorted by popularity, so I delete the bottom-right color and replace it with a color I picked from the source video.


High res screenshot so you can actually see the settings I'm using.

 
  • 1
Parallax Skull

Parallax Skull

Final palette. Colors with a box in the bottom right corner were manually chosen. Colors are still sorted by popularity.



Check the file size in the bottom left - I did what I needed to do to get it under 3 MB.
 
  • 1
proof of concept

proof of concept

waiting for the day the whole world fucking dies
I can't find a straight answer on how premier does downsizing
 
Parallax Skull

Parallax Skull

I can't find a straight answer on how premier does downsizing
i could output 720p and then scale it down in photoshop, but that sounds like it would be worse.
 
proof of concept

proof of concept

waiting for the day the whole world fucking dies
if you like the way the results look then it's not really important, I'm just curious is all
 
Parallax Skull

Parallax Skull

if you like the way the results look then it's not really important, I'm just curious is all
Well I'll do anything and everything to bring the file size down. I've come up with some good techniques, but the stuff you've discussed about background noise makes me think there's more I can squeeze out of this shitty algorithm.