# Oversized category images

**URL:** https://meta.discourse.org/t/oversized-category-images/280320
**Category:** Bug
**Tags:** category-groups
**Created:** [August 18, 2023, 9:01pm UTC](https://meta.discourse.org/t/oversized-category-images/280320 "2023-08-18T21:01:46Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [August 21, 2023, 1:27pm 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 …

---

_[View the full topic](https://meta.discourse.org/t/oversized-category-images/280320)._
