dlemstra / Magick.NET

The .NET library for ImageMagick
Apache License 2.0
3.47k stars 415 forks source link

Write TIFF corruption #432

Closed HEIC-to-JPEG-Dev closed 5 years ago

HEIC-to-JPEG-Dev commented 5 years ago

Prerequisites

Description

Open a HEIC image and save as TIFF. The output TIFF image is corrupt and cannot be read by Windows. Performing the same with an output to JPG works perfectly, as does PNG.

Steps to Reproduce

No errors produced. Windows cannot open the TIFF file

System Configuration

Windows 10 1809 and 1903

dlemstra commented 5 years ago

It appears that Windows does not support the YCBCR color space. You will need to change the color space of the image to sRGB before you save the image.

HEIC-to-JPEG-Dev commented 5 years ago

Thank you, that helped a little. I run through 60 HEIC files, previously, 0 converted to tiff successfully, with the color space change, 5 now convert successfully. 55 do not.

Windows Photo Viewer says "it appears that we do not support this file format"

[SOLVED] The read colo space needs to be sRGB and the compression format JPEG. This writes correct TIFF files for windows.