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

Descripción

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! Prevent AI Data Mining

Decide whether AI bots can use your images for machine learning (ML) training, or block them entirely.

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 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.
  • 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%

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.

Recomendaciones:
★★★★★ Un superplugin que funciona muy bien con un 62 % de reducción global. robertvarns
★★★★★ El ingrediente secreto para una web WordPress. mark1mark
★★★★★ Un plugin imprescindible, ¡gran soporte! ElColo13
★★★★★ ¡Un plugin excelente! ¡Servicio al cliente aún mejor! scaliendo
★★★★★ Gran compresión de imagen, plugin sólido, soporte igualmente excelente. matters1959
más recomendaciones

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%.

Otros plugins de ShortPixel

¡Ponte en contacto!

Acciones y filtros para desarrolladores

El plugin ShortPixel Image Optimiser llama a las siguientes acciones y filtros:

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 agregar 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 agregando 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 agregar 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');

Agrega 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');

Capturas de pantalla

  • Optimización en lotes en marcha. (Medios>ShortPixel en lotes)

  • Activa tu clave de API en los ajustes del plugin. (Ajustes>ShortPixel)

  • Comprueba los ajustes principales después de activar la clave de API. (Ajustes>ShortPixel)

  • Modifícalo usando los Ajustes avanzados. (Ajustes>ShortPixel)

  • Comprime todas tus imágenes antiguas en un solo clic. (Medios>ShortPixel en lotes)

  • Comprueba el estado de optimización de la imagen y restaura o vuelva a optimizar la imagen. (Medios>Biblioteca)

  • Comprueba los detalles de la optimización de la imagen. (Medios>Biblioteca->Editar)

  • Comprueba el estado de otras imágenes optimizadas: imágenes de temas u otros plugins. (Medios>Otros medios)

Instalación

Vamos a ejecutar el plugin de ShortPixel en tu web WordPress:

  1. Regístrate usando tu correo electrónico en https://shortpixel.com/wp-apikey.
  2. Recibirás tu clave de API personal en un correo electrónico de confirmación, en la dirección que proporciones.
  3. Sube el plugin de ShortPixel a la carpeta /wp-content/plugins/
  4. Usa tu clave de API única para activar el plugin de ShortPixel en el menú “Plugins” en WordPress.
  5. Las imágenes subidas se pueden optimizar automáticamente en la Biblioteca de medios.
  6. ¡Hecho!

FAQ

¿Cómo es ShortPixel comparado con otros plugins de optimización de imágenes (por ejemplo, Smush, Imagify, TinyPNG, Kraken, EWWW), Optimole?

ShortPixel tiene constantemente mejores tasas de compresión junto con más funciones, soporte de copias de seguridad y tiene planes mensuales o de un solo uso muy asequibles.
Estas son un par de reseñas independientes:
AuthorityHacker – “ShortPixel es nuestra herramienta preferida, simplemente porque está bastante automatizada – básicamente dejamos que haga lo suyo.” (lee la reseña completa)
WP Modula – “Una de las razones por las que personalmente soy un gran admirador de ShortPixel es el soporte integrado para formatos de imagen de nueva generación como WebP.” (lee la reseña completa)

¿Puedo usar la misma clave de API en múltiples sitios?

Sí, puedes hacerlo.
Mientras tengas créditos disponibles, ¡puedes usar una única clave de API en tantas webs como desees!

¿Qué plan es el que más me conviene? ¿Qué me recomendáis?

Everyone has different needs, but generally, we recommend getting a One-Time plan to optimize your whole Media Library and then get a Monthly plan to optimize your future uploads. To learn more, have a look at this comparison

No sé cuántas miniaturas tengo, ¿qué plan debo coger?

Para saber cuantas miniaturas tienes, simplemente instala el plugin y ve a Medios > ShortPixel en lotes. El plugin te dirá cuántas miniaturas tienes. Según The plugin will tell you how many thumbnails you’ve got. Basado en esto, dale un vistazo a nuestros planes

¿Puedo mejorar o reducir fácilmente mi plan?

Por supuesto. Puedes actualizar o reducir tus planes con un par de clics desde tu cuenta en shortpixel.com.

¿Puedo probar/usar el plugin gratis?

Sí, puedes hacerlo.
Ofrecemos 100 créditos gratuitos de optimización de imágenes cada mes. Superar la cuota mensual gratuita pausará el proceso de optimización hasta que la cuota se restablezca o amplíe comprando uno de nuestros planes.

¿Puedo optimizar imágenes que no existen en la biblioteca de medios?

Por supuesto.
De hecho, puedes optimizar cualquier imagen que tengas en tu sitio, independientemente de su ubicación. Solo tienes que agregar, en la sección Avanzado de los Ajustes de ShortPixel, las carpetas donde se ubican las imágenes que quieras optimizar y ShortPixel hará su magia y hará el resto.

¿Puedo optimizar imágenes antiguas y nuevas?

¡Por supuesto!
Puedes optimizar todas tus imágenes y fotos, antiguas y actuales, usando nuestra página de “ShortPixel en lotes” en tus medios con un solo clic.

¿Un crédito = una imagen optimizada?

Sí, eso es correcto.
Pero ten en cuenta que, por lo general, una imagen en la biblioteca de medios tiene 5 o más miniaturas asociadas. Cada miniatura optimizada requiere un crédito. Sin embargo, en los pocos casos en los que ShortPixel no optimice la imagen (con pérdida) en al menos un 5%, el crédito no se contará.

¿Puedo restaurar mis imágenes? ¿Qué pasa con las originales?

Si eliges la opción “Copia de seguridad” en Ajustes/ShortPixel, la versión original de cualquier imagen o PDF optimizado se guardará en la carpeta de copia de seguridad.
La imagen original es necesaria si quieres restaurar una imagen o si quieres convertir una imagen de con pérdida / glossy a sin pérdida o viceversa.

¿Qué tipos de formato se pueden optimizar?

ShortPixel optimiza los tipos de archivos JPEG (JPG, JPEG, JPEG 2000, JPEG XR), PNG, GIF (animados y fijos) y PDF.

¿Tenéis planes de un solo uso?

Sí, tenemos.
Los créditos que vienen con nuestros planes de un solo uso nunca caducan. ¡Bien! 🙂

¿Qué pasa con mis imágenes existentes?

Tus imágenes existentes son reemplazadas por las optimizadas.
Si eliges la opción de copia de seguridad, las originales se guardarán en una carpeta separada para que puedas restaurarlas si alguna vez necesitas/quieres hacerlo.

¿Cómo funciona el plugin?

Nuestro ligero plugin envía las imágenes originales a nuestra Nube de optimización de imágenes, donde se comprimen. ShortPixel luego descarga las imágenes optimizadas y las originales sin optimizar se reemplazan con las versiones optimizadas.

¿Optimizáis las imágenes en la nube?

Sí, todas las imágenes procesadas por ShortPixel están optimizadas en la nube. Esto quita la carga de tu servidor y nos permite obtener los mejores resultados.

¿Qué métodos de pago son aceptados?

Aceptamos pagos con tarjeta (Mastercard, Visa, Maestro, American Express, Discover, Diners Club, JCB, UnionPay), PayPal y Apple Pay.

¿Cómo activo la clave de API en un multisitio?

Tienes que activar el plugin en la administración de la red y, después, activarlo manualmente en cada sitio individual del multisitio. Una vez que lo hayas hecho, aparecerá el menú de ajustes y podrás agregar la clave de la API para cada sitio individual.
Como alternativa, puedes editar el archivo “wp-config.php” y agregar esta línea:

define('SHORTPIXEL_API_KEY', 'APIKEY');

donde APIKEY es la clave recibida de la API al registrarse.
Si se configura de esa forma, la clave de la API se usará para todos los sitios del multisitio, pero solo será visible en la página de ajustes del sitio principal, estando oculta para el resto de los sitios.

No soy el único que trabaja en el escritorio de WordPress. ¿Cómo puedo ocultar mi clave de API?

Hay una sencilla forma de ocultar la clave de la API, todo lo que tienes que hacer es agregar estas dos líneas a tu archivo “wp-config.php”:

define('SHORTPIXEL_API_KEY', '<<your api key here>>');
define('SHORTPIXEL_HIDE_API_KEY', true);

¿Cuánto es un crédito?

Se utiliza un crédito cada vez que ShortPixel optimiza una imagen o miniatura en al menos un 5%. Si no podemos optimizar una imagen o miniatura en al menos un 5%, no se utilizará ningún crédito 🙂
Ten en cuenta que, por lo general, las imágenes en tu biblioteca de medios tienen 3-5 miniaturas asociadas, y se utilizará un crédito por cada imagen destacada o miniatura asociada que se optimice.

¿Por qué debería usar un plugin de WordPress y no una herramienta off-line?

Porque los algoritmos de ShortPixel se han perfeccionado al optimizar más de 3 mil millones de imágenes reales.
ShortPixel no solo ofrece la mejor compresión para archivos JPEG, PNG, GIF y PDF, sino que también te ahorra mucho tiempo. Simplemente instálalo en tu sitio y, a continuación, ShortPixel se encargará de que todas las imágenes de tu sitio se optimicen inmediatamente después de subirlas.

¿La optimización de imágenes afecta a mis etiquetas ALT?

No, ShortPixel solo optimiza las imágenes, no tocará nada más como tu HTML/CSS.

Si dejo de usar ShortPixel, ¿mis imágenes permanecerán optimizadas?

¡Por supuesto!
Una vez optimizadas, las imágenes permanecerán optimizadas a menos que elijas explícitamente restaurarlas. ¿Pero por qué hacer eso? 🙂

¿Tengo que pagar mensualmente o una vez?

Tenemos ambas opciones disponibles.
Los créditos de un solo uso nunca caducan y son un poco más caros. Echa un vistazo a nuestros precios aquí

¿Cuándo puedo cancelar un plan mensual?

Cuando quieras.
Los créditos que aún tengas disponibles en el período de facturación actual seguirán estando disponibles hasta el final del período de facturación. Al final, no se te volverá a facturar y el plan se restablecerá al plan gratuito.

¿Cuándo caducan los créditos?

Los créditos mensuales caducan después de 30 días, mientras que los créditos de un solo uso nunca caducan.

¿Tenéis una API?

Sí, tenemos varias APIs y herramientas.
Puedes obtener más información acerca de esto aquí:
https://shortpixel.com/api-tools

¿Puedo usar el plugin de WordPress de ShortPixel en una instalación localhost?

Lamentablemente no 🙁
Pero puedes utilizar nuestra herramienta de línea de comandos o nuestra herramienta web
https://shortpixel.com/web-tool-docs
https://shortpixel.com/cli-docs

¿Cómo funciona el redimensionamiento?

Si eliges la opción para cambiar el tamaño de las imágenes de tu sitio, entonces la imagen destacada puede ser redimensionada a un tamaño predefinido, manteniendo su aspecto y sus proporciones intactas. Las miniaturas asociadas no serán redimensionadas.
Con esta opción puedes subir de forma segura las imágenes originales sin necesidad de procesarlas previamente para hacerlas más pequeñas.

¿Funcionará ShortPixel si mi web usa CloudFlare?

¡Por supuesto! A veces tendrás que asegurarte de poner algunas IPs en lista blanca. Simplemente contáctanos y te echaremos una mano.

Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the ShortPixel Image Optimizer plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.

Estoy atascado. ¿Qué hago?

El equipo de ShortPixel está aquí para ayudarte. ¡Contáctanos!

How do I compress images without losing quality in WordPress?

The best way to compress images without losing quality in WordPress is by using the ShortPixel plugin. ShortPixel automatically compresses images with lossless compression, ensuring the visual quality remains intact while significantly reducing file sizes. Once installed, it optimizes your images in just one click, improving your website’s loading speed and SEO performance. You can bulk optimize existing images or compress new ones as you upload them, all without sacrificing quality, making it an ideal solution for maintaining high-quality visuals and fast site performance.

What is image optimization?

Image optimization is reducing the file size of images without compromising their quality, to improve website performance. This can be done using tools like ShortPixel, which compresses images, converts them to more efficient formats like WebP, and ensures they are properly sized for faster loading times. Optimized images help improve website speed, enhance user experience, and boost SEO rankings by reducing page load time and bandwidth usage.

How to optimize a WordPress image?

The best way to optimize a WordPress image is by using the ShortPixel plugin. ShortPixel automatically optimizes images with both lossless and lossy compression options, reducing file size while keeping high visual quality. Once installed, it optimizes your images in one click, improving your site’s load speed and SEO. You can bulk optimize existing images or new uploads, ensuring fast site performance without sacrificing image quality, making it the ideal solution for WordPress image optimization.

How to SEO optimize images?

To SEO optimize images in wordpress, use the ShortPixel plugin to compress and convert them without losing quality, reducing load times—a key SEO factor. Add descriptive file names and alt text with relevant keywords to help search engines understand your images. Additionally, resize images to appropriate dimensions and consider converting them to WebP for faster performance. ShortPixel makes this entire process easy, helping improve both your SEO rankings and site speed.

How do you optimize images for performance?

To optimize images for performance in WordPress, use the ShortPixel plugin to compress images without sacrificing quality, reducing file sizes for faster load times. Convert images to efficient formats like WebP and ensure they are properly resized to fit your site’s design. ShortPixel automates this process in one click, boosting your website’s speed, improving user experience, and enhancing SEO—all key elements for optimal performance.

Reseñas

14 de Febrero de 2025 1 respuesta
I have installed the plugin to convert and inline optimize all images of our webpage. Everything worked almost flawlessly and well designed. It turned out that a little bug lead to a double rendering of background images (webp and png) in parallel. After contacting the support the issue has been tracked down and a bugfix was released within 3 days of my initial request.
22 de Enero de 2025 1 respuesta
Fair Warning: If you deactivate the plugin, you will lose all original images that it compressed!I tested the plugin on 40 images (I believe that was the max amount using the free version). I decided to use a different plugin and deactivated ShortPixel. All images that were compressed by the plugin were deleted from my WordPress Media Library. All of them.
19 de Enero de 2025 1 respuesta
I find this plugin very useful and easy to use as a newbie to shortpixel, but even more importantly they have excellent Technical Support. I was having a problem with ShortPixel and Bricks Builder, they found the problem, sent me an update to the plugin then within a week released an official update that fixed the problem with the Bricks builder. This kind of support is priceless.
8 de Enero de 2025 1 respuesta
I have been using shortpixel for a while with good results but only recently needed to contact customer support. I have been back and forth with quite a complex case that needed investigation. The team has been so patient, explaining everything to me and investigating further, which has taken a few days. They adjusted my settings to get the desired result, and I am very happy with the resolution. Thank you Shortpixel for your great service! 🙂
Leer los 778 comentarios

Colaboradores & Desarrolladores

“ShortPixel Image Optimizer – Optimiza imágenes, convierte WebP & AVIF” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

“ShortPixel Image Optimizer – Optimiza imágenes, convierte WebP & AVIF” ha sido traducido en 18 idiomas. Gracias a los traductores por sus contribuciones.

Traduce “ShortPixel Image Optimizer – Optimiza imágenes, convierte WebP & AVIF” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .

Historial de cambios

6.1.3

🔧 The Smart CDN Update

Release Date: February 13, 2025

🛠️ Fixes & Improvements

  • Smarter CDN Replacements: The plugin now verifies if replaced URLs are empty, preventing issues in text templates used by various plugins.
  • JSON Compatibility Fix: Resolved cases where JSON files containing images were broken by the CDN replacer.
  • Background Processing Cleanup: When disabling background mode, the cron job is now properly removed to avoid unnecessary processes.

This update ensures a more reliable CDN integration, preventing conflicts with plugins and structured data. Update now for a smoother experience! 🚀

6.1.2

🛒 The Seamless Shopping Update

Release Date: February 11, 2025

🛠️ Fixes

  • WooCommerce CDN Fixes: Resolved issues where images in the WooCommerce cart and checkout pages weren’t correctly replaced with CDN links.
  • Duplicate Optimization Info: Fixed cases where ShortPixel optimization details appeared twice when using Gutenberg.
  • Background Processing Errors: Corrected cron errors affecting background processing in specific scenarios.
  • Relative URL CDN Delivery: Ensured proper replacement of relative URLs when using CDN delivery for consistent performance.
  • Picture Tag Adjustments: All attributes are now fully supported when delivering next-gen images via the Picture tag method.

🔧 Compatibility Updates

  • Avada Live Builder Integration: Automatically disabled the CDN replacer when using Avada Live Builder to prevent conflicts.

✨ Tweaks & Improvements

  • UI Refinements: Enhanced CSS styling, clearer texts, and smoother layouts to improve the onboarding experience for new users.

🌍 Language Updates

  • Added 2 new strings, updated 3, with no deprecated strings to improve global translation coverage.

Update now to keep your WooCommerce store and website running seamlessly! 🚀

6.1.1

🔧 The needed Friday release

Release Date: January 24, 2025

🛠️ Fixes

AVIF Notification Disabled: The AVIF notification got a little crazy and started appearing where it shouldn’t. We’ve completely disabled it to avoid any further confusion. Apologies for the inconvenience!

Thank you for your patience and understanding! Update now for a smoother experience. 🚀

6.1.0

🚀 The Data-mining Update

Release Date: January 23, 2025

🎉 New Features

  • AI Training Control: Added data-mining options in the EXIF management settings. You can now decide whether your images can be used for AI training.
  • Improved Switchers Design: Enjoy a cleaner and more user-friendly design for the switchers in settings and bulk processing.
  • AVIF Recheck Option: Added a handy recheck option to notifications about AVIF issues for better troubleshooting.

🛠️ Fixes

  • Resolved “Could not save backup” errors caused by specific combinations of thumbnail sizes and SmartCropping.
  • Fixed missing icons or images in certain notifications.
  • Custom Media folders “Last change” timestamps are now updated correctly when changes occur.
  • Proper detection of Custom Media images missing WebP or AVIF formats in all scenarios.
  • Fixed display issues with Custom Media notices when selecting new folders.
  • Removed old Custom Media cron formats when the plugin is deactivated.
  • Prevented errors by ensuring thumbnails aren’t added to the optimization queue when the main image isn’t processable.
  • Resized images through filters get their metadata updated correctly.

✨ Tweaks & Improvements

  • WP-CLI Processes: Updated process stats every 3 minutes for accurate numbers.
  • Custom Media Cron: Cron jobs for new file detection won’t run if the Custom Media option is disabled.
  • Added a filter for settings to enable programmatic changes when needed.
  • Updated all plugin links to avoid unnecessary redirects.
  • Added support for CDN on http-only websites.
  • Polished CSS, texts, and layouts for a smoother experience.
  • Old, unused code has been cleaned up.

🌍 Language Updates

  • Added 16 new strings, updated 7, and deprecated 67 to enhance global translation support.

Update now to take full advantage of these enhancements and new features! 🌟

6.0.5

Release Date: January 16, 2025

🛠️ Fixes

  • Resolved an issue where WebP or AVIF formats were not added to bulk processing for Custom Media items.
  • Fixed a deprecation warning that appeared when using PHP 8.3.
  • Corrected a redirect error after saving the API Key, which previously led to the general WordPress settings.
  • Fixed a misleading message displayed when a converted image was restored from backup.
  • Added a proper link to Custom Media images when displaying errors after the bulk processing.

🔧 Compatibility Updates

  • CDN Replacer Disabled: Now automatically disabled when using Bricks, Breakdance, or Oxygen builders to avoid conflicts.

✨ Tweaks & Improvements

  • Updated Texts: Improved clarity in messages when bulk processing is paused and background mode is active.
  • API Key Box Hidden: Completely hide the API Key box when the SHORTPIXEL_HIDE_API_KEY constant is used.

🌍 Language Updates

  • Added 4 new strings, updated 2 strings, and deprecated 4 strings to improve translation coverage.

Update now to enjoy these enhancements and fixes for a smoother experience! 🚀

6.0.4

Release date: December 10, 2024
* Fix: Inline images and SVGs are no longer replaced by CDN links;
* Fix: The text domain load has been removed from the plugin code to avoid future errors;
* Fix: When trying to clear the queue, the settings page was not loaded correctly;
* Fix: Forced generation for PNGs could be enabled even if the PNG2JPG option was disabled;
* Tweak: Several minor CSS and wording improvements have been added;
* Tweak: Bulk preparation now runs faster when no images are optimized;
* Language: 0 new strings added, 2 updated, 0 fuzzed and 0 deprecated.

6.0.3

Release date: December 3, 2024
* Fix: With certain WooCommerce themes and CDN delivery enabled, some images were not loaded on the cart and checkout pages
* Fix: Removed an unused hook that was triggering errors in some cases;
* Fix: A JavaScript error was displayed in the browser console when CDN delivery was hidden in the settings;
* Fix: Divi frontend builder now works when CDN delivery is enabled;
* Language: 2 new strings added, 0 updated, 0 fuzzed and 0 deprecated.

6.0.2

Release date: November 28, 2024
* Fix: Resizing and SmartCropping can now both be enabled;
* Fix: Beaver Builder now works when CDN delivery is enabled;
* Fix: In some cases the picture tag was generated even if it was disabled;
* Fix: Some notifications still had links pointing to the old settings structure;
* Fix: The custom media cron generated an error under very specific conditions in PHP 8.2.x;
* Fix: More CSS changes to make the settings usable when other plugins insert their own CSS in wrong places;
* Fix: All database options are now removed from the tools section after uninstalling the plugin;
* Fix: Added a possible fix if the execution of the installation scripts hangs after upgrading to version 6;
* Fix: Some JavaScript errors were displayed in the Theme Customizer section;
* Tweak: Added filter to hide the new CDN delivery method;
* Tweak: Removed a database query for custom media that was no longer needed in wp-admin;
* Tweak: The save settings button function has been improved and prevents multiple saves at once;
* Tweak: The default CDN URL has been updated;
* Language: 1 new strings added, 10 updated, 0 fuzzed and 0 deprecated.

6.0.1

Release date: November 22, 2024
* Fix: Some PHP warnings were displayed for certain images when they were optimized;
* Fix: The plugin settings are loaded correctly even if the Google Reviews & Ratings plugin is active;
* Fix: Help icon pop-ups now look better;
* Language: 0 new strings added, 0 updated, 0 fuzzed and 0 deprecated.

6.0.0

Release date: November 21, 2024
* New: The plugin now also delivers next generation images such as WebP and AVIF via the ShortPixel CDN;
* New: Complete redesign of the plugin settings and layout;
* New: Overview page with image status in a single view;
* New: Simple and advanced settings modes are now available;
* Tweak: Plugin processing is no longer started for users without appropriate rights (such as Authors);
* Fix: The filter “optimized/not optimized” from the Media Library now works correctly when the main image is excluded;
* Fix: The comparator in the NextGen Gallery now looks better;
* Fix: When using WPML, random optimization errors occurred with some images;
* Language: Many of the plugin strings have been updated or changed and we thank the translation teams for their efforts..

5.6.4

Release date: October 9, 2024
* Fix: A Broken Access Control vulnerability has been fixed (safely disclosed by the PatchStack team – thanks!);
* Fix: An SQL injection vulnerability has been patched (also safely disclosed by the PatchStack team);
* Fix: Moved loading of the plugin text domain to the init hook to increase compatibility;
* Language: 2 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.

5.6.3

Release date: July 16, 2024
* Compat: Integration with Polylang Pro is fixed;
* Fix: Some bulk actions in the list view of the Media Library did not work;
* Fix: PHP warning was displayed when an existing Custom Media folder was no longer present on the disk;
* Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.

5.6.2

Release date: May 23, 2024
* Fix: The Cover or Contain setting for resizing was not retained when saving;
* Language: 0 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.

5.6.1

Release date: May 21, 2024
* Fix: Folders from the uploads folder can now be selected as Custom Media even if the year/month structure is not used;
* Fix: In certain cases PHP errors were generated when trying to optimize or even upload images;
* Fix: Some typos caused warnings in some cases;
* Fix: Fixed a typo regarding the number of seconds in a day (kudos to @JusGu for pointing this out);
* Fix: Images with a size of 0Kb are no longer processed;
* Compat: The integration with Formidable Forms now works directly in the Media Library (no need for Custom Media anymore);
* Language: 5 new strings added, 2 updated, 1 fuzzed, and 2 deprecated.

5.6.0

Release date: May 2, 2024
* New: Added background mode that uses cron jobs to perform optimizations without having to keep the browser open;
* New: Custom media folders are now automatically checked for new images in the background with cron jobs;
* New: The bulk actions from the list view of the media library have been moved to JS;
* New: BMP and TIFF files are automatically converted to JPG;
* Compat: Added integration for images uploaded via Formidable Forms;
* Compat: Improved performance of PICTURE tag delivery mode when offload is enabled;
* Compat: The images generated by the Uncode theme are now automatically optimized;
* Compat: PNG conversion has been improved to better handle images with alpha channel but without transparent pixels;
* Compat: Added a filter to disable the PHP basedir constraints check;
* Compat: Added filter to allow generation of WebP/AVIF even if they are larger than JPG/PNG;
* Compat: Added new hooks for Regenerate Thumbnails Advanced;
* Compat: Added notification to enable double WebP extension when WebP delivery is enabled in Litespeed Cache;
* Compat: Fixed a conflict with the Getty Images plugin (thanks @pintofbeer);
* Compat: Fixed Photo Engine/WpLr integration when republishing images from Adobe Lightroom;
* Fix: PDF files are now correctly excluded from processing when the option is disabled in the advanced settings;
* Fix: Styling corrected when deactivating the plugin;
* Fix: Added additional checks for silent mode when errors occurred in some cases;
* Fix: Some PHP warnings were displayed under PHP 8.3;
* Fix: The warning about Imagify could not be dismissed;
* Language: 27 new strings added, 6 updated, 0 fuzzed, and 0 deprecated.

5.5.5

Release date: February 13, 2024
* Compat: Added new hooks to be used by the Regenerate Thumbnails Advanced plugin;
* Compat: Adjusted the settings limitations for the new Unlimited plans;
* Fix: Added an additional check to prevent database table errors when the plugin is removed;
* Language: 0 new strings added, 1 updated, 0 fuzzed and 0 deprecated.

5.5.4

Release date: January 22, 2024
* Tweak: The messages displayed when executing WP-CLI “auto” commands have been improved;
* Tweak: More options and flexibility for the filter used when creating the .htaccess rules (for WebP delivery);
* Tweak: Added a check and mechanism to prevent running out of memory if the bulk process preparation fails due to lack of memory;
* Tweak: Added back the “Optimize” option in the “Bulk actions” section in the list view of the Media Library;
* Compat: Added integration with the “Media File Renamer” plugin;
* Fix: Under PHP 8.1+, a notice was displayed when re-optimizations were performed;
* Fix: A PHP warning was displayed converting optimization metadata via WP-CLI;
* Fix: Multiple exclusion checkboxes in the plugin settings can now be selected with the SHIFT key;
* Fix: Converting optimization metadata without backups could cause the main images to be incorrectly set to unprocessed;
* Language: 4 new strings added, 0 updated, 0 fuzzed, and 0 deprecated.

5.5.3

Release date: January 3, 2024
* Fix: In some cases, an error was displayed when adding a folder to Custom Media, even if the folder was added correctly;
* Fix: For WebP files uploaded directly to the Media Library, the plugin could remove the wrong files during certain operations;
* Fix: Bulk processing of Custom Media could lead to errors in some cases;
* Fix: A PHP Warning was displayed on the Custom Media page if no items were present;
* Language: 0 new strings added, 0 updated, 0 fuzzed and 0 deprecated.

5.5.2

Release date: November 24, 2023
* Fix: The excluded thumbnails are no longer checked out when saving the settings;
* Fix: Adding new exclusions is now fixed;
* Fix: Updated the wording of exclusions to make them consistent;
* Fix: An error was displayed in the logs if an image could not be loaded at all;
* Fix: An error is now displayed when a Custom Media folder cannot be added instead of silently crashing the page;
* Fix: If WP_CONTENT_DIR does not contain wp-content, adding a Custom Media folder failed;
* Language: 8 new strings added, 2 updated, 0 fuzzed and 7 deprecated.

5.5.1

Release date: November 17, 2023
* New: Added a filter to change the parameters sent to the API (e.g. for granular resizing);
* Fix: Some PHP notices were displayed in the logs when no exclusions were set;
* Fix: when using the Media Library Grid view, a request for a non-existent image resulted in an Ajax error;
* Fix: Add checks to prevent errors when WebP files cannot be copied to their destination;
* Tweak: Removed notification about HEIC files;
* Language: 0 new strings added, 0 updated, 0 fuzzed and 2 deprecated.

5.5.0

Release date: November 8, 2023
* New: The Custom Media folders have been redesigned, more features have been added and everything has been moved to Media -> Custom Media;
* New: The exclusions have been redesigned to provide a simpler and more flexible mechanism;
* New: The ability to override exclusions and manually optimize excluded images has been added;
* New: The ability to mark images as completed (optimized) has been added;
* New: Added migration of optimization data to WP-CLI;
* New: Added constant to disable the feedback survey when the plugin is deactivated;
* Compat: Added proper validation and integration for the Swift AI plugin;
* Compat: Added filter to suppress cache clearing for various cache plugins (useful for large websites);
* Fix: If an image has been excluded, it can now be restored from the backup;
* Fix: Envira and Soliloquy have been added to the list of pages where processing is performed automatically;
* Fix: Websites with many Custom Media folders and/or NextGen galleries should no longer hang;
* Fix: Added some checks and validations to avoid open_basedir warnings;
* Fix: Updated wording and banners throughout the plugin;
* Language: 94 new strings added, 3 updated, 5 fuzzed and 33 deprecated.

EARLIER VERSIONS

  • por favor, consulta el archivo changelog.txt dentro de los archivos del plugin.