Deflato fuer WordPress

Komprimiert automatisch jedes Bild. Bis zu 90% kleiner ohne Qualitaetsverlust.

Plugin herunterladen (v1.0.0)
43 KB · WordPress 5.8+ · PHP 7.4+ · GPLv2 · Requires WordPress 5.8+ · PHP 7.4+ · GPLv2

Auto-Komprimierung

Jedes Bild wird automatisch optimiert. Gutenberg, Elementor, Divi kompatibel.

📦

Massenoptimierung

Komprimiere die gesamte Mediathek mit einem Klick.

🎨

WebP und AVIF

Next-Gen-Formate oder Originalformat beibehalten.

📊

Statistiken

Einsparungen pro Bild in der Mediathek sehen.

🔄

Backup und Wiederherstellung

Originale werden gesichert. Mit einem Klick wiederherstellen.

🔒

Thumbnails auch

Alle Thumbnail-Groessen komprimieren. Jedes = 1 API-Anfrage.

Lazy Loading

Natives loading=lazy fuer Bilder ausserhalb des Bildschirms.

🌐

<picture> Tags

Umschliesst Bilder mit picture und WebP/AVIF-Quellen.

🧠

Smart PNG → JPEG UNIQUE

Erkennt PNG ohne Transparenz, konvertiert zu JPEG. 70% Extra. Einzigartig.

💻

WP-CLI Commands

wp deflato optimize, stats, restore. Terminal.

🎁

Kostenlose Testversion

20 API-Anfragen gratis. Keine Karte noetig.

🤖

AI Bildgenerator NEW

Bilder aus Text generieren. 4 AI-Modelle, 15 Stile. Einzigartig.

Installation

1

Herunterladen und installieren

Download the ZIP above. In WordPress, go to <strong>Plugins → Add New → Upload Plugin</strong> and select the ZIP file.

2

API-Schluessel

Create an account at deflato.com, upgrade to Pro ($7 one-time), and copy your API key.

3

Konfigurieren

Go to <strong>Settings → Deflato</strong>, paste your API key, adjust quality and format preferences. Done!

4

Optimieren

New uploads are compressed automatically. For existing images, go to <strong>Media → Deflato Bulk</strong> and click "Optimize All".

Warum Deflato?

Funktion ShortPixel Imagify Smush Pro Deflato
Auto-compress on upload
Massenoptimierung
WebP-Konvertierung
AVIF conversion
Backup
Preismodell $3.99/mo $7.99/mo $10/mo einmalig
PayPal-Konto noetig Nein
Dokumente (PDF, DOCX)
Lazy Loading
Picture-Tags
Smart PNG → JPEG
WP-CLI
AI Bildgenerator 4 models
Kostenlos testen

Haeufige Fragen

Ist das ein Abo?

Nein. Einmalzahlung $7 fuer 30 Tage. Keine automatische Verlaengerung.

Wie viele Bilder pro Tag?

Pro: 500/Tag. Bild + Thumbnails = mehrere Anfragen.

Bestehende Bilder?

Use the Bulk Optimize page (Media → Deflato Bulk) to compress all existing images. Progress tracking and error handling included.

Zurueck zu Originalen?

Yes. With "Backup Originals" enabled (default), every original is saved. Click "Restore" in the Media Library to get it back.

Funktioniert mit meinem Theme?

Yes. Deflato hooks into WordPress core media handling, so it works with any theme, Gutenberg, Elementor, Divi, WPBakery, and more.

Sind Bilder sicher?

Dateien per HTTPS gesendet, komprimiert und sofort geloescht.

Dokumentation

Settings Reference

<strong>Settings → Deflato</strong> — all plugin options:

  • <strong>API Key</strong> — your Deflato API key.
  • <strong>Compression Mode</strong> — three presets.
  • <strong>Output Format</strong> — Keep Original, JPEG, PNG, WebP, or AVIF.
  • <strong>Max Dimension</strong> — resize images larger than this.
  • <strong>Strip EXIF</strong> — removes metadata.
  • <strong>Compress Thumbnails</strong> — optimizes all thumbnail sizes.
  • <strong>Backup Originals</strong> — saves originals for restore.
  • <strong>Lazy Loading</strong> — adds loading=lazy to images.
  • <strong>Picture Tags</strong> — wraps img in picture with WebP/AVIF.
  • <strong>Generate WebP</strong> — creates .webp alongside originals.
  • <strong>Smart PNG → JPEG</strong> — auto-detects and converts.

WP-CLI Commands

For developers and server administrators. Requires WP-CLI installed.

# Optimize all uncompressed images
wp deflato optimize --all

# Optimize with limit
wp deflato optimize --all --limit=100

# Re-optimize already compressed
wp deflato optimize --all --force

# Optimize a specific image by ID
wp deflato optimize --id=123

# View compression statistics
wp deflato stats

# Restore a specific image
wp deflato restore --id=123

# Restore all images
wp deflato restore --all

Folder Scanner

Go to Media → Deflato Bulk and scroll down to Folder Scanner. Select folders to scan:

  • <strong>Active Theme</strong> — images in theme directory
  • <strong>Parent Theme</strong> — if using a child theme
  • <strong>Plugins</strong> — images bundled with plugins
  • <strong>Other Uploads</strong> — files outside Media Library

Click Scan — the scanner finds all images, sorted by size. Then click Optimize.

How Smart PNG → JPEG Works

When you upload a PNG, the plugin:

  1. Reads the PNG header to detect color type
  2. For RGB without alpha — converts immediately
  3. For indexed — checks for tRNS chunk
  4. For RGBA — scans ~500 pixels checking alpha
  5. If opaque → converts to JPEG with white background
  6. If transparent → keeps as PNG

Result: opaque PNGs converted to JPEG, saving 60-80% before API compression.

Hooks & Filters for Developers

// Skip lazy loading for specific images
<img src="hero.jpg" class="no-lazy">

// Skip picture wrapping for specific images
<img src="logo.svg" class="no-picture">

// Plugin uses these WordPress hooks:
wp_handle_upload        // Smart PNG→JPEG (priority 5)
wp_generate_attachment_metadata  // Auto-compress (priority 10)
the_content             // Lazy loading (99), Picture tags (100)

AI Bildgenerator NEW

Bilder aus Text generieren. <strong>Medien → AI Generate</strong>.

4 AI-Modelle:

Quick Hintergruende, Texturen ~5s ~5s
Photo Banner, Hero-Bilder ~30s ~30s
Design Illustrationen, 15 Stile ~10s ~10s
Icon Logos, Icons SVG ~12s ~12s

AI-Limits:

Kostenlos 3 Generierungen gesamt
Pro ($7) 2 Generierungen/Tag
Creator ($25) 10 Generierungen/Tag
Day Pass ($2) 2 Generierungen/Tag

Jede Generierung = 1 AI-Anfrage (getrennt von Komprimierung). Powered by Deflato AI.

File Structure

deflato-image-optimizer/
  deflato-image-optimizer.php    # Main plugin file
  uninstall.php                  # Cleanup on delete
  readme.txt                     # WordPress.org format
  includes/
    class-deflato-api.php        # API client
    class-deflato-settings.php   # Settings page
    class-deflato-media.php      # Upload hooks, Media column
    class-deflato-bulk.php       # Bulk optimize page
    class-deflato-frontend.php   # Lazy loading, picture tags
    class-deflato-smartconvert.php # PNG→JPEG detection
    class-deflato-scanner.php    # Folder scanner
    class-deflato-cli.php        # WP-CLI commands
  admin/
    css/deflato-admin.css        # Admin styles
    js/deflato-admin.js          # AJAX handlers

Bereit fuer schnelleres WordPress?

Plugin herunterladen und loslegen.

Plugin herunterladen (v1.0.0)