WooCommerce 图片上传失败

WooCommerce Image Upload Failed

您好,我在上传图片时遇到了一些困难。

上传图片 4f4ac7816...原始大小 2.5MB 失败。

上传图片 6e507671e...成功,原始大小为 345KB。

我查看了上传限制,它被限制为 200MB,所以这不是这里的问题。

如您所见,以 4f4ac7816 开头的图像...仅创建了 3 个尺寸版本。这里有些不对劲,因为我希望得到与其他图片相同的一组图片。 https://gyazo.com/7191407f7f748b9aa53a4caa29ded6fc

我正在使用来自产品的更新调用 https://woocommerce.github.io/woocommerce-rest-api-docs/?php#update-a-product

收到错误:

System.Net.WebException: <!DOCTYPE html>
<html style="height:100%">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title> 503 Service Unavailable
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; ">     <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
        <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">503</h1>
<h2 style="margin-top:20px;font-size: 30px;">Service Unavailable
</h2>
<p>The server is temporarily busy, try again later!</p>
</div></div></body></html>

预期:具有新附加图像 ID 的更新产品

我找到问题了。我的图像尺寸大于允许的尺寸。它不应该大于 2500px