# "Failed to optimize image" error from discourse-topic-previews-sidecar

**URL:** https://meta.discourse.org/t/failed-to-optimize-image-error-from-discourse-topic-previews-sidecar/408911
**Category:** Support
**Created:** [July 30, 2026, 12:27pm UTC](https://meta.discourse.org/t/failed-to-optimize-image-error-from-discourse-topic-previews-sidecar/408911 "2026-07-30T12:27:44Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 30, 2026, 12:56pm UTC](https://meta.discourse.org/t/failed-to-optimize-image-error-from-discourse-topic-previews-sidecar/408911/7 "2026-07-30T12:56:03Z")

</div>

> [@Takiro](#):
>
> ```plaintext
> /var/www/discourse/plugins/discourse-topic-previews-sidecar/lib/topic_previews/optimized_image_extension.rb:25:in 'TopicPreviews::OptimizedImageExtension#optimize'
> 
> ```

Looks like it’s the d-topic-previews-sidecar plugin. I’ll take a look and send them a PR for the core change.

> [@Takiro](#):
>
> Funny thing is, I also can’t upload an avatar on this forum too, suspecting that something similar is happening here too. At least here I get an error message about that “something went wrong”.

That’s surprising. We don’t have that plugin installed here, and avatar uploads seem to work for me. Could you try one more time? If you get an error, a screenshot would be great!

---

_[View the full topic](https://meta.discourse.org/t/failed-to-optimize-image-error-from-discourse-topic-previews-sidecar/408911)._
