Forem Creators and Builders 🌱

Ternox
Ternox

Posted on

Convert images to webp

Hello. I saw that on this Forem the uploaded images are converted to webp. How did you do it?

Latest comments (6)

Collapse
 
ce7in profile image
Muhammed Cetin

You need to modify imgproxy.env file in the envs folder.

All you need to do is pasting the following line at the end of the file.

IMGPROXY_ENFORCE_WEBP=true

Then, restart Imgproxy by running the code below,

sudo systemctl restart forem-imgproxy.service

and Rails.

sudo systemctl restart forem-rails.service

Collapse
 
leopoldcod profile image
Leopoldcod

Tkanks

Collapse
 
ben profile image
Ben Halpern

Thank you for chiming in here Muhammed!

Collapse
 
ce7in profile image
Muhammed Cetin • Edited

Thank you for all your efforts to develop this open-source community base, I mean Forem.

Before you published it, I had just started to develop a similar project with Laravel to meet my needs. Then, it was published and made me save a lot of time.

I don't have much time for a while because of my projects, so I am just trying to answer others' questions as much as possible.

Final note: I had answered your post in DOZ AI. Because I have not set SMTP settings, you won't be able to receive any e-mail notification.

Thread Thread
 
ben profile image
Ben Halpern

I think you should prioritize getting everything set up and configured (that is the biggest pain and pitfall that we need to make easier on Forem)

So that is to say, full SMTP stuff, and comb through config and make sure everything is set, including marking enough tags as supported, and then selecting the right ones for onboarding in config.

Good luck! I'm going to ask questions about the nature of the community itself over on the site.

Collapse
 
ternox profile image
Ternox

thank you!