# Tiles Image Gallery

**URL:** https://meta.discourse.org/t/tiles-image-gallery/81950
**Category:** Theme component
**Tags:** deprecated
**Created:** [March 2, 2018, 6:56am UTC](https://meta.discourse.org/t/tiles-image-gallery/81950 "2018-03-02T06:56:34Z")
**Posts on this page:** 1
**Showing post:** 54

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [July 25, 2018, 6:43am UTC](https://meta.discourse.org/t/tiles-image-gallery/81950/54 "2018-07-25T06:43:08Z")

</div>

Hi @southpaw

Good catch! I’ve updated Slick and Tiles to remove the buttons from the About me editor. Thanks for reporting.

> [@Canapin](#):
>
> I don’t want to decrease the max image size which is very fine by default and I can’t ask my users to be aware of their image size each time they want to post a gallery in order to prevent the overlap issue that was described twice in this topic. Would be nice if we could just force the lightbox on any image size.

Fair enough. Let’s try this (rough idea for now but worth exploring)

1. Set both `max_image_width` and `max_image_height` to 0
2. Add this to a theme component and add it to your active theme

```plaintext
.cooked img:not(.thumbnail):not(.emoji) {
    width: unset;
    max-width: 100% !important;
    height: auto;
    max-height: unset !important;
}

#reply-control .d-editor-preview img:not(.thumbnail):not(.emoji) {
    width: unset;
    max-width: 100% !important;
    height: auto;
}

.mfp-bottom-bar {
    min-width: 350px;
}

```

**The good:**  
All images uploaded to posts will now have lightboxes. Even very tiny ones. So you can use them in Slick / Tiles

**The bad:**  
While all images will display properly (no overflow) and maintain their original aspect ratios (no stretching / squeezing), really large images will not be resized (read: full file size). The image is properly sized in the post with CSS but will still be in full size. Depending on your usage, this can be a performance issue. The [https://meta.discourse.org/t/lazyload-images/90472](https://meta.discourse.org/t/lazyload-images/90472) theme component may come in handy here.

**The ugly:**  
This requires old posts to be rebaked to take effect on them.

---

_[View the full topic](https://meta.discourse.org/t/tiles-image-gallery/81950)._
