Search found 59 matches

by pablobhz
2018-11-26T12:40:50-07:00
Forum: Magick.NET
Topic: Compose images
Replies: 1
Views: 278

Re: Compose images

After analyzing the code calmly and think about things...i figured it out.

Code: Select all

FinalPreview.Composite(CurrentImage, Gravity.West, CompositeOperator.Overlay);
This does the job =) !
Thanks in advance for the awesome Library.
by pablobhz
2018-11-26T11:56:40-07:00
Forum: Magick.NET
Topic: Compose images
Replies: 1
Views: 278

Compose images

Hello Everyone. I'm trying to do some image composition here but i'm having some trouble. I've did this before but now it seems that i forgot what i did (shame on me). Well, lets go to the business. I'm tryng to place this imag (Image A) https://drive.google.com/file/d/16lUKOZx6aYcbtrevqN2ahHfj83gjP...
by pablobhz
2018-09-08T09:41:27-07:00
Forum: Magick.NET
Topic: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)
Replies: 9
Views: 2766

Re: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)

Even rotating in a regular for i had the issue (not doing in parallel).
I fixed my problem by rebuilding the project entirely on x64.

It takes 2GB ram basically to rotate all those heavy images.

Anyway thanks in advance !
by pablobhz
2018-09-08T08:49:47-07:00
Forum: Magick.NET
Topic: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)
Replies: 9
Views: 2766

Re: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)

policy.xml sets limits that can't be overridden. So if those limits are too low, you can't get past them. I suggest you try: magick -debug all rose: NULL: 2>&1 |grep .xml This does nothing useful (it reads a built-in image and writes it to a bit-bucket) but the debug output will be something like: ...
by pablobhz
2018-09-08T07:53:00-07:00
Forum: Magick.NET
Topic: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)
Replies: 9
Views: 2766

Re: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)

Typically, in the same directory as binaries magick.exe etc, IM's installation directory. But the binaries may be in a "bin" directory, so the xmls are in ..\etc from there. Sorry but i couldn't find any policy.xml file. The only XML i found were related to instances description when you initialize...
by pablobhz
2018-09-07T14:39:35-07:00
Forum: Magick.NET
Topic: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)
Replies: 9
Views: 2766

Re: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)

As soon I get home I’ll be checking it However, there are some details I can share/ I’ve made the same thing on an older version (can’t remember right now, I was dealing with the same software) and I didn’t have any trouble . I’ve made an regular loop and tried to add the rotated image to an List<Ma...
by pablobhz
2018-09-07T13:28:09-07:00
Forum: Magick.NET
Topic: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)
Replies: 9
Views: 2766

Re: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)

snibgo wrote:
2018-09-07T13:23:40-07:00
pablobhz wrote:Is there anything i can do to change the max memory MagickNET can allocate ?
Resource limits are set in policy.xml. If the problem is that one of those limits is reached, you can edit that file, eg to remove that limit entirely.
And where do i find policy.xml ?
by pablobhz
2018-09-07T12:35:21-07:00
Forum: Magick.NET
Topic: Rotate Images in a Parallel For (ImageMagick.MagickResourceLimitErrorException)
Replies: 9
Views: 2766

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

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

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

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

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

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

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

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 ...