udaan.utils.resize_gif module¶
Resize GIF files — reduce resolution and frame count for README/docs.
- Usage:
python -m udaan.utils.resize_gif .media/quadrotor.gif –width 480 –max-frames 50 python -m udaan.utils.resize_gif .media/*.gif –width 480 –fps 15
- udaan.utils.resize_gif.resize_gif(path, width=480, max_frames=50, fps=15, output=None)[source]¶
Resize a GIF file.
- Parameters:
path – input GIF path.
width – target width in pixels (height scales proportionally).
max_frames – maximum number of frames to keep.
fps – output frame rate.
output – output path (defaults to overwriting input).