I was confusing add_image_size with set_post_thumbnail_size. The problem with the latter is that you can only set one ‘thumbnail’ size.
I wanted to be able to keep the original image intact and apply a custom crop to the thumbnail version of the image. I’m using multiple image sizes around the site as the ‘thumbnail’ though.
So the fix here is to change ‘half-size’ to ‘thumbnail’ wherever I want to display the cropped image. It’s a good idea to set ‘thumbnail’ as the largest image you will use it as. Because you will have to use CSS classes to resize it down to the other image size.
There could be some negative drawbacks to this though like when inputting a ‘gallery’ now, I’m likely to get the larger thumbnail image size instead of the standard I had set before.
Related Posts:
- Prevent WordPress from cropping GIF files
- How to crop thumbnail height to auto with set width
- the_post_thumbnail scaling not hard cropping
- Use get/the_post_thumbnail with Custom Size & Crop
- Why does the Hard Crop option Scale?
- Forcing a user to crop the featured image in a certain aspect ratio
- How to both crop (with tool) and resize thumbnails having only a max width constrain?
- Server B handling add_image_size() differently than Server A
- Image with large file size not cropping
- WordPress image crop probems
- Using catch_the_image to get the thumbnail size
- Featured Image Thumbnail Sizing
- How to get image title/alt attribute?
- How to set featured image to custom post from outside programmatically
- Generate Thumbnails only for Featured Images
- How to add post featured image to RSS item tag?
- Get featured image URL by page id
- wp_get_attachment_image_src() and custom sizes
- What’s the difference between post thumbnails and featured images (if any)?
- What is your take: TimThumb vs. WordPress Thumbnails? The great debate [closed]
- How to change the naming of the resized image files
- How to get featured post title & image using JSON API?
- Display thumbnail only on the very first post in the loop?
- Allow user to manually set crop area of default/custom image sizes on upload [closed]
- Display child pages on a parent and child page using Featured Thumbnails
- How to display a post’s Featured Image with this code?
- Conditional to grab parent page thumbnail URL
- Show featured image in sidebar
- Featured Image VS Post_thumbnail — has_post_thumbnail lies?
- The Thumbnail aspect Ratio Issue
- Cannot get post thumbnails to display
- List category posts – Thumbnails are not displaying
- Display Taxonomy Image on single.php
- Need to take the first image out of posts and set it as the featured image
- featured image metabox not showing on the default post types edit page
- Change featured image urls in database
- Show a default image
- Get smaller size of image, get_the_post_thumbnail
- Look Through Family Tree and Find Featured Image
- Different thumbnail sizes
- Add post-thumbnail after first paragraph including the caption
- wordpress get_the_post_thumbnail can’t set size
- How to print the thumbnail only if a post has a thumbnail
- Animated Gif as Featured Image
- Retrieve post thumbnail as array
- Single post layout based on featured image size
- Migrating problem – featured images
- Set Featured Image by URL Form Post
- Adding Images into API
- Stuck on save/upload featured images plugin
- adaptive featured images wordpress 4.4 grid
- ACF – Add/update featured image (for videos) by field [closed]
- oEmbed, thumbnails and wordpress
- Show last 2 image attachments from posts
- Set featured image from external URL
- Show Multiple Size URL of one Featured Image/Thumbnail?
- remove and disable image link in functions.php
- Get current post featured image ID
- Why does the_post_thumbnail output full sized images after activating post-thumbnails support?
- Can this be done? Create 50×50 thumbnails of all existing featured images?
- Query to delete all featured images and remove post meta?
- Add Image Size for Featured Image with Responsive Design
- Best Way to Display Posts by Tag (not category)
- Pull through featured image in a custom menu
- How do I get posts where image is larger than…?
- Category page with thumb is ok but can’t do the same with tags
- Programmatically set thumbnail via URL using DOM and XPATH – Where to add ELSEIF
- Retrieve a post’s featured image with PHP outside of WordPress
- Better way to show Description and image Captions
- Different size thumbnails on home and single pages
- Next Prev Post link rendering current post thumbnail
- How to add thumbnail images? (Set Featured Image doesn’t work)
- custom image size not being fetched
- Resizing images failing
- How to add a new thumbnail size only to a certain custom post type?
- Tag,php – how to get it to display featured post image? [closed]
- Featured images have disappeared in the Trending section only of my website
- Blog replace single post page featured image
- Removing extra large generated images disables all crops
- How to use tag in featured image
- How to automatically add first image of post as thumbnail?
- Change wording of default thumbnail metabox
- featured image metabox not moving custom post type
- How to convert feature image as background image
- about featured image
- Moving Featured Images
- Add Play Icon on thumbnail overlay for video post types
- How do I Get WordPress Featured image from Frontend
- Featured Image, and Image in post
- Get Post thumbnail without width/height attribute
- if statement for featured images
- Thumbnail size according to width and height
- Featured Image URL is Showing but not thumbnail
- Custom image sizes are not used
- Import Dummy Content and Post Thumbnails
- Source problem for children page image
- Fetch first image URL from post and set as featured image URL
- How to set featured image from a variable
- How to stop WordPress from creating native thumbnails?
- Hot to change resized image link on posts