Search found 1419 matches

by dlemstra
2018-02-18T10:16:58-07:00
Forum: Magick.NET
Topic: Chroma key
Replies: 2
Views: 140

Re: Chroma key

Your command would translate to this: // convert shirt.jpg using (var shirt = new MagickImage("shirt.jpg")) { // -modulate 100,100,33.3 shirt.Modulate(new Percentage(100), new Percentage(100), new Percentage(33.3)); // -colorspace HSL shirt.ColorSpace = ColorSpace.HSL; // -channel Hue,Saturation -se...
by dlemstra
2018-02-13T13:40:15-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 16
Views: 3537

Re: MagickSetImageCompression not working

Have you tried to use 6.9.9-34? That other version is ancient and should not be used anymore.
by dlemstra
2018-02-08T11:57:49-07:00
Forum: Magick++
Topic: STL list iterator not dereferencable
Replies: 1
Views: 300

Re: STL list iterator not dereferencable

Thanks for reporting this. This was not the only spot where we made this mistake. We have applied your patch at all those spots. This will be resolved in the next release of ImageMagick.
by dlemstra
2018-02-01T11:44:09-07:00
Forum: Magick.NET
Topic: jp2, ability to read regions
Replies: 5
Views: 526

Re: jp2, ability to read regions

image.Read("in.jp2[256x256+512+512]") can be used to read regions.
by dlemstra
2018-02-01T11:43:35-07:00
Forum: Magick.NET
Topic: Magick.Net info:
Replies: 1
Views: 242

Re: Magick.Net info:

It looks like you are looking for image.Width .Height and .Page?
by dlemstra
2018-01-28T02:42:50-07:00
Forum: Users
Topic: Consuming output from -print
Replies: 5
Views: 440

Re: Consuming output from -print

@Mihamix It looks like you are using C#, you might also want to take at the C# ImageMagick library that I created: https://github.com/dlemstra/Magick.NET
by dlemstra
2018-01-15T15:10:41-07:00
Forum: MagickWand
Topic: MagickSetImageCompression not working
Replies: 16
Views: 3537

Re: MagickSetImageCompression not working

You should use `MagickSetCompression` instead.
by dlemstra
2018-01-14T03:49:41-07:00
Forum: Magick.NET
Topic: find almost completely white pictures
Replies: 2
Views: 2125

Re: find almost completely white pictures

You can use the `FormatExpression` method for this in Magick.NET:

Code: Select all

using (var image = new MagickImage("image1.jpg"))
{
    var mean = image.FormatExpression("%[fx:mean>0.99?1:0]");
    if (mean == "1")
    {
        // Do something...
    }
}
by dlemstra
2018-01-14T03:37:23-07:00
Forum: Magick.NET
Topic: Exception thrown on Linux
Replies: 5
Views: 1843

Re: Exception thrown on Linux

I have thought about making the ImageMagick library static and decided to not do it because I thought that Linux users might prefer to build their own version. But having this as a static library would make it much easier for the users to use. And when someone wants to link other versions of the lib...
by dlemstra
2018-01-14T03:29:33-07:00
Forum: Magick.NET
Topic: difference and mask
Replies: 4
Views: 1681

Re: difference and mask

You will need to use the size of the input image:

Code: Select all

var size = 20;
var geometry = new MagickGeometry(size, size, cloneImg2.Width - size,cloneImg2.Height - size);
cloneImg2.Crop(geometry );
by dlemstra
2018-01-11T15:23:35-07:00
Forum: Developers
Topic: Saving a BMP file with 16 bit pixel resolution (5:6:5)
Replies: 6
Views: 1672

Re: Saving a BMP file with 16 bit pixel resolution (5:6:5)

Maybe you should read your topic again?
by dlemstra
2017-12-31T08:06:47-07:00
Forum: Bugs
Topic: Possible Magic++ bug
Replies: 6
Views: 1142

Re: Possible Magic++ bug

I just pushed a patch to remove the restriction. This will be removed in the next release.
by dlemstra
2017-12-29T15:14:45-07:00
Forum: Users
Topic: Set '-quiet' programmicaly
Replies: 3
Views: 1037

Re: Set '-quiet' programmicaly

You could use the `quiet(true)` to ignore warnings but you should not get any when you use the constructor to read the image.