WordPress.org

Make WordPress Core

Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#22838 closed defect (bug) (invalid)

RC5 Makes Bizarre Thumbnails of High-Aspect Images

Reported by: miqrogroove Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords:
Focuses: Cc:

Description

See attached screen shot. What the heck are those? Images cropped at completely random sizes?

Attachments (1)

22838.jpg (76.4 KB) - added by miqrogroove 16 months ago.

Download all attachments as: .zip

Change History (7)

miqrogroove16 months ago

comment:1 nacin16 months ago

"high-aspect"?

WordPress crops the thumbnails it displays, as you know. If a thumbnail is far wider than it is high, it errs on the side of caution and tries to show more of the image. There's no bug here. We could opt to improve thumbnail displaying in the future, but it is not happening in 3.5.

comment:2 nacin16 months ago

Shorter bug report: ridiculously wide images look ridiculously wide.

comment:3 DrewAPicture16 months ago

  • Keywords close added

This is expected behavior. The image is being scaled to fit the box, not cropped.

Version 0, edited 16 months ago by DrewAPicture (next)

comment:4 DrewAPicture16 months ago

When you upload an image, it goes through the normal process of having sized thumbnails created based on your media settings.

The modal takes the "medium" thumbnail and crops it in the view box which is ~125x125px give or take. The cropped version of that thumbnail is what you see.

This is expected behavior.

comment:5 miqrogroove16 months ago

  • Resolution set to invalid
  • Status changed from new to closed

Discussion with Drew helps at least explain what is happening in the screen shot. The crops are not based on "random" sizes, but they are also not based on the size of the image being represented. It is just showing the Medium resized image at 100% zoom for high-aspect images (of any size) while showing the Medium size image at 50% zoom in most other cases.

The result is that a 300x50 icon and a 900x150 photograph will both show up as narrow middle-crops of what should be a much larger picture. The 900x150 photo could easily fill the box, or could easily be resized to fit. As the intention is to not do those things, I guess there's nothing else to add here.

Thank you for considering it.

comment:6 helenyhou16 months ago

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