# אייקון קטגוריה מומר ל-JPEG

**URL:** https://meta.discourse.org/t/category-icon-converts-to-jpeg/375797
**Category:** Support
**Tags:** ux
**Created:** [25 ביולי,‏ 2025,‏ 10:19am UTC](https://meta.discourse.org/t/category-icon-converts-to-jpeg/375797 "2025-07-25T10:19:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tvavrda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tvavrda/32/480674_2.png) [@tvavrda](https://meta.discourse.org/u/tvavrda)
#### Post date: [25 ביולי,‏ 2025,‏ 10:19am UTC](https://meta.discourse.org/t/category-icon-converts-to-jpeg/375797/1 "2025-07-25T10:19:03Z")

</div>

בעבר השתמשתי בסמלי קטגוריות עם רקע שקוף (שימושי במיוחד כאשר יש גרסאות למצב בהיר וגם למצב כהה). כעת אני תמיד מקבל רקע לבן. הבנתי שכאשר אני מוריד אייקון ישן (שעדיין עובד) הוא PNG. אבל כאשר אני מוריד אייקון חדש שהועלה (PNG), הוא מורד כ-JPEG.

אני רואה בכך באג מכיוון שאני חושב שאין היגיון להמיר את הסמלים האלה ל-JPEG. יש לי שליטה מלאה על מה שאני מעלה, בניגוד לפוסטים בפורום שבהם אני יכול לדמיין שזה יכול להיות שימושי.

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [7 באוגוסט,‏ 2025,‏ 11:08am UTC](https://meta.discourse.org/t/category-icon-converts-to-jpeg/375797/3 "2025-08-07T11:08:39Z")

</div>

> [@tvavrda](#):
>
> But when I download the newly uploaded (PNG) icon, it downloads as JPEG.

> [@tvavrda](#):
>
> My png\_to\_jpg setting was on 95, so changed to 100 and it started working. But why now?

It looks like your issue is solved but I took a quick look into this anyway.

From looking at the code the png is converted to a jpg (which doesn’t support transparency) if the site setting value for `png_to_jpg_quality` is less than 100. I agree that there is room to improve the usability around these settings as it could be more intuitive.

The easiest solution is to keep the site setting at **100** to prevent any image conversion.

There are a couple of other pitfalls too, if the image was pasted or if the png dimensions are very large (ie. greater than 1280 \* 720). In both scenarios it will be converted to a jpg too.

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [17 ביוני,‏ 2026,‏ 11:27am UTC](https://meta.discourse.org/t/category-icon-converts-to-jpeg/375797/5 "2026-06-17T11:27:00Z")

</div>

This change should prevent needing to use any workaround in future. Now site assets bypass the PNG to JPG conversion:

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

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [17 ביוני,‏ 2026,‏ 11:27am UTC](https://meta.discourse.org/t/category-icon-converts-to-jpeg/375797/6 "2026-06-17T11:27:24Z")

</div>


