# Te grote categorieafbeeldingen

**URL:** https://meta.discourse.org/t/oversized-category-images/280320
**Category:** Bug
**Tags:** category-groups
**Created:** [18 augustus 2023 om 21:01 UTC](https://meta.discourse.org/t/oversized-category-images/280320 "2023-08-18T21:01:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [18 augustus 2023 om 21:01 UTC](https://meta.discourse.org/t/oversized-category-images/280320/1 "2023-08-18T21:01:46Z")

</div>

On 3.1 stable the subcategory images is blown up in size. What is the desired/default behaviour supposed to look like?

 ![Screenshot 2023-08-18 at 15.54.48](https://global.discourse-cdn.com/meta/original/4X/9/9/4/9946988381603f01578a9fb7c5469f530d594f1c.png)

It seems that in the `<img>` tag width and height parameters use a large value, not sure though where it’s pulled from.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [21 augustus 2023 om 13:27 UTC](https://meta.discourse.org/t/oversized-category-images/280320/2 "2023-08-21T13:27:13Z")

</div>

Ah, yes, ouchie.

 ![image too big and overflowing 🐈](https://global.discourse-cdn.com/meta/original/4X/f/5/e/f5e3c9f0a58b47342f60e6c8ad5d426258cf372c.jpeg)

I don’t know if it worked previously, as category images don’t display nicely in many cases: [Include category logo aspect ratio in setting description - #2 by Canapin](https://meta.discourse.org/t/include-category-logo-aspect-ratio-in-setting-description/264945/2)

I’m not familiar with this theme component, but it could be resolved with this CSS:

```css
.category-boxes .category-logo img {
    max-width: 100%;
    height: auto;
}

```

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/7/a/17a98ff17108befdbb1261c412b50337401365e1.jpeg)

This particular issue seems to be related to the component, but maybe better handling of category images in general could make this component inherit from a new behavior and display images nicely by default.

* * *

Fixed with

> [@Category Groups](https://meta.discourse.org/t/category-groups/200874/29):
>
> I’ve just merged a refactor of this component. Functionality should remain the same overall, with some bug fixes. [https://github.com/discourse/discourse-category-groups-component/pull/11](https://github.com/discourse/discourse-category-groups-component/pull/11) Behind the scenes this uses some modernized Ember, and eliminates template overrides, which can be a little fragile as far as Discourse customizations go. This should be fixed now This is fixed now, the groups will no longer apply to the subcategory layouts I’ve updated this, so category logos should be …

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [27 september 2023 om 15:29 UTC](https://meta.discourse.org/t/oversized-category-images/280320/3 "2023-09-27T15:29:15Z")

</div>


