This project has moved and is read-only. For the latest updates, please go here.

CMYK Images with more than 4 color planes

May 12, 2016 at 4:21 PM

I have following Problem: in professional graphics for Output, the cmyk Color space is used and in some case additionally Color planes for White or varnish. Photoshop can handle this formats for example in tif files. But the original .net function generates errors, for example during opening a tif in a picture Box with more than 4 Color planes. Is it possible with to open and Display such files? Or is it possible to delete the additional Color planes in order to generate a clean cmyk tif for Display in a Picture box?

May 12, 2016 at 8:24 PM
Edited May 12, 2016 at 8:25 PM
Have you tried it yourself? Can you share one on your images if you can't try it yourself? You might want to give my MagickViewer ( a try an see what happens when you open the file.
Sep 8, 2016 at 12:59 PM
Sorry for delay in reply.
Your MagickViewer can Show the Images correctly. But how can I make it in my own code with your library?

Sep 8, 2016 at 9:52 PM
I have no clue how your library is written but the source code for the MagickViewer is also open source. Feel free to borrow code from my MagickViewer and use that in your application.
Sep 9, 2016 at 9:02 AM
Ok. Let me clarify my Problem:

My code is I use pictureboxes to show tif-images. That works fine with tif in CMYK (four Color channels). But if i want to load a tif with more than four channels. e.g. CMYK-W (CMYK plus White (5. channel), the Picture box shows an error.

My first Workaround was to convert the tif CMYK-W into an RGB-Picture. That works, but if the White Channel covers the whole Image, the RGB-Image will Show only a White area, because the Whiet Channel ist the 5. Channel. Not so pretty, but better than an error.

In your Viewer the CMYK-W Image has been displayed the same way as in photoshop. Very, very fine.
I have looked in your code of the viewer, but I have not found the trick. Perhaps it is related to my use of Windows forms and your use of WPF?

An other fine Workaround would be, to eliminate the 5. Channel and save a 4-Channel Image for displaying in my program. Unfortunately I don't get it in the right way. I don't find the right commands of Magick.NET.

Can you help me?

Best Regards
Sep 9, 2016 at 2:52 PM
I have no idea how you get the image into your pricturebox. Maybe you could use the ToBitmapSource method?