Search found 76 matches

by pablobhz
2017-08-01T07:28:52-07:00
Forum: Magick.NET
Topic: Issue when combining images
Replies: 7
Views: 11588

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: 11189

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: 17160

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: 17160

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: 17160

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: 17160

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: 17160

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: 17160

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: 17160

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...
by pablobhz
2017-04-11T08:00:46-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 12146

Re: Possible bug when defining a new ColorSpace

A grayscale image has only one channel. I need to change the values on a rGB scale or CMYK scale. I got an method that uses unsafe code (pointers to the memory) for doing that ; however, it's still slow for doing all the stuff. I think MagickNET can be faster. Should i delete this topic, since it is...
by pablobhz
2017-04-10T18:25:07-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 12146

Re: Possible bug when defining a new ColorSpace

Let me see if i got it correctly.

My goal: After set the image ColorSpace to CMYK , set the channels individually on the image. IM won't do that ?
Ex:
1 - Set the image colorspace to CMYK
2 - On some pixels , i want C(0), M(0.3), Y(0.1), K(0)
by pablobhz
2017-04-10T07:47:56-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 12146

Re: Possible bug when defining a new ColorSpace

The screenshot came from Visual Studio 2015 (Community Edition, Free)
by pablobhz
2017-04-09T23:31:44-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 12146

Re: Possible bug when defining a new ColorSpace

The syntax is correct. using (MagickImage testImage = new MagickImage(@"C:\inputfolder\testimage.png")) { testImage.ColorSpace = ColorSpace.CMYK; } I'm not using the command line interface, i'm using the .NET Wrapper. After set the ColorSpace to CMYK, when i try to access the channels they aren't be...
by pablobhz
2017-04-09T21:25:40-07:00
Forum: Magick.NET
Topic: Possible bug when defining a new ColorSpace
Replies: 9
Views: 12146

Possible bug when defining a new ColorSpace

Hello everyone. I've noted this today. When you set the ColorSpace to CMYK, you expect the channels to be "Cyan, Magenta, Yellow, Black". However, it isn't being that way. I attached an screenshot, where channels can be clearly see as "Cyan , Green , Blue, Black". Even when i set the ColorSpace to s...
by pablobhz
2017-04-09T11:36:54-07:00
Forum: Magick.NET
Topic: Update PixelCollection
Replies: 0
Views: 14025

Update PixelCollection

I'm using the following code trying to change the pixel color: //small test: just a really small image to debug and check pixel values using (MagickImage spotImage = new MagickImage(@"C:\test\small-test.TIF")) { spotImage.ColorSpace = ColorSpace.CMYK; using (PixelCollection pc = spotImage.GetPixels(...