wp-manual-image-crop icon indicating copy to clipboard operation
wp-manual-image-crop copied to clipboard

Not following aspect ratios of selected imagesizes to crop

Open mistenkt opened this issue 11 years ago • 4 comments

If the image is smaller then the set imagesize, aspect ratios will at times fail, and sometimes the image wont crop at all.

mistenkt avatar Nov 20 '13 23:11 mistenkt

which is your desired behaviour? can you post a step by step guide to reproduce the problem?

htrex avatar Dec 12 '13 10:12 htrex

Lets say the target imageSize is 1200x800 , if the image source is 600x800 it will not crop. it should be stretched to allow for cropping the target size.

mistenkt avatar Dec 12 '13 10:12 mistenkt

With WP Image editor class If you set the resize dimensions larger than the original image dimensions, no resizing or cropping will be performed, this is an intended behaviour.

Try http://wordpress.org/plugins/thumbnail-upscale/ to circumvent the limit and let me know if that solves your problem.

htrex avatar Dec 12 '13 13:12 htrex

I'm having the same problem. I tried thumbnail upscale. The plugin did generate the thumbnail, but when I use this plugin to select the crop area, it doesnt work as expected. I can explain better with images, so see attached and note the previous image in the after crop pic.

custom image size (hard crop): 1280 x 720 test image orig size: 518 x 640

after-crop before-crop

sharmstr avatar Nov 08 '15 10:11 sharmstr