If you try to upload a large PNG which needs to be resized to comply with
max image size kb you get an error:
lib/discourse.rb:57:in `exec': convert: improper image header `/tmp/image20200221-243-17ldizm.jpg' @ error/png.c/ReadPNGImage/4294.
If you change the extension of the image to
.jpeg it uploads fine!
It also works fine if you reset
max image size kb to the default, however, it seems to be renaming the image as a jpeg regardless.
Here’s the image: Dropbox - Screenshot 2020-02-21 at 14.06.44.png - Simplify your life
Edit: I’ve also just noticed this under the
max image size kb option:
The maximum image upload size in kB. This must be configured in nginx (client_max_body_size) / apache or proxy as well.
I don’t think I’ve done that - could it be causing it? (any examples on where to edit this?)