A user reports that image metadata is preserved in PNG uploads but stripped from JPG uploads on their Discourse site, despite having strip image metadata unchecked. Falco explains this is due to a conflict with the composer media optimization image enabled feature, which is incompatible with preserving metadata. After disabling this feature and refreshing the browser, the user confirms metadata is now retained in JPGs, though uploads become larger and slower. The user suggests a better configuration interface to prevent such conflicts. Falco acknowledges the issue and plans to implement a system to prevent contradictory settings, leaving the bug open for future resolution. Falco also references a related GitHub PR addressing the issue.
Many thanks, @Falco. I need to explore this this evening. Discourse could perhaps go further and feature a popup or even a message if counteracting or counterintuitive settings are being made by admins?
@Falco Indeed refreshing my browser tab worked after updating the settings! It also seemed that the upload was considerably slower. And the downloaded file — with the metadata fully intact — was 10× the size when compared to previous iterations. All that makes sense, of course.
I realize that there are different use‑cases in play. The default behavior is useful for forums that are social in nature. But my application is to support science and research. And it is better that users make decisions about the appropriate format, resolution, and metadata for their various uploads. And that discourse simply passes the files through uncontaminated.
Given that there are logical bundles of settings, perhaps some kind of higher level configuration or interpretation would be useful?
Again, thanks for your support. And I guess you saw this recent posting too, regarding configuration hints: