WordPress.org

Ready to get started?Download WordPress

Forums

How to crop first, then resize? (4 posts)

  1. danielkwan
    Member
    Posted 2 years ago #

    The way resizing and cropping works in add_image_size is it resizes the image first, and then crops the image. Is there some way to crop to a desired size first, and then resize?

    For example, say I have full images of logos that are all 1000x1000 px but the logos themselves only takes up the middle 600x600 of the images. I'd like my thumbnails of those images to show just the logos, so they should first be cropped to 600x600 first and then resized to the thumbnail size (eg., 100x100).

    How would I go about doing something like that? Thanks for any help!

  2. RichardWPG
    Member
    Posted 2 years ago #

    I think you just need a photo editor tools to crop or resize then only you upload it to your wordpress site.

  3. danielkwan
    Member
    Posted 2 years ago #

    I need the full image to not be cropped.

  4. peter achutha
    Member
    Posted 2 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic