I’m the admin on a self-hosted Discourse instance for local photographers where we mostly upload high quality media. I’d like to change the default image width for the composer to resize down to but I’m not seeing it anywhere in the settings.
The ask bot told me to look for composer media optimization image resize dimensions threshold but I wonder if this setting has been deprecated or hidden because the only setting I can find is composer media optimization image enabled
Basically I just want images uploaded with the composer to be resized to a maximum width of 1440px instead of 1920px, and possibly have the option to only resize the longer side of the image (eg. a portrait image should be resized on its height instead of width.)
Is there a way to verify that I’ve configured it properly? Hard refresh (Ctrl+F5) didn’t seem to work, so I rebuilt the app anyway which didn’t make a difference either. Images are still resizing down to 1920px.
/var/www/discourse# rails c
Loading production environment (Rails 8.0.5)
discourse(prod)> SiteSetting.composer_media_optimization_image_resize_dimensions_threshold
=> 1440
I’ve set both of these values to 1440 and then to be safe did /var/discourse/launcher rebuild app but images are still resizing to 1920.
edit: actually after doing a rebuild and then going back to rails, the two variables are back to being undefined. Could something be overwriting them back to default?
Actually even after exiting from rails and just going back in, I get this:
discourse(prod)> composer_media_optimization_image_resize_dimensions_threshold
(discourse):1:in '<main>': undefined local variable or method 'composer_media_optimization_image_resize_dimensions_threshold' for main (NameError)