Image Optimization Guide for Jeffrey Dulaney Website
Current Image Sizes
- hero-banner.jpg: 917KB - Should be optimized to ~200-300KB
- author.jpg: 1.7MB - Should be optimized to ~300-500KB
- game-dev.jpg: 1.7MB - Should be optimized to ~300-500KB
- automation-bot.jpg: 1.1MB - Should be optimized to ~200-300KB
- web-dev.jpg: 1.1MB - Should be optimized to ~200-300KB
- 3d-animation.jpg: 1.1MB - Should be optimized to ~200-300KB
- mobile-dev.jpg: 897KB - Should be optimized to ~200-300KB
- software-dev.jpg: 819KB - Should be optimized to ~200-300KB
- songwriter.jpg: 817KB - Should be optimized to ~200-300KB
- jeffrey-profile.png: 23KB - Good size
- logo.png: 28KB - Good size
Recommended Optimization Steps
2. Command Line Tools
Using ImageMagick:
convert input.jpg -quality 85 -resize 1200x800 output.jpg
Using jpegoptim:
jpegoptim --max=85 input.jpg
3. Recommended Settings
- Quality: 80-85% for photos, 90-95% for logos
- Dimensions:
- Hero banner: 1920x1080px max
- Service cards: 800x600px max
- Profile images: 600x600px max
- Format: Use WebP for modern browsers, JPEG fallback
Implementation Steps
- Optimize all images using one of the tools above
- Replace the original images with optimized versions
- Test the website to ensure images still look good
- Consider implementing lazy loading for better performance
Lazy Loading Implementation
Add loading="lazy"
to images that are below the fold:
<img src="images/service-image.jpg" alt="Service" loading="lazy">
Expected Performance Improvement
After optimization, you should see:
- 50-70% reduction in image file sizes
- Faster page load times
- Better user experience, especially on mobile
- Improved SEO scores
This guide will help you optimize the website's performance by reducing image file sizes while maintaining quality.