Media
Learn how to automate screenshot and favicon generation for your listings
Dirstarter integrates with ScreenshotOne to automatically generate and manage screenshots for your directory listings. We also automatically fetch favicons for your listings using Google's favicon API.
This integration helps automate media generation and ensures consistent visual representation across your directory.
Screenshots
ScreenshotOne is a powerful API service that supercharges your directory website with automated media capabilities:
- Generate high-quality screenshots of any website
- Real-time preview generation for new listings
- Consistent image quality and dimensions
- Reduces manual work for directory owners
- Directly uploads to S3 storage
Setup
Create a ScreenshotOne account, navigate to the API Keys page and add your credentials to your .env
file:
Media Service Implementation
The screenshot generation is handled through a dedicated media service. Here's the implementation:
For information on the available options, refer to the ScreenshotOne Docs.
Usage in Components
Here's how to use the screenshot generation in your components:
Favicons
In addition to screenshots, Dirstarter automatically generates favicons for your directory listings using Google's favicon service:
Key features of the favicon generation:
- Uses Google's reliable favicon service
- Fetches high-quality 128x128px icons
- Automatically cleans and encodes URLs
- Handles errors gracefully
- Uploads to S3 with cache busting
Last updated on