Image & video 5
Image and video generation that stays consistent: references, prompts and settings.
- Check AI-written image alt text with a rule script
Extract img alt values with Python, flag missing, empty-in-link, file-name, "image of" and overlong ones, then have AI rewrite only those using the nearby text.
Claude Sonnet (sonnet alias) · Claude Code · Python 3.12 · Ubuntu 24.04 · 2026-10 · W3C WAI images tutorial - Compare ImageMagick -filter Quality When Shrinking Images
Shrink a PNG with ImageMagick -filter Point, Triangle, Mitchell, Catrom and Lanczos, then compare file size, PSNR, edge ringing and 2x enlargement.
Ubuntu 24.04.5 · ImageMagick 6.9.12-98 Q16 - Shrink AI Video and GIFs to Web MP4 with ffmpeg crf
Measure libx264 size per ffmpeg crf value, make the MP4 start playing early with faststart, and fix "width not divisible by 2" when converting a GIF to MP4.
Ubuntu 24.04 · ffmpeg 7.0.2 (static build, libx264) · synthetic GIF made with Pillow - Shrink an AI-generated PNG to WebP and check its metadata
Convert a 1024×1024 PNG with cwebp at several quality values, measure the sizes, then see whether the prompt, EXIF, XMP and C2PA data survive.
Ubuntu 24.04.5 · cwebp 1.3.2 · Pillow 13.0.0 · ExifTool 12.76 · C2PA spec 2.2 - Maintain a consistent character across AI image generations
Generate consistent character images across multiple scenes using fixed descriptive prompts, Midjourney reference parameters, and Diffusers LoRA finetuning.
Midjourney v6 · Hugging Face Diffusers