PSD: Added support to MCH1 and MCH2

- Multichannel images are treat as CMYK image when the number of channels are more than 1: when exists, channel 5 is used as alpha. Channels higher than 5 are discarded.
- Multichannel images are treat as Grayscaleimage when the number of channels are equals to 1.
- Device transactions removed (where possible)
- Fix clang-format issues
This commit is contained in:
Mirco Miranda
2024-12-23 23:58:40 +00:00
committed by Albert Astals Cid
parent 348ddce987
commit 894524f7e4
10 changed files with 71 additions and 89 deletions

View File

@ -220,7 +220,8 @@ The following defines can be defined in cmake to modify the behavior of the plug
PSD support has the following limitations:
- Only images saved by Photoshop using compatibility mode enabled (Photoshop default) can be decoded.
- Multichannel images are treated as CMY/CMYK and are only loaded if they have 3 or more channels.
- Multichannel images are treated as CMYK if they have 2 or more channels.
- Multichannel images are treated as Grayscale if they have 1 channel.
- Duotone images are treated as grayscale images.
- Extra channels other than alpha are discarded.