Files
cs249r_book/tools/scripts/images
Vijay Janapa Reddi 3b37726b27 refactor(tools): reorganize scripts directory structure for better maintainability
Consolidated 21 root-level scripts into logical subdirectories:

New structure:
- images/: All image management scripts (10 files consolidated from 3 locations)
- infrastructure/: CI/CD and container scripts (3 files)
- content/: Added formatting scripts (3 files moved from root)
- testing/: All test scripts (5 files consolidated)
- glossary/: Added standardize_glossaries.py
- maintenance/: Added generate_release_notes.py, preflight.py
- utilities/: Added validation scripts

Benefits:
- Reduced root-level clutter (21 → 2 files)
- Related scripts grouped logically
- Easier to find and maintain scripts
- Follows standard project organization patterns

Changes:
- Created new subdirectories: images/, infrastructure/
- Moved scripts from root to appropriate subdirectories
- Consolidated scattered scripts (images were in 3 places)
- Updated all pre-commit hook references
- Created README files for new directories
- Included backup file for rollback if needed

Tool: tools/scripts/reorganize_scripts.py (for future reference)
2025-10-09 13:36:16 -04:00
..

Image Management Scripts

Scripts for managing, processing, and validating images in the book.

Image Processing

  • compress_images.py - Compress images to reduce file size
  • convert_svg_to_png.py - Convert SVG files to PNG format
  • remove_bg.py - Remove backgrounds from images

Image Management

  • manage_images.py - Main image management utility
  • download_external_images.py - Download external images
  • manage_external_images.py - Manage external image references
  • rename_auto_images.py - Rename automatically generated images
  • rename_downloaded_images.py - Rename downloaded images

Validation

  • validate_image_references.py - Ensure all image references are valid
  • analyze_image_sizes.py - Analyze image sizes and suggest optimizations