Image uploads - color profiles dropped

I think this is a bug, though maybe it is a feature to make the file size smaller?

I work in the photo industry, in our forum sometimes people post images for others to try to troubleshoot printing issues. The image uploaded could be in a color space other than sRGB like Adobe 98 or ProPhoto RGB.

If I post an image to our Discourse forum that is Adobe 98, when I download that image the profile has been stripped and now it is untagged which is really bad as there is no way to know what the original color space was.

Is this intended? is there a way to not remove the color profile?

By default, image metadata is removed from uploads. However, there’s a site setting for this.

If you’d like the metadata to be preserved, search for strip_image_metadata in the settings and you should see this:

Capture7

Disabling this setting means the metadata will not be stripped from future image uploads.

이미지 메타데이터를 제거한다는 것은 색 프로필을 무시해야 한다는 뜻이 아닙니다.

색 감마 정보가 손실된 이미지는 다른 이미지로 렌더링됩니다. 그리고 이 기능은 매우 제한적인 수의 이미지 형식만 지원합니다.

예를 들어, AVIF는 이미지 메타데이터를 전혀 잃지 않지만, 생성된 썸네일은 색상 관리(color managed)가 적용되지 않습니다.

아래 이미지를 참조하십시오. Discourse가 미리보기 이미지를 로드할 때까지 인내심을 갖고 기다린 후, 원본 이미지를 클릭하여 확장하십시오. 두 이미지 사이의 색상 차이를 주목하십시오.

맞아요! 확인해 보니 원본 이미지가 더 강렬한 빨강, 노랑, 초록색 등을 가지고 있네요. 이에 대한 답변은 없지만, 여러분이 보시는 것을 저도 보고 있다는 것을 확인해 드립니다.

이것이 Discourse에서 항상 문제가 되어왔는지 흥미롭네요. avif 파일(저는 많이 사용하지 않는 형식)에서만 그런 건지, 다른 더 일반적인 형식에서도 이런 현상을 볼 수 있는지 궁금합니다.

이 현상은 이미지 메타데이터 손실의 한 예입니다. 이 손실은 AVIF로만 제한되지 않으며, Discourse가 지원하는 모든 이미지 형식에서 메타데이터가 제거됩니다. AVIF가 선택된 이유는 썸네일에서 이미지 메타데이터가 제거되는 반면, 원본 이미지는 처리되지 않기 때문입니다.

실제로 이는 두 가지 버그 때문입니다:

  1. Discourse는 모든 이미지에 대해 메타데이터를 제거한다고 주장하지만, 실제로는 그렇지 않았습니다.

  2. 메타데이터를 제거하면 색역(color gamut) 정보까지 함께 제거되어 이미지의 색 재현성이 훼손됩니다.