Video and email have never had an easy relationship.
A dealership may have a short MP4 that works on social media or a landing page, but inserting that file into an email campaign is unreliable across clients. An animated GIF is less sophisticated, yet it remains a practical common denominator for short motion assets.
The difficult part is keeping it small enough to send.
Conversion Is More Than Changing The Extension
Naive GIF conversion produces enormous files with poor color. GIF has a limited palette, and video contains far more temporal and color information than the format was designed to hold.
I added a staged conversion to the BDC image tool:
- Scale the video and reduce its frame rate.
- Analyze the source to generate an optimized color palette.
- Render the animation using that palette.
- Apply lossy GIF optimization.
FFmpeg handles the palette and rendering stages. Gifsicle performs the final compression and frame optimization.
Defaults Encode The Delivery Constraint
The working defaults cap width at 600 pixels and reduce motion to 15 frames per second. The lossy compression setting deliberately trades imperceptible or acceptable detail for a substantial reduction in output size.
Those values are not cinema settings. They are email settings.
The source MP4 remains available as the higher-quality original. The GIF is a delivery derivative created for one constrained channel.
The Interface Hides The Toolchain
The campaign operator does not need to understand palette generation.
They upload or drag in an MP4, preview it, start conversion, inspect the result, and then move the approved animation into the asset library used by the template builder.
Behind that simple path, the application validates the media type, limits upload size, verifies that the required binaries exist, cleans temporary files, and reports output dimensions and size.
That is the appropriate boundary for an internal tool. The operator controls the creative decision while the application contains the command-line complexity.
Use The Format For What It Is Good At
Animated GIF is a poor replacement for general video. It has limited color, no audio, and inefficient compression compared with modern codecs.
For a short loop inside a marketing email, those shortcomings may be acceptable. Compatibility and ease of placement matter more than perfect reproduction.
The engineering goal was not to modernize GIF. It was to turn an existing dealer asset into a predictable email component without sending the campaign operator through a manual media-production workflow.