Image upload size/resize question

After mashing buttons for awhile to figure things out, this is what I think is happening:

  • With a default install, client_max_body_size == max image size kb, images will not be resized.

  • Increasing client_max_body_size will allow larger uploads, which Discourse will then attempt to resize under the limit set in max image size kb

  • Despite the description which implies otherwise, max image size kb doesn’t actually limit upload sizes (this is super confusing!)

  • Upload sizes are solely set with nginx’s client_max_body_size

  • When resizing, JPEG’s stay JPEG’s with good results
    PNG’s are converted to JPG’s with acceptable results
    Animated GIF’s stay GIF’s with generally lousy results

Is this all correct? If so, it seems like the sort of thing that should be explained a little better since an out of the box installation doesn’t do any image resizing even though that is a feature many people might want and it isn’t clear at all from available documentation how to enable it.

5 Likes