Working with Images and Media
Images make your site visually appealing and help tell your story. Here's how to use them effectively.
The Media Library
Framekit includes a built-in Media Library where all your uploaded images are stored and organized.
Accessing the Media Library
When adding or changing an image in any component, you'll see the Media Library modal with these tabs:
- Gallery: View all your previously uploaded images (default tab)
- Upload: Drag and drop or select files from your computer
- Link: Add images from external URLs
- Stock Images: Search millions of free Unsplash photos
Uploading Images
Method 1: Drag and DropUsing Stock Images (Unsplash)
Access millions of free, high-quality photos:
All stock images are sourced from Unsplash and are free for commercial use.
From Components
Many AI-generated components include image placeholders:
Supported Formats
- JPEG/JPG - Best for photographs
- PNG - Best for graphics with transparency
- GIF - Animated images (including animated GIFs)
- WebP - Modern, optimized format
- SVG - Scalable vector graphics
- AVIF - Next-gen format (browser support varies)
Image Optimization
Why Optimize?
- Faster page load times
- Better user experience
- Improved SEO
- Lower bandwidth usage
Best Practices
- Resize images before uploading (don't upload huge files)
- Use JPEG for photos, PNG for graphics
- Aim for under 500KB per image
- Use WebP when possible
Recommended Sizes
- Hero backgrounds: 1920x1080 pixels
- Content images: 800-1200 pixels wide
- Thumbnails: 300-400 pixels
- Icons: 64-128 pixels
Image Placement
Full-Width Images
Use for:
- Hero backgrounds
- Section dividers
- Impactful visuals
Inline Images
Use for:
- Content illustrations
- Product photos
- Team member photos
Background Images
Use for:
- Section backgrounds
- Decorative elements
- Subtle textures
Alt Text
What is Alt Text?
Alternative text describes images for:
- Screen readers (accessibility)
- When images don't load
- Search engines (SEO)
Writing Good Alt Text
- Be descriptive but concise
- Describe what's in the image
- Include relevant keywords naturally
- Don't say "image of" or "photo of"
Image Issues
Image Not Displaying
- Check the file format is supported
- Ensure the file isn't corrupted
- Try re-uploading
Image Too Large/Small
- Resize before uploading
- Use image editing in the component
- Check responsive preview
Slow Loading
- Optimize file size
- Use appropriate formats
- Consider image compression tools
Site Icon (Favicon)
Your site icon appears in:
- Browser tabs
- Bookmarks
- Mobile home screens
Setting Your Site Icon
Open Graph Images
For social media sharing:
This image appears when your site is shared on social media platforms.