Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24307 closed defect (bug) (worksforme)

Twenty Thirteen: display issues if gallery images are smaller than 300x300

Reported by: professor99's profile professor99 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Bundled Theme Keywords: close
Focuses: Cc:

Description

WordPress 3.6-beta2-24227

Browser: Only tested on Firefox 20

Gallery excerpts on the home page are magnified.

Also missing captions on both excerpt and gallery page.
This may be addressed by #23584 "closed defect (bug) (fixed)
Twenty Thirteen: Gallery captions are hidden" but I'm not sure if captions were still meant to be hidden or displayed.

On the gallery page the centered images look out of place. Much better to displayed them from the left side as done for 2012.

See attached files for screenshots.

Also attached 2012 gallery screenshot for comparison which is the same on both the excerpt and the gallery page.

Andy Bruin

Attachments (8)

gallery2013excerpt.jpg (85.0 KB) - added by professor99 11 years ago.
Gallery 2013 Excerpt
gallery2013main.jpg (92.1 KB) - added by professor99 11 years ago.
Gallery 2013 Main
gallery2012.jpg (75.4 KB) - added by professor99 11 years ago.
Gallery 2012
24307.patch (1.5 KB) - added by lancewillett 11 years ago.
24307.1.patch (845 bytes) - added by lancewillett 11 years ago.
Alternate idea using a custom image size
24307.2.diff (882 bytes) - added by obenland 11 years ago.
Centers galleries on index pages.
24307.1.1.diff (984 bytes) - added by obenland 11 years ago.
Patch builds on lancewillett's patch, cropping the image and serving only thumbnails on mobile views, where we display galleries in two columns of thumbnail sized images.
style.css.patch (779 bytes) - added by tyshkev 11 years ago.
removing these two rules seems to solve this issue

Download all attachments as: .zip

Change History (22)

@professor99
11 years ago

Gallery 2013 Excerpt

@professor99
11 years ago

Gallery 2013 Main

@professor99
11 years ago

Gallery 2012

#1 @professor99
11 years ago

Forgot to add image details

Zen Size:98px * 98px, Title: test, Caption: zen
ZipIcon Size: 32px * 32px, Title: ico_zip, Caption: howdy

#2 @kovshenin
11 years ago

  • Milestone changed from Awaiting Review to 3.6

Reproduced with trunk. If the gallery images are less than 300x300, the tiled gallery resizing looks really weird.

#3 @lancewillett
11 years ago

  • Summary changed from Twenty Thirteen: Gallery excerpts are magnified and missing captions to Twenty Thirteen: display issues if gallery images are smaller than 300x300

This seems pretty edge case, but we should try to address anyway.

#4 @lancewillett
11 years ago

  • Keywords needs-patch added

I'd also like to relook at how we load all large versions for the gallery images on index. We should try a different technique that only loads the first image in large size, and the rest thumbnail.

@lancewillett
11 years ago

#5 @lancewillett
11 years ago

Patch is a quick attempt at getting the first image in a gallery, and outputting "large" for only that one image. Not working fully ... but it's the idea.

@lancewillett
11 years ago

Alternate idea using a custom image size

#6 @lancewillett
11 years ago

  • Priority changed from normal to high

#7 @obenland
11 years ago

I think 24307.patch​ would set a bad precedent.

I do like .1, though we have to be aware that galleries that were created prior to switching to Twenty Thirteen, will fall back to the 'full' image size.

@obenland
11 years ago

Centers galleries on index pages.

@obenland
11 years ago

Patch builds on lancewillett's patch, cropping the image and serving only thumbnails on mobile views, where we display galleries in two columns of thumbnail sized images.

#8 @lancewillett
11 years ago

  • Keywords has-patch added; needs-patch removed

Oh, @obenland -- pro tip for the "new Trac" -- if you use .patch it'll look nicer in the diff view. I found it out via Westi. :)

#9 @lancewillett
11 years ago

In 24285:

Twenty Thirteen: ensure galleries are displayed correctly (centered) on both single and indexed views, props obenland. See #24307.

@tyshkev
11 years ago

removing these two rules seems to solve this issue

#10 @lancewillett
11 years ago

@tyshkev But does it change the layout? The designer's intent was for the first image in the gallery to be 300px by 300 px.

#11 @lancewillett
11 years ago

In 24333:

Twenty Thirteen: create new image size for galleries, at 300 x 300 so that "large" image size doesn't load for a resulting thumbnail on index views. See #24307.

#12 @lancewillett
11 years ago

In 24338:

Twenty Thirteen: revert adding new image size for galleries., Using existing medium size instead, and thumbnail for mobile views. See #24307.

#13 @lancewillett
11 years ago

  • Keywords 2nd-opinion close added; has-patch removed
  • Priority changed from high to normal

Last item to work on before closing this ticket -- how to handle case of images smaller than 300? I can't think of a way with pure CSS. We might just have to live with it.

Opinions?

#14 @lancewillett
11 years ago

  • Keywords 2nd-opinion removed
  • Milestone 3.6 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

I've thought about this a bit more, doesn't seem a simple way to avoid using the special styles for images smaller than 300. It'll just be a known issue, which can be avoided by 1) not using small images or 2) using a standard post for the gallery.

Note: See TracTickets for help on using tickets.