Xah Talk Show 2026-06-19 Ep795. emacs lisp. add width height to image thumbnails html. part 2
- emacs lisp. add width height to all thumbnails
- Elisp: get image width height 📜
- Emacs bug, Elisp Get Image Width Height. 2024-11
- Python: get image width height 📜
- Golang: get image width height 📜
- Powershell: get image width height 📜
Video Summary (Generated by AI, Edited by Human.)
In this technical coding session, Xah Lee demonstrates how he updates his massive collection of approximately 10,000 HTML files to include width and height attributes for image thumbnails. This process is intended to prevent cumulative layout shift (CLS), improving webpage stability and performance (0:00-1:55).
Key highlights from the session include:
- Coding Process: Xah works on updating his icon-linkify Emacs Lisp command (7:12).
- He shows several emacs wrappers for commands that get image dimensions across different operating systems—specifically comparing macOS (sips command), Linux (file utility), Windows (PowerShell), and ImageMagick (20:18-28:00).
- emacs bug: He tells the story of emacs bug when calculating image sizes natively for certain formats like PNGs (23:36) and discusses the potential for using Python or Go to handle these calculations more reliably (27:15).
- Automation: To process his thousands of files, he experiments with keyboard macros in Emacs (43:07) but ultimately concludes that a custom Emacs Lisp script is necessary to automate the bulk update efficiently (56:17).
- Rants and Tangents: Throughout the session, he critiques the bloat of modern software tools like ImageMagick (21:28) and takes time to explain computer architecture, specifically the speed differences between L1 cache, RAM, and flash storage/spinning disks (57:27-1:01:36).
emacs lisp. add width height to html image thumbnail markup
- Xah Talk Show 2026-05-28 Ep787. emacs. add width height to all thumbnails. Cumulative Layout Shift
- Xah Talk Show 2026-06-19 Ep795. emacs lisp. add width height to image thumbnails html. part 2
- Xah Talk Show 2026-06-21 Ep796. emacs lisp. add width height to image thumbnails html. part 3
- emacs lisp, add width to image thumbnails (2026-06)