Foundation staff images

Support Area Forums Foundation Foundation staff images

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question: http://clevelandvets.org
  • Author
    Posts
  • #31477
    Chris Jones
    Participant

    Hi Bill,

    What’s the method for changing the staff image sizes as far as how they are shown on the front end? It’s always an exercise in frustration with/for clients who send pics that are different resolutions, orientation, etc… When the theme auto crops my inbox blows up with complaints that it’s not “right”. Getting optimized photos from them usually ends in a lot of confusion and no continuity.

    Basically looking for a way customize the display of staff photos on the list and single pages… if that makes sense?

    Don’t read that as I’m frustrated with you or OT btw.

    Thanks

    #31478
    Bill Robbins
    Moderator

    Hey Chris,

    That’s an excellent question. The is a file inside the includes folder in the theme called images.php that creates some additional image sizes for WordPress to create when new images are uploaded. These are the two sizes that the theme creates and uses for the staff images:

    
    add_image_size('staff-full', 400, 300, true);
    add_image_size('staff-thumbnail', 300, 225, true);
    

    The staff-full is used on an individual staff member’s page and the thumbnail is set to be used on the listing.

    The add_image_size function in WordPress can be frustrating. Several years ago we all used a script called timthumb to resize images, but it ended up having a really nasty security flaw that led to thousands of sites being hacked. One thing it did do really well was let you resize images to an exact size. If the image was smaller, it would scale it up. If it was larger, it would scale it down and then crop it.

    The built-in function is similar. If an image is larger than the set size, it will scale it down until it hits one of the dimensions in size. Then it crops the other one dimension. You can also set it to scale down until both dimensions are within the set size if you’d rather.

    But it will not scale up and that can lead to some unexpected and head scratching results. If an image is equal to one of the dimensions and smaller than the other, then nothing happens at all. The image is used as is.

    With the current system, you’ll always get your best results by sizing all the images to the same dimensions before uploading. That gives the best consistency.

    You’re welcome to change the default image sizes. Just change the numbers in the snippet above. If you’d rather not crop the images at all, then change the true in each one to false. The changes will only affect images uploaded after that, so you’ll need to run the regenerate thumbnails plugin to change any existing ones.

    Hope that helps out,
    Bill

    #31479
    Chris Jones
    Participant

    Thanks Bill, helpful as always my friend.

    No to just get small clients to get me similar images….. oof

    cheers

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Foundation staff images’ is closed to new replies.