Anything that comes out of a camera is going to be best suited as a JPG, which allows for the largest color palette size and has great compression.
- Export as a JPG.
- Make the width 2X the resolution you plan to use it at.
- Optimize using ImageOptim to get rid of meta data you don't need.
With a limited color palette and typically needing transparency, PNG is going to be your method of choice here.
- Export as a PNG.
- Optimze using ImageAlpha to knock out the background.
- Optimize using ImageOptim to get rid of meta data you don't need.
The most flexible of assets, vector icons can change size and color at any moment. SVG is a format with mathmatical notation to recreate the vector at any size or color.
- Export as an SVG.
- Optimize with SVGO.
The GIF format is very limited with color palette and should typically be avoided due to it's enormous file size. However it is universal, follow this if you don't have another choice.
- Use Screenflow to capture.
- Trim the video down as much as possible.
- Crop the screen to just the area you need.
- Export as an MP4 with "For web" settings.
- Optimze with Gifski to make a GIF.