Search found 1395 matches

by dlemstra
2017-12-11T14:29:51-07:00
Forum: Magick.NET
Topic: Accessing raw image data
Replies: 11
Views: 152

Re: Accessing raw image data

You can use `pixels.GetIndex` to get the index of a specif channel. The order could be different.
by dlemstra
2017-12-11T12:32:39-07:00
Forum: Magick.NET
Topic: Accessing raw image data
Replies: 11
Views: 152

Re: Accessing raw image data

This is happening because of the following values in the Channels enumeration:

Code: Select all

        Red = 0x0001,

        Gray = 0x0001,

        Cyan = 0x0001,


As you can see they all have the same value and Visual Studio decides to use the last value to when it is printed.
by dlemstra
2017-12-09T05:49:42-07:00
Forum: Magick.NET
Topic: Accessing raw image data
Replies: 11
Views: 152

Re: Accessing raw image data

If you need the pixels in a specific order then this is indeed the way to do it. And don't forget to dispose the `pixels` (IPixelCollection is IDisposable). When you also need to set the pixels it might be better to just call `.ToArray()` instead. This will return a byte array (for Q8) and you will ...
by dlemstra
2017-12-08T05:24:57-07:00
Forum: Magick.NET
Topic: jpeg:extent in Magick.NET
Replies: 4
Views: 138

Re: jpeg:extent in Magick.NET

I have a very simple unit test that makes sure that `jpeg:extent` works. The following code creates a proper image: JpegWriteDefines defines = new JpegWriteDefines() { Extent = 10, // 10KB }; using (IMagickImage image = new MagickImage(Files.Builtin.Logo)) { using (MemoryStream memStream = new Memor...
by dlemstra
2017-12-08T00:17:37-07:00
Forum: Magick.NET
Topic: How to change tiff compression method in 7.2.0?
Replies: 4
Views: 148

Re: How to change tiff compression method in 7.2.0?

Yes that is correct.
by dlemstra
2017-12-07T12:58:07-07:00
Forum: Magick.NET
Topic: jpeg:extent in Magick.NET
Replies: 4
Views: 138

Re: jpeg:extent in Magick.NET

Whats your input image and how do you write it? And what is the value of Filesize?
by dlemstra
2017-12-04T13:07:44-07:00
Forum: Magick.NET
Topic: How to change tiff compression method in 7.2.0?
Replies: 4
Views: 148

Re: How to change tiff compression method in 7.2.0?

You should do the following: MagickReadSettings settings = new MagickReadSettings(); settings.SetDefine(MagickFormat.Tif, "ignore-layers", true); using (var image = new MagickImage(File.ReadAllBytes(srcPath), settings)) { image.Format = MagickFormat.Tif; // You should set this property. image.Settin...
by dlemstra
2017-12-02T11:26:54-07:00
Forum: Magick.NET
Topic: Making tif file with jpeg compression
Replies: 3
Views: 284

Re: Making tif file with jpeg compression

You should use `mgck.Settings.CompressionMethod` instead. The `mgck.CompressionMethod` should be used for getting the compression when an image is being read. I will take a look at the code in ImageMagick and make sure we don't use the `mgck.CompressionMethod` inside the image encoders. I will also ...
by dlemstra
2017-11-24T16:32:30-07:00
Forum: Users
Topic: Heap size larger than expected
Replies: 5
Views: 281

Re: Heap size larger than expected

ImageMagick 6 will allocate room for 5 channels. You might get a lower memory footprint when you switch to ImageMagick 7.

p.s. The size on disk will not be the same amount of memory when decoded because the pixels are compressed.
by dlemstra
2017-11-24T16:17:00-07:00
Forum: Bugs
Topic: dos
Replies: 2
Views: 176

Re: dos

The image has a large width and height and you can prevent that with a custom policy. Your command will take a while but at some point it will complete.
by dlemstra
2017-11-24T16:09:29-07:00
Forum: Magick.NET
Topic: Making tif file with jpeg compression
Replies: 3
Views: 284

Re: Making tif file with jpeg compression

Setting the CompressionMethod should let you use JPEG compression. What are you running on the command line?
by dlemstra
2017-11-20T15:16:03-07:00
Forum: Bugs
Topic: Process PDF protected by password fails.
Replies: 9
Views: 2495

Re: Process PDF protected by password fails.

Did you add `-authenticate` with the password and are you using the latest version?
by dlemstra
2017-11-19T03:18:52-07:00
Forum: Bugs
Topic: Wrong height with -tile option in Montage
Replies: 4
Views: 280

Re: Wrong height with -tile option in Montage

What is the output of `identify boat*.png`?
by dlemstra
2017-11-18T02:28:05-07:00
Forum: Bugs
Topic: heap-use-after-free
Replies: 5
Views: 425

Re: heap-use-after-free