Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am working on a Wordpress site that heavily uses image uploading and whatnot, I have defined the image sizes in my functions.php and I have hard crop mode turned on which ensures that my images are always cropped to the exact size that I want.

The problem with hard cropping is that peoples faces in images and other artefacts are cropped out and the images look ridiculous. Is there a way to have soft cropping mode turned on and have images always be an exact size?

I find that when I use soft cropping mode, images vary in height and width. So an image I want to be 110x110 in soft crop mode can vary and sometimes be 110x96 or whatever and because that makes the layout look crappy and some photos look landscape, what is the best way to solve this issue?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

It depends on the source image, aspect ratio is not magic, it must be maintained in order to lessen the proportional distortion.

You best option is to upload images that will maintain the same aspect ratio.

You can tweak your CSS to get a more consistent image size but be aware that doing so will create distortion the further it moves away from the proper aspect ratio.

share|improve this answer
    
Wow, forgot to choose an answer on this, my bad. Your answer was the most sensible and I have since worked out a compromise of giving people a crop tool to crop the images to exact proportions. –  DigitalSea Jul 24 '11 at 11:12
add comment

You can try using timthumb.php here: TimThumb

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.