Discourse incorrectly detecting uploaded file as an image

Wow! This ia a phenomenal analysis! Thank you!

Some quick questions:

  1. So with these changes, the file won’t be detected as an image and will be uploaded like a non-image and displayed to the right of the post?

  2. If I understand correctly, you’re suggesting I make these tweaks in my local Discourse instance to try this out and/or use this until it is included in a future Discourse release. But how do I do this? (I am an experienced software developer but have limited experience with Docker and none with Ruby.)

  3. The FastImage call that would need to be tweaked is in models/upload.rb, right?