plugin-icon

ShortPixel Image Optimizer – Optimiza imágenes, convierte WebP & AVIF

Optimiza imágenes & PDFs inteligentemente. Crea y comprime formatos WebP y AVIF de próxima generación. Recorte inteligente y cambio de tamaño.
Valoración
4.5/5
Versión
6.4.1
Instalaciones activas
300K
Última actualización
Dec 18, 2025
ShortPixel Image Optimizer – Optimiza imágenes, convierte WebP & AVIF

🚀 The Ultimate Image Optimization Plugin for WordPress

⚡ Boost your site’s speed instantly! Optimize images and PDFs with one click, bulk compress to WebP and AVIF, use lazy loading, and resize images.

Increase your website’s SEO ranking, number of visitors, and ultimately your sales by optimising any image or PDF document on your website.

The ShortPixel plugin is a lightweight, user-friendly, install-and-forget solution for image optimization. It is designed to work with any website type, whether it’s a small blog or a large WooCommerce-powered online store with tens of thousands of products. Additionally, it’s an excellent choice for agencies, offering unlimited image optimization credits for a flat monthly fee.

🎬 Ready for a Quick DEMO of our Top Image Optimization Tool?

Test our plugin here. Make an instant image compression test of your site or compress some images to test our optimization algorithms.

💡 Why is ShortPixel the best choice for image optimization or PDF compression?

🆕 New! Brand new AI features

  • AI Image Upscale (2x, 3x, 4x) – Upscale smaller images with high-quality AI upscaling, perfect for retina displays and crisp visuals.
  • AI Background Removal – Instantly remove background from your images with one click, ideal for creating clean product photos. After the background is removed, your image can have a transparent background or be filled with a single solid color.
  • AI Image Titles – In addition to ALT text, captions, and descriptions, you can now generate smart image titles using AI for better SEO.
  • Bulk Remove AI Data – Easily clear all AI-generated image SEO data in one go.

🆕 New! Freshly added AI Image SEO features

  • AI-powered image SEO – Automatically generate ALT text, captions, and image descriptions for all your images.
  • Bulk mode – Mass-generate and update details for all your images.
  • Preview mode – Test and fine-tune AI results before applying new ALT texts and descriptions in bulk.
  • Multilingual – Support for 100+ languages.
  • WooCommerce – Seamless support for WooCommerce product images.
  • Unlimited credits – AI-generate image titles, captions, and more with our Unlimited plan.
  • Accessibility – Improve website accessibility by generating all the necessary metadata for each image.

Freshly added features

  • Compress WebP images – ShortPixel now also smartly compresses all your existing WebP images.
  • Added support for serving CSS, JS and fonts from our global CDN.
  • Save & Restore option for all settings – ideal for agencies and users managing multiple websites.
  • Decide whether AI bots can use your images for machine learning (ML) training, or block them entirely.
  • You can now exclude images from optimization based on their upload date, perfect for skipping older or already optimized media.
  • Filter and select images in bulk using date-based criteria, giving you precise control over what gets optimized and when.

🌍 Faster Websites for Global Audiences

The ShortPixel plugin now includes a built-in global Content Delivery Network (CDN). This powerful feature ensures that ShortPixel-optimized WebP and AVIF images, as well as your website’s CSS and JavaScript files, are delivered quickly and efficiently to any location worldwide, minimizing delays and improving load times.

By leveraging this built-in solution, you enhance the user experience, reduce server strain, boost SEO performance, and simplify website management — all with minimal effort.

📸 Resize and Compress Images Without Losing Quality

  • Popular plugin with over 300,000 active installations – according to WordPress
  • Compress JPG (and its variations: JPEG, JPEG 2000, JPEG XR), PNG, GIF (still or animated) images, and also PDF documents.
  • Option to automatically convert PNG to JPG if that results in smaller images (ideal for large PNG pictures).
  • CMYK to RGB conversion.
  • Progressive JPEG is used whenever it leads to a smaller image.

🌟 Lossy and Lossless image compression

Both Lossy and Lossless image compression are available for the most common image types (JPG, PNG, GIF, WebP, and AVIF) plus PDF files. We also offer Glossy JPEG compression which is a very high-quality lossy optimization algorithm. Especially designed for photographers or for high-quality product pictures. Optimized images lead to a better user experience, improved PageSpeed Insights or GTmetrix results, higher Google PageRank, and more visitors.

🔄 Convert WebP and AVIF Formats

  • Option to automatically convert JPEG, PNG, or GIF to WebP and AVIF for better performance and improved Google ranking.
  • Automatically optimize your existing WebP files with ShortPixel’s SmartCompress algorithm.
  • Animated GIFs can be automatically converted to much smaller animated WebP or AVIF files.
  • Option to include next-gen images (WebP and AVIF) in front-end pages with a single click using the tag.

📦 Bulk Image Optimization and Background Image Processing

  • New! With ‘Background mode,’ images can now be optimized without needing to keep a browser tab open.
  • Easily add recurring cron jobs for background optimization, ideal for sites where users upload images via the front end.
  • Bulk-optimize all images in the Media Library or any gallery with a single click.
  • Full WP-CLI support for background processing, especially useful for large Media Libraries.

🔥 Performance and Automatic Image Optimization

ShortPixel uses minimal resources and works well with any shared, cloud, VPS, or dedicated web hosting. It can optimize any image on your website, including those not listed in the Media Library, such as images in galleries or those added directly via FTP. All optimization is performed using ShortPixel’s Image Optimization Cloud, so your hosting resources remain unaffected.

  • New! Automatic scan of Custom media folders for new images using cron jobs.
  • Skip already optimized images to avoid redundant processing.

🎨 Compatibility with Popular Themes, Page Builders, and Media Library Plugins

  • Works great for eCommerce websites using WooCommerce and other plugins.
  • Compatible with NextGEN Gallery, Modula, Foo Gallery, and other galleries or sliders.
  • Fully compatible with WP Retina 2x, including automatic compression of retina images.
  • Works seamlessly with WordPress multisite installs (sub-folders or sub-domains) using a single API key.
  • Compatible with WPML and WPML Media plugins.
  • Fully compatible with WP Offload Media plugin.
  • Supports both HTTPS and HTTP websites.
  • Compatible with virtually all hosting providers.
  • Integrates with Gravity Forms’ post_image field type to optimize images upon upload.
  • Works with watermarking plugins.
  • Integrates directly with Cloudflare via a Cloudflare Token, automatically synchronizing updates with Cloudflare cache.
  • New! HEIC file support With ShortPixel, you can now add images in Apple’s HEIC format directly from your iPhone. They will be automatically converted to JPG and optimized according to your settings. Easy! Read more.

🔧 Advanced Image Optimization Features

  • NEW Smart Cropping: Generate subject-centered thumbnails using AI, ideal for eCommerce websites.
  • Optimize thumbnails and featured images, with options to exclude individual thumbnails from optimization.
  • Advanced exclusion options (exclude images based on filename, path, size, or complex regex).
  • Ability to optimize any image, including those in NextGEN Gallery and other image galleries or sliders.
  • Option to scale images down, with two automatic resizing options for large images (applicable to featured images).
  • Option to deactivate auto-optimization of images on upload.
  • Keep or remove EXIF data from images, which is especially useful for photographers or for enhanced privacy.
  • Easily test lossy, glossy, or lossless versions of images with a single click in the Media Library.
  • 100MB filesize limit

🛡️ Backup and Safety

  • Safe to test and use: original images are backed up locally and can be restored with a single click (either individually or in bulk).
  • No credits are used for images optimized by less than 5%
  • Save & Restore option for all settings – ideal for agencies and users managing multiple websites.
  • Decide whether AI bots can use your images for machine learning (ML) training, or block them entirely

📊 Reporting, Analytics, Compliance and Customer Support

  • 30-day optimization report with detailed image statistics and overall site performance improvements.
  • 24/7 stellar support.
  • We are fully GDPR compliant.

🚀 New Plan: ShortPixel Unlimited This is the ideal monthly plan for web agencies or website owners with multiple sites and frequent image uploads. It allows you to optimize an unlimited number of images with ShortPixel Image Optimizer or use ShortPixel Adaptive Images without worrying about CDN traffic limits. Read more details on our dedicated page.

  • créditos de optimización gratuitos para organizaciones sin ánimo de lucro, contáctanos para más detalles

💸 How much does it cost? ShortPixel comes with 100 free credits per month, and additional unlimited monthly credits can be purchased for $9.99. One-time credit packages that never expire are available starting at $19.99. Check out our prices.

🌟 Testimonials: ★★★★★ A Super Plugin works very well 62% reduction overall. robertvarns ★★★★★ The secret sauce for a WordPress website. mark1mark ★★★★★ A must have plugin, great support! ElColo13 ★★★★★ Excellent Plugin! Even Better Customer Service! scaliendo ★★★★★ Great image compression, solid plugin, equally great support. matters1959 more testimonials

Ayúdanos a correr la voz recomendando ShortPixel a tus amigos y consigue 100 créditos de imagen adicionales mensuales de por vida por cada usuario activo referido. Gana dinero promocionando un magnífico plugin con nuestro programa de afiliación 30%.

🛠️ Other plugins by ShortPixel

📩 Get in touch!

Acciones y filtros para desarrolladores

The ShortPixel Image Optimizer plugin calls the following actions and filters:

do_action( 'shortpixel_image_optimised', $post_id );

tras una optimización correcta;

do_action("shortpixel_before_restore_image", $post_id);

antes de restaurar una imagen desde una copia de seguridad;

do_action("shortpixel_after_restore_image", $post_id);

después de una restauración correcta;

Para versión 4.22.10 y más antiguas:

apply_filters("shortpixel_backup_folder", $backup_folder, $main_file_path, $sizes);

justo antes de devolver la carpeta de copias de seguridad de ShortPixel, normalmente «/wp-content/uploads/ShortpixelBackups». El código $sizes son los tamaños del array de los metadatos;

A partir de la versión 5.0.0:

$directory = apply_filters("shortpixel/file/backup_folder", $directory, $file);

justo antes de devolver la carpeta de copias de seguridad de ShortPixel, normalmente /wp-content/uploads/ShortpixelBackups).

apply_filters('shortpixel_image_exists', file_exists($path), $path, $post_id);

el ID de la entrada no siempre se establece, solo si es una imagen de la biblioteca de medios;

apply_filters('shortpixel_image_urls', $URLs, $post_id);

filtra las URL que se enviarán a optimizar, $URLs es un arreglo simple;

¡El siguiente filtro está obsoleto a partir de la versión 5.0.0!

apply_filters('shortpixel/db/chunk_size', $chunk);

$chunk es el valor que ShortPixel elige para usarlo como el número de registros seleccionados en una consulta (basado en el tamaño total de la tabla), algunos servidores funcionan mejor con un valor diferente;

Para versión 4.22.10 y más antiguas:

apply_filters('shortpixel/backup/paths', $PATHs, $mainPath);

filtra el array de rutas de las imágenes enviadas a copias de seguridad, y se puede usar para excluir ciertas rutas/imágenes/miniaturas de las copia de seguridad, según la ruta de la imagen. $mainPath es la ruta de la imagen principal, mientras que $PATHs es un array con los archivos a copiar (incluidas las miniaturas);

A partir de la versión 5.0.0:

apply_filters('shortpixel/image/skip_backup', false, $this->getFullPath(), $this->is_main_file)

filtra las imágenes excluidas o no de la copia de seguridad. Devuelve true para el tipo de imágenes que se excluirán de la copia de seguridad. Si compruebas si is_main_file es true y devuelve false (no omite la copia de seguridad), mientras que se devuelve true para el resto, la copia de seguridad se mantendrá solo para la imagen principal. Te sugerimos usarlo junto con esta acción que se activa justo después de que se haya hecho la restauración de la copia de seguridad:

do_action('shortpixel/image/after_restore', $this, $this->id, $cleanRestore);

Esta acción se puede usar para limpiar los metadatos de la base de datos, regenerar miniaturas después de restaurar el archivo principal, escribir los metadatos actualizados, etc.

apply_filters('shortpixel/settings/image_sizes', $sizes);

filtra el array ($sizes) de tamaños de imagen que se pueden excluir del procesamiento (mostrado en los ajustes avanzados del plugin);

apply_filters('shortpixel/image/imageparamlist', $result, $this->id, $this);

filters the list of parameters sent to the API so that resizing can be performed more granularly;

apply_filters('shortpixel/api/request', $requestParameters, $item_id);

filtra los parámetros enviados a la API de optimización (a través de $requestParameters), que se describen en detalle aquí: API de ShortPixel Reducer; $item_id contiene el ID del elemento de la biblioteca de medios o el ID del elemento de medios personalizados (cuando se usa). En resumen, este filtro se puede utilizar para modificar cualquier parámetro enviado a la API, según las necesidades. Por ejemplo, puedes establecer diferentes parámetros de cambio de tamaño para diferentes tipos de entradas, diferentes niveles de compresión, eliminar EXIF o no, convertir WebP/AVIF y básicamente cualquier otro parámetro que se envíe a la API para una imagen específica (junto con todas sus miniaturas).

This filter enables the background ShortPixel processing in additional pages (see here the original list). Here’s an example of this filter that enables the processing on the Comments screen (to be placed in your functions.php file):

add_filter('shortpixel/init/optimize_on_screens', function ($screens) { $screens[] = 'edit-comments'; return $screens; });

El edit-comments es el ID de la pantalla donde quieras activar el procesado.

Si quieres añadir varias páginas, el fragmento de código es así:

add_filter('shortpixel/init/optimize_on_screens', function ($screens) { $screens = array('edit-comments', 'plugins', 'another-custom-post-type-page'); return $screens; }); add_filter('shortpixel/image/filecheck', function () { return true; });

Este filtro fuerza una comprobación de archivos WebP/AVIF en caso de que se hayan eliminado manualmente del disco.

If you want to disable the automatic cache flush that is triggered after image optimization, you can use this filter:

add_filter( 'shortpixel/external/flush_cache', function() { return false; } );

Para definir miniaturas personalizadas para que se procesen en la optimización, tienes dos opciones, donde ambos defines tienen separaciones por comas:

define('SHORTPIXEL_CUSTOM_THUMB_SUFFIXES', '_tl,_tr');

gestionará miniaturas personalizadas como «imagen-100x100_tl.jpg»;

define('SHORTPIXEL_CUSTOM_THUMB_INFIXES', '-uae');

gestionará miniaturas personalizadas como «imagen-uae-100×100.jpg»;

define('SHORTPIXEL_USE_DOUBLE_WEBP_EXTENSION', true); define('SHORTPIXEL_USE_DOUBLE_AVIF_EXTENSION', true);

dirá al plugin que cree extensiones dobles para las imagen WebP/AVIF equivalentes, por ejemplo, «imagen.jpg.webp»/«imagen.jpg.avif» para «imagen.jpg»;

Activa el «modo de confianza» en caso de que el sistema de archivos tenga limitaciones y responda muy lentamente a las operaciones directas de archivos añadiendo esta constante:

define('SHORTPIXEL_TRUSTED_MODE', true);

Esto simplemente omitirá las operaciones de comprobación de archivos y si la biblioteca de medios se carga muy lentamente o se cuelga, quizás quieras intentar añadir la constante anterior a tu archivo wp-config.php.

Disable the feedback survey when the plugin is deactivated:

define('SHORTPIXEL_SKIP_FEEDBACK', true);

Oculta los ajustes de Cloudflare definiendo estas constantes en el archivo «wp-config.php»:

define('SHORTPIXEL_CFTOKEN', 'the Cloudflare API token that has Purge Cache right'); define('SHORTPIXEL_CFZONE', 'The Zone ID from the domain settings in Cloudflare');

Añade identificación básica de HTTP definiendo estas constantes en wp-config.php

define('SHORTPIXEL_HTTP_AUTH_USER', 'user'); define('SHORTPIXEL_HTTP_AUTH_PASSWORD', 'pass');
Gratiscon el plan Business
Probado hasta
WordPress 6.9
Te puedes descargar este plugin para utilizarlo en tu sitio de .