Doesn’t work on large images
-
Hello,
Cropping works fine for most cases, however it looks like there’s a problem with large formats.
I tried with a 3840×1990 image:
Here’s what I want : https://ibb.co/881j9hr
And what I get : https://ibb.co/nfTjh6cAfter many tries, it looks like the real crop area is much smaller than the one I select.
It’s probably related to this post : https://www.ads-software.com/support/topic/image-size-limitations-2/
Quick test looks ok:
INFO Crop-Thumbnails 1.2.5 INFO PHP 7.2.18 INFO PHP memory limit 512M INFO WP_Image_Editor_GD (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:30577) SUCCESS Cropping the file SUCCESS Cropped image dimensions are correct. SUCCESS Test-attachement successfull deleted (ID:30577) SUCCESS Remove testfile from temporary directory INFO Tests complete
Here’s the debug output:
[ "validated input data", { "selection": { "x": 418, "y": 0, "x2": 1540, "y2": 1080, "w": 1121.4545454545453, "h": 1080 }, "sourceImageId": 411, "activeImageSizes": [ { "name": "thumbnail", "width": 150, "height": 150, "ratio": 1, "crop": 1 } ] }, "filename: D:\\Programmes\\wamp64\\www\\example/web/app/uploads/[email protected]" ]
Here’s the start of the JS-Debug :
cropImage:{ "url": "https://example.com/app/uploads/[email protected]", "width": 1920, "height": 1080, "gcd": "120", "ratio": 1.7777777777777777, "printRatio": "16:9", "image_size": "full" }
I find it strange, why do the “cropImage” shows a 1920×1080 format if the real dimention is 3840×1990? Could this be related to the problem?
Any help would be appreciated.
Thanks!
- The topic ‘Doesn’t work on large images’ is closed to new replies.