WordPress.org

Ready to get started?Download WordPress

Forums

WPThumb
resizing to absolute dimensions and copping howto? (3 posts)

  1. geovais
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/wp-thumb/

  2. Joe Hoyle
    Human Made
    Plugin Author

    Posted 1 year ago #

    Hi There,

    Could you send me the image you are using ($myimg) so i can give it a test on my end?

    Thanks

  3. geovais
    Member
    Posted 1 year ago #

    Thank you for your response

    you could find the image here

    http://www.exipno.gr/images/stories/News/Diethni/lemonde.jpg

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic