Extended the image optimization script to process both project and blog post images: - Added constants for posts input/output directories - Refactored processImage to accept output directory parameter - Updated processDirectory to handle multiple content types - Main function now processes both projects and posts directories - Gracefully handles missing directories with informative messages