Skip to main content

The “The web server cannot generate responsive image sizes for this image” error in WordPress

The error “The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading.” / “Веб-сервер не может генерировать адаптивные размеры изображений для этого изображения. Конвертируйте его в JPEG или PNG перед загрузкой.” (code “rest_upload_image_type_not_supported”) appears in WordPress 6.8 and later if the required PHP modules for image processing are not installed and you upload, for example, a WebP image. You can check this in the admin panel under “Tools” -> “Site Health”:

Where to find Site Health in the WordPress admin panel

If you see a similar message here:

Information indicating that PHP lacks the imagick and gd modules in WordPress

Then you need to:

  • Either add support for at least the gd module to PHP on your server
  • Or roll back to a WordPress version below 6.8 (not recommended).

If you upload an SVG image (not through ClipAI), you probably need to install the plugin Safe SVG.