Hey Volkmar,
I am experiencing the same issue with cropping one custom set image size (set via functions.php). I’ve found it has been related to images over ~6000px wide. From the screenshot, you can see the other custom image sizes were successfully cropped.
https://www.dropbox.com/s/4dvgwdq640rllqx/crop_thumbnails.png?dl=0
Here’s my debug output:
[
"validated input data",
{
"selection": {
"x": 0,
"y": 1658,
"x2": 7151,
"y2": 4087,
"w": 7151,
"h": 2428.8708939065878
},
"sourceImageId": 8015,
"activeImageSizes": [
{
"name": "blog-wide",
"width": 2650,
"height": 900,
"ratio": 2.9444444444444446,
"crop": 1
}
]
},
"Image filename has changed (blog-wide)",
"filename: /nas/content/live/explorerstage/wp-content/uploads/2019/02/menu-board-case-study-2650x900.jpg",
"error on menu-board-case-study-2650x900.jpg",
{
"blog-wide": [
"Can't copy temporary file to media library.",
"Can't delete temporary file."
]
}
]
Here is the plugin test output:
info Crop-Thumbnails 1.2.5
info PHP 7.2.23-1+ubuntu18.04.1+deb.sury.org+1
info PHP memory limit 512M
info WP_Image_Editor_Imagick (choosed WordPress imageeditor class for jpg)
success Temporary directory exists
success Copy testfile to temporary directory
success Testfile was successfully added to media-library. (ID:8017)
success Cropping the file
success Cropped image dimensions are correct.
success Test-attachement successfull deleted (ID:8017)
success Remove testfile from temporary directory
info Tests complete
Here’s what I’ve tried:
– ran image through compressor as well as re-saved the image (removing all original meta data). Both of these tests resulted in same error.
– resized the image to 5500px and cropping worked
Please let me know what I can try to further debug this issue. Thanks in advance.