Crop Issue
-
Hallo!
I am using the crop method for an object of the WP_Image_Editor class. I have several images for which this method does not work correctly. For example: https://postlmg.cc/WdXRVBXk
My code:$image_path = 'https://postlmg.cc/WdXRVBXk'; $image_path1 = '/localhost/blue1.jpeg'; $image = wp_get_image_editor($image_path); $image->crop(0, 2532, 918, 918); $image->save($image_path1);
The new image is stretched and the area does not correspond to the data specified in the parameters.
Help me solve the problem.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Crop Issue’ is closed to new replies.