Hi, after installing and activating the plugin “Modern Image Formats” (https://projectdmc.org/plugins/webp-uploads/) by WordPress Performance Team, the Crop-Thumbnails plugin does not work anymore.
Description of the problem:
When trying to save a new crop, I get a popup saying “The plugin can not correctly connect to the server.”
In the Brower console, I see the “crop-thumbnails connection error” with the following info:
{
"status": 500,
"statusText": "error",
"requestUrl": "/wp-admin/admin-ajax.php",
"requestParams": {
"action": "cptSaveThumbnail",
"_ajax_nonce": "[...]",
"cookie": "[...]",
"crop_thumbnails": "{\"selection\":{\"x\":561,\"y\":496,\"x2\":2560,\"y2\":1121,\"w\":1999,\"h\":625},\"sourceImageId\":7246,\"activeImageSizes\":[{\"name\":\"post-header\",\"width\":1920,\"height\":600,\"ratio\":3.2,\"crop\":true}]}"
}
}A plugin test gives the following result:
INFO Crop-Thumbnails 1.8.0
INFO PHP 8.2.13
INFO PHP memory limit 256M
INFO WP_Image_Editor_Imagick <small>(choosed WordPress imageeditor class for jpg)</small>
SUCCESS Temporary directory exists
SUCCESS Copy testfile to temporary directory
SUCCESS Testfile was successfully added to media-library. (ID:7249)
SUCCESS Cropping the file
FAIL Problem with getting the image dimensions of the cropped file.
SUCCESS Test-attachement successfull deleted (ID:7249)
FAIL Remove testfile from temporary directory
INFO Tests completeDeactivating the “Modern Image Formats” resolves the problem, but is of course not considered a valid solution, as I’d like to use both plugins.
