🖼️ Image SEO Guide
Optimize your images for search engines and performance
Alt Text
Descriptive text that explains what an image shows for accessibility and SEO.
File Naming
Use descriptive, keyword-rich file names separated by hyphens.
Compression
Reduce file size while maintaining visual quality for faster loading.
Dimensions
Serve appropriately sized images for different screen sizes.
📝 Alt Text Best Practices
Empty alt text provides no context for screen readers or search engines. Missing opportunity for keyword optimization.
Basic but not descriptive. Doesn't specify what kind of mushroom or provide useful context for the user.
Descriptive, includes species name, describes key visual features, and naturally incorporates relevant keywords.
Decorative images that add no content value should have empty alt text and role="presentation" to be ignored by screen readers.
📁 File Naming Conventions
❌ Avoid These Names
IMG_2847.jpgCamera defaultphoto1.pngGeneric namingScreen Shot 2024-01-15.pngScreenshot defaultimage(1).jpgDownload duplicatesmushroom_photo_final_v2.jpgInternal versioningDSC0001.jpgDSLR default
✅ Use These Instead
golden-teacher-mushroom.jpgDescriptive with hyphenspsilocybin-dosage-chart.pngContent descriptionmicrodosing-calendar-template.jpgPurpose-drivenmushroom-identification-guide.webpTopic-focusedlion-mane-supplement-capsules.jpgProduct descriptionsafe-set-setting-infographic.pngContent type included
📊 Image Format Comparison
| Format | Best For | Compression | Transparency | Browser Support |
|---|---|---|---|---|
| WebP | All images (photos, graphics) | Excellent | ✅ Yes | 96% |
| AVIF | High-quality photos | Best | ✅ Yes | 85% |
| JPEG | Photos, fallback | Good | ❌ No | 100% |
| PNG | Graphics, logos, transparency | Moderate | ✅ Yes | 100% |
| SVG | Icons, logos, illustrations | Scalable | ✅ Yes | 100% |
| GIF | Simple animations | Poor | ⚠️ Limited | 100% |
📦 Compression Strategies
🔧 Lossy Compression
- Best for photographs
- Quality 80-85% usually optimal
- Can reduce file size by 70-90%
- Use JPEG, WebP, or AVIF
- Check for visible artifacts
🎯 Lossless Compression
- Best for graphics/logos
- Maintains perfect quality
- Typically 10-30% size reduction
- Use PNG or WebP lossless
- Good for images with text
📐 Responsive Images
- Create multiple sizes (srcset)
- Small: 480px, Medium: 768px, Large: 1200px
- Use sizes attribute for hints
- Let browser choose best size
- Reduces bandwidth on mobile
⚡ Automation
- Use build tools (Gulp, Webpack)
- Integrate with CMS upload
- CDN image optimization
- Cloudinary, Imgix, or similar
- Automate format conversion
📏 Recommended Image Sizes
Hero Images
Content Images
Thumbnails
Social Share
File Size Target
⏳ Lazy Loading Implementation
<!-- Native lazy loading (recommended) --> <img src="mushroom-guide.jpg" alt="Complete mushroom identification guide" loading="lazy" width="800" height="600" > <!-- Responsive images with lazy loading --> <img srcset="mushroom-400.jpg 400w, mushroom-800.jpg 800w, mushroom-1200.jpg 1200w" sizes="(max-width: 600px) 400px, (max-width: 900px) 800px, 1200px" src="mushroom-800.jpg" alt="Psilocybe cubensis mushroom cluster" loading="lazy" decoding="async" >
Faster Initial Load
Only loads visible images first, improving LCP
Reduced Bandwidth
Images only load when user scrolls to them
Better Performance
Less strain on device resources and memory
Native Support
No JavaScript required with loading="lazy"
🔗 Image Structured Data
{
"@context": "https://schema.org",
"@type": "ImageObject",
"contentUrl": "https://psilobase.com/images/golden-teacher.jpg",
"name": "Golden Teacher Psilocybe cubensis",
"description": "Mature Golden Teacher mushroom with distinctive golden cap",
"width": "1200",
"height": "800",
"encodingFormat": "image/webp",
"author": {
"@type": "Organization",
"name": "Psilobase"
},
"license": "https://creativecommons.org/licenses/by/4.0/"
}
🔧 Image Optimization Tools
✅ Image SEO Checklist
📝 Content & Accessibility
- Descriptive alt text for all images
- Empty alt for decorative images
- Keywords used naturally
- Context matches page content
📁 Technical Setup
- Descriptive file names
- Width/height attributes set
- WebP format with fallbacks
- Responsive srcset configured
⚡ Performance
- Images compressed
- Lazy loading enabled
- CDN configured
- File size under 100KB