Deflato para WordPress

Comprime automaticamente cada imagen subida a tu sitio WordPress. Hasta 90% mas pequenas sin perdida de calidad.

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

Compresion automatica

Cada imagen subida se optimiza automaticamente. Funciona con Gutenberg, Elementor, Divi y todos los constructores.

📦

Optimizacion masiva

Comprime toda tu biblioteca de medios con un clic. Barra de progreso y soporte de pausa.

🎨

WebP y AVIF

Convierte imagenes a formatos de nueva generacion o mantiene el formato original.

📊

Estadisticas

Ve cuanto ahorraste por imagen en la Biblioteca de Medios.

🔄

Respaldo y restauracion

Los originales se guardan antes de comprimir. Restaura con un clic.

🔒

Miniaturas tambien

Comprime todos los tamanos de miniaturas. Cada miniatura = 1 solicitud API.

Lazy Loading

loading=lazy nativo para imagenes fuera de pantalla. Mejora PageSpeed.

🌐

<picture> Tags

Envuelve imagenes en picture con fuentes WebP/AVIF.

🧠

PNG → JPEG inteligente UNIQUE

Detecta PNG sin transparencia y convierte a JPEG. Hasta 70% extra. Unico.

💻

WP-CLI Commands

wp deflato optimize, stats, restore. Terminal.

🎁

Prueba gratuita

20 solicitudes gratis. Sin tarjeta.

🤖

Generador AI NEW

Genera imagenes desde texto. 4 modelos AI, 15 estilos. Unico.

Instalacion

1

Descarga e instala

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

2

Clave API

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

3

Configurar

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

4

Optimizar

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

Por que Deflato?

Funcion ShortPixel Imagify Smush Pro Deflato
Auto-compress on upload
Optimizacion masiva
Conversion WebP
AVIF conversion
Respaldo
Modelo de pago $3.99/mo $7.99/mo $10/mo pago unico
Requiere PayPal No
Documentos (PDF, DOCX)
Carga diferida
Etiquetas picture
Smart PNG → JPEG
WP-CLI
Generador AI 4 models
Prueba gratis

Preguntas frecuentes

Es suscripcion?

No. Pago unico de $7 por 30 dias. Sin cargos automaticos.

Cuantas imagenes por dia?

Pro: 500/dia. Imagen + miniaturas = varias solicitudes.

Imagenes existentes?

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

Volver a originales?

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

Funciona con mi tema?

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

Son seguras mis imagenes?

Archivos enviados por HTTPS, comprimidos y eliminados inmediatamente.

Documentacion

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)

Generador AI NEW

Genera imagenes desde texto. Ve a <strong>Medios → AI Generate</strong>.

4 modelos AI:

Quick Fondos, texturas ~5s ~5s
Photo Banners, hero ~30s ~30s
Design Ilustraciones, 15 estilos ~10s ~10s
Icon Logos, iconos SVG ~12s ~12s

Limites AI:

Prueba gratuita 3 generaciones total
Pro ($7) 2 generaciones/dia
Creator ($25) 10 generaciones/dia
Day Pass ($2) 2 generaciones/dia

Cada generacion usa 1 solicitud AI (separado de compresion). 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

Listo para acelerar tu WordPress?

Descarga el plugin y comienza a comprimir.

Descargar Plugin (v1.0.0)