Search found 76 matches

by pablobhz
2017-03-22T09:52:53-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Re: Missing black channel when using MagickCollection.Combine()

The directory contains: 17,240,150 8FILES_IMPOSED_4UP_BACK.PDF (C)00 - Copy.TIF 20,725,476 8FILES_IMPOSED_4UP_BACK.PDF (C)00.TIF 165,843 8FILES_IMPOSED_4UP_BACK.PDF (Imposition)00.TIF 15,566,357 8FILES_IMPOSED_4UP_BACK.PDF (K)00.TIF 20,748,861 8FILES_IMPOSED_4UP_BACK.PDF (M)00.TIF There doesn't see...
by pablobhz
2017-03-22T08:59:32-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 17588

Re: Combine 4 grayscale images into a final CMYK image

Okay. So i got it wrong. The color i want to add, is composed by this amount on each channel. Like i mentioned before: 0% cyan 10% magenta 60% yellow 0% black The image color is Grayscale and when combining it to a CMYK image, this is the color the image should have. I supposed it would be like conv...
by pablobhz
2017-03-22T08:56:32-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Re: Missing black channel when using MagickCollection.Combine()

Check the google drive folder. https://drive.google.com/drive/folders/0B5ZLEEQh3_YIZlBuMG9IRVNDODA?usp=sharing Tiffs are there. Ignore the Imposition (its the spot color, i'll figure out later how to combine it). Edit: And i tried to set the colorspace to CMYK on MagickNET using (MagickImage image =...
by pablobhz
2017-03-22T06:02:20-07:00
Forum: Magick.NET
Topic: Missing black channel when using MagickCollection.Combine()
Replies: 13
Views: 18191

Missing black channel when using MagickCollection.Combine()

Hello Everyone. I'm using the Combine method from MagickCollection to combine 4 grayscale images into a final one (CMYK). However, i'm having a weird situation: When looking the final image from Windows Photo Viewer\Photoshop , the black channel is missing. When looking from Google Drive Preview, th...
by pablobhz
2017-03-21T21:33:48-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 17588

Re: Combine 4 grayscale images into a final CMYK image

fmw42 wrote:
2017-03-21T21:15:20-07:00
IM does not support spot colors as far as I know.
And if i add it as a new color ?
Ex: i have color X
It is composed by:
0% cyan
10% magenta
60% yellow
0% black

How would i combine an image with this color composition (and a white background) into my existant CMYK image ?
by pablobhz
2017-03-21T21:07:57-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 17588

Re: Combine 4 grayscale images into a final CMYK image

Got it done. I was looking this thread: http://www.imagemagick.org/discourse-server/viewtopic.php?t=21159 Then i saw an sample command: convert imgC imgM imgY imgK -set colorspace CMYK -negate -combine output_image Should've set the colorspace to CMYK and negate also. Output is fine now. However, no...
by pablobhz
2017-03-21T20:42:50-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 17588

Re: Combine 4 grayscale images into a final CMYK image

It does not look like you changed the colorspace to CMYK per dlemstra's suggestion. I do not use Magick.NET, but as a quick test, try negating the image (command line equivalent is -negate). If that is close then you need to do what dlemstra suggests. But i did The entire command is: convert c.tif ...
by pablobhz
2017-03-21T20:09:40-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 17588

Re: Combine 4 grayscale images into a final CMYK image

Here's the tests i've done. Using MagickCollection (MagickNET) using (MagickImageCollection images = new MagickImageCollection()) { // Add the first image MagickImage first = new MagickImage(@"C:\DI_PLOT\Bitmaps\8FILES_IMPOSED_4UP_BACK.PDF (C)00.TIF"); images.Add(first); // Add the first image Magic...
by pablobhz
2017-03-18T20:12:51-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 17588

Re: Combine 4 grayscale images into a final CMYK image

You could use the Combine method of the MagickImageCollection for this. Only have a phone atm so I cannot easily create an example for you. This method works for RGB output only, as i could see. It has no mentions to a CMYK combining. The input is 4 files, output will be one file. Unless there's so...
by pablobhz
2017-03-16T05:42:20-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 17588

Combine 4 grayscale images into a final CMYK image

Hello Everyone. Lemme explain my scenario. I have an old software, that takes 4 tiff images (grayscale), and combine them into a final CMYK colored image. I already know that each one of those images, corresponds to one color channel ex: image 1 - foo(c).TIFF image 2 - foo(m).TIFF and so goes on. I ...
by pablobhz
2017-02-20T08:21:52-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 27101

Re: How to process each pixel of the image maximally quickly?

Just tried IvanShuvin solution. private static decimal inkGrayLevel(MagickImage img, bool inPercent = true) { decimal totalPixelValue = 0; decimal totalPixelValues = (img.Width * img.Height) * 255; int[] color = new int[3]; for(int y=0; y < img.Height; y++) { PixelCollection pc = img.GetPixels(); in...
by pablobhz
2017-02-17T04:10:47-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 27101

Re: How to process each pixel of the image maximally quickly?

I need to scan each pixel of the image in order to get the BitMap Gray level. In the end, i created a function to do the job: private static decimal GetGrayLevel(Bitmap input, bool inPercent = true) { decimal totalPixelValue = 0; decimal totalPixelValues = (input.Width * input.Height) * 255; for (in...
by pablobhz
2017-02-16T17:24:01-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 27101

Re: How to process each pixel of the image maximally quickly?

Image Width: 461 Image Height: 7370 Yeah, i just noted that i declared the array with the wrong size. But this wouldn't affect my issue, i think. What i want is a fast way to scan all image pixels using ImageMagick. The traditional way using System.Bitmap takes a minute or more for every image(and i...
by pablobhz
2017-02-16T16:14:20-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 27101

Re: How to process each pixel of the image maximally quickly?

Sorry to revive this topic, but , any of you implemented this on the latest MagickNET release ? I'm getting a outofmemory exception. Here's what i tried to do - i tried to adapt his original solution: private static decimal inkGrayLevel(MagickImage img, bool inPercent = true) { decimal totalPixelVal...
by pablobhz
2016-12-27T22:02:46-07:00
Forum: Magick.NET
Topic: clone a magickimage to a bigger one
Replies: 1
Views: 11474

clone a magickimage to a bigger one

ello everyone. I've searched a bit around the discussions\forums, but i couldn't find much information about how to achieve what i'm trying. Also, i don't see much Magick.NET documentation - where i could obtain it :) What i'm trying to do is: I have an very large MagickImage object (9920 width , 70...