Tinrocket-LLC / TRMetalImageView

MIT License
17 stars 0 forks source link

Suggestion: color-manage the rendered image #2

Open mallman opened 3 years ago

mallman commented 3 years ago

I noticed TRMTKImageView uses CGColorSpaceCreateDeviceRGB() to define the color space used to render the image. This produces an image that isn't color-managed. The difference between what TRMTKImageView shows on-screen and what a color-managed app such as Preview shows can be quite different.

Using the color space defined on the MTKView to render the image will produce a color-managed image.