optimize-images
Optimize Images
Optimize images in the specified directory for web delivery.
Arguments
$ARGUMENTS- Directory path containing images to optimize (default:./public/images)
Process
- Find all images:
find ${ARGUMENTS:-./public/images} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" \) - For each image, generate:
- WebP versions at 320w, 640w, 1280w, 1920w, 2560w
- Thumbnail at 150x150, 300x300
- Blur placeholder (10px width, base64)
More from forever-efficient/pitfal-solutions-website
gallery-manage
Organize, validate, and manage photo/video galleries. Create gallery structures, validate image files, and prepare content for upload.
35logs
View recent CloudWatch logs for Lambda functions and API Gateway.
30stripe-setup
Set up Stripe products, prices, and webhooks for Pitfal Solutions photography packages. Creates products for portrait sessions, event coverage, digital downloads, and prints. Use when configuring payment processing.
30deploy
Deploy the Pitfal Solutions website to AWS. Use when user says deploy, push to production, or update live site. Runs pre-checks, builds Next.js, deploys Terraform infrastructure, syncs to S3, and invalidates CloudFront cache.
29db-seed
Seed the DynamoDB database with sample data for development and testing. Populates galleries, inquiries, and admin tables. Use when setting up local dev environment or resetting test data. WARNING - never run in production.
29preview
Start local development server for previewing the site.
28