Introduction
Omni Image Optimizer is a powerful WordPress plugin designed to enhance your website's image management and SEO. It automatically renames uploaded images using your site name, converts images to WebP format, optimizes image dimensions, and generates SEO-friendly ALT text and metadata using OpenAI Vision API.
Key Features
- Automatic image renaming with customizable patterns
- WebP conversion for faster loading times
- Image dimension optimization
- Text watermarking with customizable position and opacity
- AI-powered ALT text generation using OpenAI Vision API
- Automatic image metadata filling (title, caption, description)
- Bulk processing for existing images
Installation
Installation Steps
- Download the Omni Image Optimizer plugin ZIP file.
- Log in to your WordPress admin panel.
- Navigate to
Plugins → Add New → Upload Plugin
. - Click "Choose File" and select the downloaded ZIP file.
- Click "Install Now" and wait for the installation to complete.
- Click "Activate Plugin" to activate Omni Image Optimizer.
After activation, you'll find the Omni Image Optimizer settings under Media → Image Optimizer
in your WordPress admin menu.
General Settings
The General Settings section allows you to enable or disable the plugin functionality.
Enable Image Optimizer
Toggle this option to enable or disable the plugin. When disabled, images will be uploaded normally without any modifications.
File Naming Settings
Control how your uploaded images are renamed.
File Naming Pattern
Choose a pattern for renaming uploaded images. Available options:
- Site Name - Original Filename: Prepends your site name to the original filename.
- Site Name - Random String: Uses your site name followed by a random string.
- Site Name - Date - Original Filename: Includes the site name, current date, and original filename.
- Original Filename (No Change): Keeps the original filename without modifications.
Special characters in the site name will be removed, and spaces will be replaced with hyphens in the filename.
Image Optimization Settings
Configure how images are optimized during upload.
Convert to WebP
Toggle this option to automatically convert uploaded images to WebP format. WebP provides superior compression and quality characteristics compared to JPEG and PNG formats, resulting in smaller file sizes and faster loading times.
Maximum Dimensions
Set the maximum width and height for uploaded images:
- Maximum Width (px): Images wider than this value will be resized while maintaining the aspect ratio.
- Maximum Height (px): Images taller than this value will be resized while maintaining the aspect ratio.
Leave empty or set to 0 to keep the original dimensions.
Quality Settings
- JPEG Quality: Set the quality level for JPEG images (1-100). Higher values result in better image quality but larger file sizes.
- WebP Quality: Set the quality level for WebP images (1-100). Higher values result in better image quality but larger file sizes.
The recommended value is 80-90 for a good balance between quality and file size.
Watermark Settings
Configure text watermarks for your images.
Watermark Options
- Enable Watermark: Toggle this option to add a text watermark to uploaded images.
- Watermark Text: Enter the text to use as a watermark. This could be your website name, copyright information, or any other text.
- Watermark Position: Choose where to place the watermark on the image (Top Left, Top Center, Top Right, etc.).
- Watermark Opacity: Set the opacity level for the watermark (0-100). Lower values make the watermark more transparent.
The plugin will attempt to use TrueType fonts (TTF) for better-looking watermarks. If no TTF fonts are found on the server, it will fall back to the built-in font.
AI Settings
Configure the OpenAI integration for automatic ALT text and metadata generation.
API Configuration
- OpenAI API Key: Enter your OpenAI API key to enable AI features.
- Enable AI Features: Toggle this option to enable or disable AI-powered features.
ALT Text Generation
Choose how ALT text should be generated:
- Description Only: Uses only the AI-generated description.
- Keywords + Description: Combines keywords and description.
- Custom Pattern: Uses a custom pattern defined below.
For custom patterns, you can use the following placeholders:
{description}
: AI-generated description of the image{keywords}
: AI-generated keywords for the image{site_name}
: Your website name
Metadata Options
- Auto-fill Image Title: Automatically fill the image title using AI-generated content.
- Auto-fill Image Caption: Automatically fill the image caption using AI-generated content.
- Auto-fill Image Description: Automatically fill the image description using AI-generated content.
- Keywords: Enter optional keywords to guide the AI in generating more relevant descriptions.
Using the OpenAI API will incur costs based on your OpenAI account. Please check the OpenAI pricing page for current rates.
Bulk Processing
The Bulk Processing feature allows you to apply image optimization and AI metadata generation to existing images in your media library.
Process Images
Choose which images to process:
- Only images without ALT text: Process only images that don't have ALT text.
- All images (overwrite existing): Process all images, overwriting any existing ALT text and metadata.
- Recent images: Process images uploaded within a selected time period.
Processing Options
- Time Period Selection: When "Recent images" is selected, choose from various time periods (Last 7 days, Last 14 days, etc.).
- Batch Size: Choose how many images to process in each batch (1, 3, or 5 images per batch).
Bulk Processing Steps
- Select your desired filter (images without ALT text, all images, or recent images).
- The plugin will automatically check how many images match your criteria.
- Click "Start Processing" to begin the bulk operation.
- Monitor the progress in the log section.
- You can stop the processing at any time by clicking "Stop Processing".
Bulk processing is performed via AJAX in the background, allowing you to navigate away from the page without interrupting the process.
Frequently Asked Questions
Does this plugin modify my original images?
Yes, the plugin modifies uploaded images according to your settings. It's recommended to keep backups of your original images if needed.
Will converting to WebP affect browser compatibility?
WebP is supported by all modern browsers. For older browsers that don't support WebP, WordPress will automatically serve the original format.
How much does the OpenAI integration cost?
The cost depends on your usage and OpenAI's current pricing. The plugin uses the Vision API, which is charged based on the number of API calls and tokens used.
Can I use this plugin without the OpenAI features?
Yes, you can use the image optimization, renaming, and watermarking features without enabling the AI features.
Will the plugin affect my existing images?
No, the plugin only affects newly uploaded images unless you specifically use the Bulk Processing feature to modify existing images.
Troubleshooting
Images are not being optimized
- Make sure the "Enable Image Optimizer" option is turned on.
- Check if your server has the GD library installed and enabled.
- Verify that WordPress has write permissions to the uploads directory.
Watermark is not appearing
- Ensure the "Enable Watermark" option is turned on.
- Try increasing the opacity if the watermark is too transparent.
- Check if your server has TTF font support or try a different position.
AI features are not working
- Verify that you've entered a valid OpenAI API key.
- Make sure the "Enable AI Features" option is turned on.
- Check if your OpenAI account has sufficient credits.
- Ensure your server can make outbound HTTP requests to the OpenAI API.
Bulk processing stops or shows errors
- Try reducing the batch size to 1 image per batch.
- Check your browser console for JavaScript errors.
- Verify that your server's PHP timeout settings are sufficient for processing large images.
- Check if you're hitting OpenAI API rate limits.
For additional support, please contact info@templines.com or visit Templines Support forum.