Donna Botti

rants and musings about technology trends, application development and other stuff

  • Home
  • What I’m Sharing
  • Menu
  • Home
  • What I’m Sharing
post

WordPress Images

Posted on June 26, 2013 ·

Posted on June 26, 2013 ·

When working with a WordPress theme, it often looks good to have images in a page be the same size.  The default image sizes do not create an exact cropped image, but resize based on the original proportions of the image (except for thumbnails). You can add a custom image size and make the cropped parameter true. As long as the image you upload is bigger than the image size, all your images will be resized and cropped if necessary to your image dimensions.

Adding a custom image size is easy in WordPress, but these image sizes do not appear in the dropdown when you are adding images to a post or page.

Here is a snippet of code for your functions.php file that adds a custom image, cropped to a specific size, and then adds the new image to the list of standard WordPress sizes.

Filed Under: WordPress ·

Categories

  • Google Glass
  • Musings
  • WordPress

RSS Recent posts from Delos Inc

  • Memberships and Subscriptions? Read This Before You Get Fined
  • More People Are Watching YouTube Than Netflix on TVs
  • How Shopping Habits Are Changing Across Generations
  • AI-Generated Videos are Getting Shockingly Real

Subscribe

Get my business newsletter tips on social media, mobile web, and marketing.

Return to top of page
Copyright © 2012–2025 Donna Botti
Privacy Policy