# 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:** [23 januari 2026 om 04:41 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:** 1\
**Showing post:** 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:** [23 januari 2026 om 04:41 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)

---

_[View the full topic](https://meta.discourse.org/t/fix-use-full-image-for-lightbox-zoom-when-thumbnail-aspect-ratio-differs/394156)._
