Search found 67 matches

by pablobhz
2018-09-07T12:35:21-07:00
Forum: Magick.NET
Topic: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)
Replies: 9
Views: 6278

Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)

Hello Everyone. I"ve been trying to rotate 5 images simultaneoulsy, using a Parallel.For However, i'm always having a Magick.OutOfResource (something like it) exception. Is there anything i can do to change the max memory MagickNET can allocate ? This is the code that shows the problem: Parallel.For...
by pablobhz
2017-08-14T19:09:42-07:00
Forum: Magick.NET
Topic: Issue when combining images
Replies: 7
Views: 10111

Re: Issue when combining images

The input order is indeed important. I get the correct output with the following code: using (MagickImageCollection images = new MagickImageCollection()) { images.Add(@"i:\CMYK\8FILES_IMPOSED_4UP_BACK.PDF (C)00.TIF"); images.Add(@"i:\CMYK\8FILES_IMPOSED_4UP_BACK.PDF (M)00.TIF"); images.Add(@"i:\CMY...
by pablobhz
2017-08-14T18:57:12-07:00
Forum: Magick.NET
Topic: Noob question
Replies: 1
Views: 4782

Noob question

I'm sure its a noob question.
But whats the difference of using IMagickImage instead of MagickImage only ?

Thanks
by pablobhz
2017-08-14T10:02:27-07:00
Forum: Magick.NET
Topic: [Closed] Rotating images before using image.Composite
Replies: 2
Views: 6652

Re: [Closed] Rotating images before using image.Composite

You need to store the rotated image somewhere i.e: MagickImage mysampleImage = new MagickImage(filePath); mysampleImage = mysampleImage.Rotate(90); mysampleImage.Write(@"C:\TEST\rotatedimage.png"); If you're working with multiple images (you said 6), why don't you create a List<MagickImage> or an Ma...
by pablobhz
2017-08-03T12:36:45-07:00
Forum: Magick.NET
Topic: Issue when combining images
Replies: 7
Views: 10111

Re: Issue when combining images

The input order is indeed important. I get the correct output with the following code: using (MagickImageCollection images = new MagickImageCollection()) { images.Add(@"i:\CMYK\8FILES_IMPOSED_4UP_BACK.PDF (C)00.TIF"); images.Add(@"i:\CMYK\8FILES_IMPOSED_4UP_BACK.PDF (M)00.TIF"); images.Add(@"i:\CMY...
by pablobhz
2017-08-03T08:25:42-07:00
Forum: Magick.NET
Topic: Issue when combining images
Replies: 7
Views: 10111

Re: Issue when combining images

convert IMAGE_BLACK.TIF IMAGE_CYAN.TIF IMAGE_MAGENTA.TIF IMAGE_YELLOW.TIF -negate -set colorspace CMYK -combine FINALRESLUT.PNG "-combine" expects the input images to be in the order of the colorspace name, ie CMYK. But you have given them in the order BCMY. Does it apply for MagickNET also ? ex: I...
by pablobhz
2017-08-01T07:28:52-07:00
Forum: Magick.NET
Topic: Issue when combining images
Replies: 7
Views: 10111

Issue when combining images

Hello everyone. I had this thread, some months ago: http://www.imagemagick.org/discourse-server/viewtopic.php?f=27&t=31621 Anyway i tought it was best to create a new one. I'm trying to combine some images, but they're not being combined correctly - even using ImageMagick command line. Based on the ...
by pablobhz
2017-05-09T21:39:50-07:00
Forum: Magick.NET
Topic: clone a magickimage to a bigger one
Replies: 1
Views: 10405

Re: clone a magickimage to a bigger one

private static void imageComposition(MagickImage newPngImage, int imagePositionCount,List<string> IZInfo) { string imageDensity = newPngImage.Density.ToString(); int removalPos = imageDensity.IndexOf("x"); imageDensity = imageDensity.Remove(removalPos, imageDensity.Length - removalPos); double DPI ...
by pablobhz
2017-04-17T06:50:39-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 15142

Re: Image composition

The image http://i.imgur.com/Ur8we0z.png is opaque lines in a transparent background. So it can be composited over LpbkJgf.jpg with no mask needed: convert LpbkJgf.jpg Ur8we0z.png -composite x.png It worked as you said. However, the composition isn't working as expected. It produces an image with a...
by pablobhz
2017-04-12T19:57:38-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 15142

Re: Image composition

You can do a 3 image composite where the last image is grayscale mask. The mask brightness then controls the blending of the two images. Or you can create two masks. One for the first image and the second for the second image. Then put each mask into the alpha channel of the corresponding image usi...
by pablobhz
2017-04-11T17:14:24-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 15142

Re: Image composition

As soon I get home ill read and try what was suggested . Thank you both for the attention and help . I figured out what you guys said , really makes sense . Both images have a white background basically , makes no sense compose one above the other . Another approach would be copy the non-white pixel...
by pablobhz
2017-04-11T15:38:15-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 15142

Re: Image composition

The opacity level means how much an image is transparent , right ?
So , I must first composite them in some kind of white background (both) and then try to composite them (spot and final)?
by pablobhz
2017-04-11T15:12:42-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 15142

Re: Image composition

snibgo wrote:
2017-04-11T15:10:27-07:00
Both of your images are entirely opaque. With no transparency, you will only see the edges of the bottom image where it is larger than the top image.
I'm sorry but I don't know that much about images .
I have to add some kind of mask / transpareci before trying to composite , that's it ?
by pablobhz
2017-04-11T14:41:28-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 15142

Re: Image composition

I don't use Magick.NET, but your code seems to composite finalImage over spotImage. I suspect you want this the other way round. Your command doesn't contain the keyword "-composite" so it won't do a composite. Yeah, that was incorrect. I inverted the command line, but, the result was the same :( I...
by pablobhz
2017-04-11T08:04:41-07:00
Forum: Magick.NET
Topic: Image composition
Replies: 12
Views: 15142

Image composition

Hello everyone. I'm trying to composite one image on the top of the another. However, when i use the following code: using (MagickImage finalImage = new MagickImage("backgroundimage.png")) { using (MagickImage spotImage = new MagickImage("imagetocomposite.png")) { spotImage.Composite(finalImage, Gra...