Forums

[resolved] Crop (not resize) images? (4 posts)

  1. sparklogix
    Member
    Posted 1 year ago #

    I'm uploading images that are not square, but I need the thumbnails to be center-cropped to make a 150px square, not just resize them, thereby squishing the proportions (ex: making a horizontal pic too squeezed from left to right to try and fit it into a square).

    Of course the image would need to be resized on the largest side down to 150px but then the sides (or top, depending on the orientation of the image) would be cropped to make the square.

    I've looked around, but can only seem to find things that will resize the image, not crop it.

    Hope I'm making sense. It doesn't seem to be coming across the way I'm thinking it. Thanks!

  2. ambrosite
    Member
    Posted 1 year ago #

  3. sparklogix
    Member
    Posted 1 year ago #

    It did, thank you so much!

  4. alvaron
    Member
    Posted 1 year ago #

    Hello there, maybe my code can help you...

    I use the native wp_get_attachment_image to make a gallery of cropped thumbnails

    wpworks.wordpress.com/2010/12/27/image-gallery-with-image-crop/

    best regards!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.