I want to resize a photo so to take a maximum width and if the height is bigger than my maximum height do a cropping. I use WP 3.42.
I use the code
echo ‘<img src=”‘.wpthumb($myimg,’width=780&height=358&resize=true&crop=1&crop_from_position=center,center&background-fill=solid’ ).'”/>’;
but it does not seem to do the crop
- The topic ‘resizing to absolute dimensions and copping howto?’ is closed to new replies.