Tools and Tips for Making gifs
Adam Rifkin stashed this in About GIFs
If you're on windows, you can use GifCam it's very handy, little tutorial here: http://blog.bahraniapps.com/?page_id=21
For deeper editing, Gimp is really good, you can import a video inside and each frame become a layer you can edit. Then in filter/animation you have tools for fast gif editing. Then just export as a gif. (Usually try to stay under 5Mo)
Will add more tools and tips here in the future.
There are good tips and tutorials in the right sidebar of http://reddit.com/r/highqualitygifs :
For good gif-making tutorials, see the sidebars of these subreddits:
Making gifs in Photoshop?
Making gifs in After Effects? Upvote gifs?
Making cinemagraphs or looping gifs in After Effects?
Making nothing and you're bored? Looking to continue being bored?
For any other questions, feel free to post a request for help.
I use http://keepvid.com/ for when I'm downloading videos from YouTube.
as a bookmark, click it when you're on the page of a video, and it will bring you to the download page.
Since you can only download youtube videos in 720p, I record them using fraps in 1080 to get just that much better quality.
Use these settings when saving to Web:
00spool and barracuda415 explain:
From that last link, barracuda415 on gif compression:
Because they appear on the background frame only and are replaced by the transparent color on all other frames, creating larger areas made of just one color, therefore generating less entropy resulting in higher compression levels.
You can make the difference visible with gifsicle using the parameters
--disposal=bg "#0--1"(always clear the viewport after displaying a frame) and
--delete "#0"(remove first frame):
There's also a heavy flickering in both GIFs, with indicates duplicate frames caused by a framerate conversion from 24 to 50 fps. These duplicate frames don't really increase file size, since they're completely empty, but they're unnecessary overhead nonetheless.
The best way to keep quality high and reduce file size, is to reduce image size. Dropping the dither to 99% can sometimes drop file size, but you need to be careful that it doesn't make the gif fuzzy or noisy. Cropping a bit of the top or sides or just overall reducing it, is easiest. I much prefer a 480p high quality gif over a 720p gif that has an off frame rate or poor video quality.
jspeights tutorial on making high quality gifs with GIMP:
BigMurph26 recommends Lynda Photoshop tutorials:
Looking at gif-explode.com the transparencies didn't optimize well. That's to be expected with full motion video since even a pixel of jitter will be seen by the opimizer as movement. This GIF is basically full, non-transparent, frames.
I would first go for cropping this to reduce file size. Masking unless done really well can create weird ghosting effects - I stay away from it. Better to just remove the regions if you can. In this GIF, there is plenty of room to remove on theright hand side. If may have been good composition and cinematography for the film, but you're making a new context. You should feel free to focus on your action from the scene.
Secondly with cropping, I'd also remove the dark border around the footage. In this GIF, it's about 3 pixels. I do this simply because it looks better on a page, but it can save a few bytes. Here's the difference.
Whatever you do, don't sacrifice frame rate or color quality. Those are what makes a GIF high quality with far more weight than resolution. The largest of GIFs dithered to hell and staggering along is still a crappy GIF.
The problem is that Photoshop creates a global color table for the whole animation and then replaces identical pixels between two frames with transparency. That reduces the file size a bit but also creates these noisy artifacts that can't be reduced very well with the LZW algorithm that GIF uses.
ImageMagick can optimize frames before dithering and also has a fuzz distance parameter to replace pixels in a certain similarity range. That gives much larger and consistent transparent areas that compress very well. I'm also using a modified Gifsicle version for further refinement, it essentially does the same as the "lossy" parameter in Photoshop.