This project has moved. For the latest updates, please go here.

CMYK Images with more than 4 color planes

May 12, 2016 at 3:21 PM
Hello,

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 magick.net 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?

Thanks
Michael
Coordinator
May 12, 2016 at 7:24 PM
Edited May 12, 2016 at 7: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 (https://magickviewer.codeplex.com/) a try an see what happens when you open the file.
Sep 8, 2016 at 11:59 AM
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?

Thanks
Coordinator
Sep 8, 2016 at 8: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 8:02 AM
Ok. Let me clarify my Problem:

My code is VB.net. 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
Coordinator
Sep 9, 2016 at 1:52 PM
I have no idea how you get the image into your pricturebox. Maybe you could use the ToBitmapSource method?