AI Label Marker
Because of EU Regulations AI Labels are mandatory. This is a Wordpress Plugin to make it easy for you.
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/axlek/ai-label-marker/archive/refs/heads/main.zipReadme
AI Label Marker
A WordPress plugin for labeling AI-generated or AI-modified images in the Media Library.
Features
- EU-compliant AI labels: AI, AI Generated, AI Modified (according to the EU Digital Strategy)
- 4 Variants: Light, Dark, Light (transparent), Dark (transparent)
- Live Preview: Adjust position, size, opacity, and rotation
- Original Preservation: The original image is kept for easy rollback
- Automatic Replacement: Wherever the image is displayed (featured image, posts, pages, etc.), the labeled version is shown automatically
- Rollback: Remove the label and restore the original image with a single click
- Media Library Integration: Adds a dedicated "AI Labeling" section under Media in the WordPress admin
Installation
- Copy the plugin folder to
/wp-content/plugins/ai-label-marker/ - Activate the plugin in the WordPress Admin under Plugins
- Go to Media → AI Labeling to label your images
Requirements
- WordPress 5.8+
- PHP 7.4+
- GD Library (Imagick is recommended for improved SVG rendering)
Label Types
| Type | Description | Use Case |
|---|---|---|
| AI | Compact "AI" logo | Quick labeling |
| AI Generated | "AI GENERATED" banner | Fully AI-generated images |
| AI Modified | "AI MODIFIED" banner | AI-edited or AI-enhanced images |
Database
Creates a table named {prefix}_ai_label_markers containing:
- attachment_id, label_type, label_variant
- position_x, position_y, size_percent, opacity, rotation
- marked_file, original_file (backup path)
File Structure
ai-label-marker/
├── ai-label-marker.php # Main plugin file
├── includes/
│ ├── class-ailm-db.php # Database operations
│ ├── class-ailm-marker.php # Image processing (GD/Imagick)
│ ├── class-ailm-admin.php # Admin page + AJAX
│ └── class-ailm-media.php # Frontend filters (image replacement)
├── assets/
│ ├── svg/ # EU AI labels (12 SVG files)
│ ├── css/admin.css # Admin styles
│ └── js/admin.js # Admin JavaScript (preview, AJAX)
└── README.md