Search found 67 matches

by pablobhz
2019-03-01T11:30:49-07:00
Forum: Magick.NET
Topic: RAW Data length error (PixelStorageSettings issue)
Replies: 2
Views: 3006

Re: RAW Data length error (PixelStorageSettings issue)

Hmmm
So i can combine the four channels into a single image array and then read with the PixelStorageSettings ?
Nice ! I'll give it a try right now and i'll post here my results.
by pablobhz
2019-02-28T12:34:09-07:00
Forum: Magick.NET
Topic: RAW Data length error (PixelStorageSettings issue)
Replies: 2
Views: 3006

RAW Data length error (PixelStorageSettings issue)

Hello Everyone. I'm trying to create a new MagickIMage object from some raw CMYK Data. In order to do so, i'm creating some PixelStorageSettings (as i learned before somewhere else, i think on some MagickImage doc site). However, if i create the PixelStorageSettings with their original size, i get a...
by pablobhz
2019-02-28T10:15:58-07:00
Forum: Magick.NET
Topic: Combining images with MagickNET seems to miss the black channel
Replies: 1
Views: 2250

Combining images with MagickNET seems to miss the black channel

Hello Everyone. I am having a strange issue when combining images with MagickNET. Once before i used the same code to combine 4 negative images (each one representating an channel, CMYK) into a final colored image. However, now it seems to be missing the black channel on the final result. I've uploa...
by pablobhz
2019-02-03T21:10:26-07:00
Forum: Magick.NET
Topic: MagickNET and raw CMYK data
Replies: 5
Views: 3528

Re: MagickNET and raw CMYK data

You can use the PixelStorageSettings class for that. You can find an example in this recent issue: https://github.com/dlemstra/Magick.NET/issues/381 Thank you. It worked flawlessly. But how can i extract each channel from this PixelStorageSettings ? I can't create individual objects from each array...
by pablobhz
2019-02-02T22:16:57-07:00
Forum: Magick.NET
Topic: MagickNET and raw CMYK data
Replies: 5
Views: 3528

Re: MagickNET and raw CMYK data

Thats what i meant, sorry for the bad information.
No header, just pixels. Each pixel stored as an 8-Bit number.

I tried to read a byte array on this format and it didn't worked =(
Can MagickNet interpret it or only ImageMagick command-line version ?
by pablobhz
2019-02-02T21:30:01-07:00
Forum: Magick.NET
Topic: MagickNET and raw CMYK data
Replies: 5
Views: 3528

MagickNET and raw CMYK data

Hello
Does MagickNET offers support for reading RAW CMYK Image data ?
ex: I have raw binary for one channel (cyan). Is there a way for MagickNet or ImageMagick to read it ?

Thanks in advance
by pablobhz
2019-02-01T06:04:19-07:00
Forum: Magick.NET
Topic: Weird image
Replies: 2
Views: 2622

Re: Weird image

In your "TIFF File with header added", a stepping is visible. That is, each line is similar to the next line but with an offset of about 50 pixels in the x direction. In a correct image, each line will be similar to the next but with no offset. So your assumption about the image width is wrong. In ...
by pablobhz
2019-01-30T09:34:25-07:00
Forum: Magick.NET
Topic: Weird image
Replies: 2
Views: 2622

Weird image

Hello Everyone. I'm trying to create a TIFF file from binary data. However, i don't have the file header so i'm making it manually. I've always used MagickNET for doing so and never had problems - but for now i started to have some trouble. The images are not what i expect ; looks like something cor...
by pablobhz
2018-11-26T12:40:50-07:00
Forum: Magick.NET
Topic: Compose images
Replies: 1
Views: 2804

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

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

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

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

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

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

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 ?