Lightroom: HTML Gallery preview broken

  • 2
  • Problem
  • Updated 7 years ago
  • (Edited)
The preview for the HTML gallery in the Web module is broken. Each row is one image short. The missing image appears in the next row in a single image row.

The generated gallery is fine.
Photo of TK

TK

  • 531 Posts
  • 112 Reply Likes

Posted 8 years ago

  • 2
Photo of Baichao Li

Baichao Li, Lightroom Quality Engineer

  • 19 Posts
  • 2 Reply Likes
Hi TK,
Which version of Lightroom are you using? could you please give more detail about this problem? operation steps, platform?
Photo of TK

TK

  • 531 Posts
  • 112 Reply Likes
Hi Baichao,
I think I always had this problem since the very first LR version I used (LR 3 beta).

I currently use 3.4RC on Windows XP SP3.

Could it be related to the display dpi settings? I'm pretty sure I'm using a non-standard system font size. However, all of LR's GUI looks fine, i.e., I don't have any font size problems or other display format issues.
Photo of TK

TK

  • 531 Posts
  • 112 Reply Likes
I narrowed down the source of the problem.

In "grid.html" there is a "borderFunc" definition that returns the cell decoration depending on the cell's location.

If I modify it to never generate the 'borderRight' style then the undesired wrap over of the last cell in a row into the next row does not happen.

Somehow the preview within LR does not render the 'borderRight' style correctly. The RHS stroke is there but the respective cell jumps to the next row.

I fixed the problem for me by modifying "grid.html" to feature two grid generation schemes -- one for the preview and one for the HTML generation. My previews within LR now lack a stroke on the RHS of the grid but I'm fine with that.
Photo of TK

TK

  • 531 Posts
  • 112 Reply Likes
FWIW, this problem seems to be caused by non-standard Windows "Appearance" settings. IIRC, LR4 beta web gallery previews looked fine on a new Win 7 machine until I did my usual customisation (font sizes, font family, icon spacing, etc).

Something in the web gallery preview seems to rely on a standard value for one of these appearance settings.