# FIX: use full image for lightbox zoom when thumbnail aspect ratio differs

**URL:** https://meta.discourse.org/t/fix-use-full-image-for-lightbox-zoom-when-thumbnail-aspect-ratio-differs/394156
**Category:** Bug
**Tags:** lightbox
**Created:** [January 23, 2026, 4:41am UTC](https://meta.discourse.org/t/fix-use-full-image-for-lightbox-zoom-when-thumbnail-aspect-ratio-differs/394156 "2026-01-23T04:41:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![small-lovely-cat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/small-lovely-cat/32/553546_2.png) [@small-lovely-cat](https://meta.discourse.org/u/small-lovely-cat)
#### Post date: [January 23, 2026, 4:41am UTC](https://meta.discourse.org/t/fix-use-full-image-for-lightbox-zoom-when-thumbnail-aspect-ratio-differs/394156/1 "2026-01-23T04:41:55Z")

</div>

For these steps:

Using a grid to cover two posts, and manually set the width of these two photos, like:

```plaintext
[grid]
![IMG_2938|345x265](upload://bM6E67BaB4LjgBYEZfZ74Uc0jXd.jpeg)
![IMG_2939|345x265](upload://4qZSYjyvDA7ldGQqHjLwU6sAoYr.jpeg)
[/grid]

```

(The original size of each image is 690\*265)

The root cause of this is that the ratio of the thumbnail differs greatly from that of the full-sized image, and lightbox failed to handle that, causing a flicker.

Bug can be seen from clicking the two images below:

 ![IMG_2938](https://global.discourse-cdn.com/meta/original/4X/5/2/8/52880dcda3b68997ce69b36d3db0748564aba5e3.jpeg)  
 ![IMG_2939](https://global.discourse-cdn.com/meta/original/4X/1/f/1/1f15fa0f7f27fa0580c7e8bb860637e52c3fdde3.jpeg)

A PR has been raised here:

[https://github.com/discourse/discourse/pull/37284](https://github.com/discourse/discourse/pull/37284)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [January 29, 2026, 4:09pm UTC](https://meta.discourse.org/t/fix-use-full-image-for-lightbox-zoom-when-thumbnail-aspect-ratio-differs/394156/4 "2026-01-29T16:09:12Z")

</div>

Thanks for the contribution! the PR has been merged and we’ll see how it goes.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 30, 2026, 1:43am UTC](https://meta.discourse.org/t/fix-use-full-image-for-lightbox-zoom-when-thumbnail-aspect-ratio-differs/394156/5 "2026-01-30T01:43:21Z")

</div>


