Search found 1462 matches

by dlemstra
2018-07-21T08:49:48-07:00
Forum: Magick.NET
Topic: chunk data is too large
Replies: 7
Views: 160

Re: chunk data is too large

And can you explain at which moment you get that exception?
by dlemstra
2018-07-20T10:50:19-07:00
Forum: Magick.NET
Topic: chunk data is too large
Replies: 7
Views: 160

Re: chunk data is too large

And the value of extension is?
by dlemstra
2018-07-19T11:33:11-07:00
Forum: Magick.NET
Topic: chunk data is too large
Replies: 7
Views: 160

Re: chunk data is too large

I have the image and I can read it without any issues. Can you also post a small code sample that I can use to reproduce the issue?
by dlemstra
2018-07-17T13:41:06-07:00
Forum: Magick.NET
Topic: chunk data is too large
Replies: 7
Views: 160

Re: chunk data is too large

Could you add a small sample and share the input image on something like onedrive or dropbox so I can reproduce his?
by dlemstra
2018-07-14T00:48:06-07:00
Forum: Magick.NET
Topic: How to create MagickImage from a pixel array
Replies: 2
Views: 82

Re: How to create MagickImage from a pixel array

You should set mr.Format to MagickFormat.Rgb but that will only work when you use the Q8 version of Magick.NET. Otherwise you should change the byte array to an ushort array (Q16) or float array (Q16-HDRI) first.
by dlemstra
2018-07-07T02:02:47-07:00
Forum: Magick.NET
Topic: Equivalent of distort:viewport=WxH+X+Y
Replies: 4
Views: 4139

Re: Equivalent of distort:viewport=WxH+X+Y

You can do this (in C++):

Code: Select all

image.artifact("distort:viewport","your value");
by dlemstra
2018-07-03T11:30:29-07:00
Forum: Magick.NET
Topic: Gradient direction
Replies: 2
Views: 184

Re: Gradient direction

The command would translate to this: var readSettings = new MagickReadSettings() { Width = 256, Height = 128 }; readSettings.SetDefine("gradient:direction", "east"); using (var image = new MagickImage("gradient:black-white", readSettings)) { image.Write("linear_gradient_east.png"); }
by dlemstra
2018-07-03T11:22:56-07:00
Forum: Magick.NET
Topic: Control (limit) resource usage in Magick.NET using C#
Replies: 3
Views: 247

Re: Control (limit) resource usage in Magick.NET using C#

The value is in bytes so you should set it to `33554432` if you want to limit it to 32MiB
by dlemstra
2018-07-01T22:39:39-07:00
Forum: Magick.NET
Topic: Control (limit) resource usage in Magick.NET using C#
Replies: 3
Views: 247

Re: Control (limit) resource usage in Magick.NET using C#

You are looking for the ResourceLimits class.
by dlemstra
2018-06-30T05:43:33-07:00
Forum: Magick.NET
Topic: Setting Pixel value in Q16 HDRI 7.4.5
Replies: 8
Views: 446

Re: Setting Pixel value in Q16 HDRI 7.4.5

@snibgo: Magick.NET has a different version number than ImageMagick. You can see here which version of ImageMagick is being used: https://github.com/dlemstra/Magick.NET/ ... ag/7.4.5.0.
by dlemstra
2018-06-30T05:36:46-07:00
Forum: Magick.NET
Topic: Magick.NET - Fade to transparent
Replies: 3
Views: 352

Re: Magick.NET - Fade to transparent

What is the exact command that you are trying to translate?
by dlemstra
2018-06-28T14:20:52-07:00
Forum: Magick.NET
Topic: Setting Pixel value in Q16 HDRI 7.4.5
Replies: 8
Views: 446

Re: Setting Pixel value in Q16 HDRI 7.4.5

The mapping to 8 bit will happen when you convert a pixel to a `System.Drawing.Color` because that only supports values in the range 0-255.

ImageMagick will not remap the value to 8bit when you are using Q16 HDRI but not all formats support 16bit HDRI. Have you tried the exr format?
by dlemstra
2018-06-27T22:40:50-07:00
Forum: Magick.NET
Topic: Setting Pixel value in Q16 HDRI 7.4.5
Replies: 8
Views: 446

Re: Setting Pixel value in Q16 HDRI 7.4.5

The color is almost black because you are setting the value to 100f when the range is 0f to 65535f. This is almost black in the output image. And when you convert the pixel to a `System.Drawing.Color` the value will be zero because it only uses a range from 0f to 256f and when 100f is converted to t...
by dlemstra
2018-06-26T13:16:35-07:00
Forum: Magick.NET
Topic: Error combining jp2 files with magick.net
Replies: 9
Views: 1229

Re: Error combining jp2 files with magick.net

I downloaded the files but I haven't tried to reproduce the error yet. Hope I can make some time for it next week.
by dlemstra
2018-06-26T13:14:00-07:00
Forum: Magick.NET
Topic: No decode delegate for this image format 'CGM'
Replies: 1
Views: 228

Re: No decode delegate for this image format 'CGM'

If you want to use ralcgm you will need to load your own delegates.xml (https://github.com/dlemstra/Magick.NET/ ... ization.md). But I have no idea what you will need to put in the delegates.xml file to get it working.