Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13404 closed defect (bug) (invalid)

Crop selections for featured images are not used

Reported by: fraabye Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Media Keywords: post thumbnails, add_image_size, image cropping, featured image
Focuses: Cc:


I am experiencing the following with WordPress 3.0-beta2-14640 when adding post thumbnail support:

My thumbnail setting in wp admin is 170x60 and these are in my functions.php:

set_post_thumbnail_size( 170, 60, true); // Normal post thumbnails
add_image_size('aside-image', 179, 179, true); // Aside images
add_image_size('employee-image', 179, 224); // Employee images

When selecting a thumbnail crop it shows up correctly in wp admin.

The crop shown by get_the_post_thumbnail() in my is a hard crop centered on the image.

The square image crop for all other uses than thumbnail appears to work fine.

I have tried:

  • Deleting the image, including all variants in wp-content
  • Regenerating thumbnails using Viper007Bonds Regenerate Thumbnails 2.0.2.

Can anybody confirm this behaviour?

I have attached a jpeg illlustrating the different crops.

I couldn't find any related tickets in Trac, my apologies if I overlooked something. The closest thing I could find was ticket 11913. I don't know if they are related?

Feel free to contact me for further information if necessary.

Attachments (1)

wp-crop-error.jpg (56.1 KB) - added by fraabye 8 years ago.
Examples of differences in selected and shown thumbnail crops.

Download all attachments as: .zip

Change History (5)

8 years ago

Examples of differences in selected and shown thumbnail crops.

#1 @anointed
8 years ago

  • Cc anointed added

#2 @flashingcursor
8 years ago

The front-end behavior is correct.

set_post_thumbnail_size( 170, 60, true);

The "hard crop" setting is intended to crop equally from top and bottom.

#3 @flashingcursor
8 years ago

  • Cc flashingcursor added
  • Resolution set to invalid
  • Status changed from new to closed

#4 @nacin
8 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.