Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all 1011 articles
Browse latest View live

Closed Unassigned: Setting BlackPointCompensation throws error [1383]

$
0
0
I get the following:

__Exception Details: System.EntryPointNotFoundException: Unable to find an entry point named 'MagickImage_BlackPointCompensation_Set' in DLL 'Magick.NET-Q16-x64.Native.dll'.__



Created Unassigned: image.Thumbnail not taking color adjustments properly [1385]

$
0
0
I have this code:

```
public MagickImage NewThumbImageTCBordered()
{
var image = ImageTC.Clone();
image.Resize(ThumbSize);
//image.Thumbnail(ThumbSize);
AdjustColor(image);
image.Write(ThumbFile().FullName);
return image;
}

public void AdjustColor(MagickImage image)
{
var color = View.Color;
if (color.Brightness != ColorAdjustments.BrightnessDefault
|| color.Contrast != ColorAdjustments.ContrastDefault)
image.BrightnessContrast(new Percentage(color.Brightness), new Percentage(color.Contrast));

if (color.Gamma != ColorAdjustments.GammaDefault)
image.GammaCorrect(color.Gamma);

if (color.Red != ColorAdjustments.RedDefault)
image.Evaluate(Channels.Red, EvaluateOperator.Add, color.Red);

if (color.Green != ColorAdjustments.GreenDefault)
image.Evaluate(Channels.Green, EvaluateOperator.Add, color.Green);

if (color.Blue != ColorAdjustments.BlueDefault)
image.Evaluate(Channels.Blue, EvaluateOperator.Add, color.Blue);
}

public static MagickGeometry ThumbSize
{
get
{
return _ThumbSize ?? (_ThumbSize = new MagickGeometry(ThumbSizeDTO.Size.Height));
}
}
static MagickGeometry _ThumbSize;

```

I've had to exchange image.Thumbnail(...) for image.Resize(...) because image.Thumbnail now makes negative (or blank) images based on the color modifiers .

Example:

Original Image
![Image](http://i.imgur.com/dOtiV6f.jpg)

Adjust the image by adding 5 contrast. Image has also been flipped horizontally.

Thumbnail created with Resize
![Image](http://i.imgur.com/pu9Gi6N.png)

Thumbnail created with Thumbnail
![Image](http://i.imgur.com/JSe1mq3.png)

I have this same problem appearing in multiple images, but not all images by adjusting any one or more of the colors or contrast. Haven't tested gamma, but it may also be affected. Contrast changes seems to break the thumbnail image sooner than color changes.

I have the most recent ImageMagick NuGet package as of today.

Created Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.

Commented Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.
Comments: I'm attaching a minidump sans heap. I was unable to save one with heap, it fails with the message "Error saving dump. Only part of a ReadProcessMemory or WriteProcessMemory request was completed." Hope this helps.

Commented Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.
Comments: I spoke too soon - managed to get a dump with process memory using procdump. Uploaded to https://www.dropbox.com/s/8d92leovki9bg3b/ImageLibTest.exe_160319_102929.dmp.7z?dl=0

Closed Unassigned: Refactor MagickReadSettings [1379]

$
0
0
There is a MagickReadSettings class that has some settings for when you read the image(s). This sets 'hidden' settings in the MagickSettings class and passes that to the part that reads an image. I think I should use the MagickSettings class as an argument for the Read method instead.

Commented Unassigned: Animated gif generating [1378]

$
0
0
I can't really understand, why gif animation isn't working without this?
```
//Optionally reduce colors
QuantizeSettings settings = new QuantizeSettings { Colors = 256 };
collection.Quantize(settings);

// Optionally optimize the images (images should have the same size).
collection.Optimize();
```
2 png frames, same size. Without code above it creates gif with only 1 frame. With code above, everything is fine. Is it a bug of reature?
Comments: Is it possible to attach two of the pngBitmap files so I can reproduce this better? I get a correct image with the code below that is a simplified version of your code. ```C# byte[] bytes; using (var collection = new MagickImageCollection()) { foreach (var color in new MagickColor[] { MagickColors.Red, MagickColors.Green }) { var img = new MagickImage(color, 100, 100) { AnimationDelay = 100, HasAlpha = true }; collection.Add(img); } using (var str = new MemoryStream()) { collection.Write(str, MagickFormat.Gif); bytes = str.ToArray(); } File.WriteAllBytes(@"c:\test.gif", bytes); } ```

Commented Unassigned: image.Thumbnail not taking color adjustments properly [1385]

$
0
0
I have this code:

```
public MagickImage NewThumbImageTCBordered()
{
var image = ImageTC.Clone();
image.Resize(ThumbSize);
//image.Thumbnail(ThumbSize);
AdjustColor(image);
image.Write(ThumbFile().FullName);
return image;
}

public void AdjustColor(MagickImage image)
{
var color = View.Color;
if (color.Brightness != ColorAdjustments.BrightnessDefault
|| color.Contrast != ColorAdjustments.ContrastDefault)
image.BrightnessContrast(new Percentage(color.Brightness), new Percentage(color.Contrast));

if (color.Gamma != ColorAdjustments.GammaDefault)
image.GammaCorrect(color.Gamma);

if (color.Red != ColorAdjustments.RedDefault)
image.Evaluate(Channels.Red, EvaluateOperator.Add, color.Red);

if (color.Green != ColorAdjustments.GreenDefault)
image.Evaluate(Channels.Green, EvaluateOperator.Add, color.Green);

if (color.Blue != ColorAdjustments.BlueDefault)
image.Evaluate(Channels.Blue, EvaluateOperator.Add, color.Blue);
}

public static MagickGeometry ThumbSize
{
get
{
return _ThumbSize ?? (_ThumbSize = new MagickGeometry(ThumbSizeDTO.Size.Height));
}
}
static MagickGeometry _ThumbSize;

```

I've had to exchange image.Thumbnail(...) for image.Resize(...) because image.Thumbnail now makes negative (or blank) images based on the color modifiers .

Example:

Original Image
![Image](http://i.imgur.com/dOtiV6f.jpg)

Adjust the image by adding 5 contrast. Image has also been flipped horizontally.

Thumbnail created with Resize
![Image](http://i.imgur.com/pu9Gi6N.png)

Thumbnail created with Thumbnail
![Image](http://i.imgur.com/JSe1mq3.png)

I have this same problem appearing in multiple images, but not all images by adjusting any one or more of the colors or contrast. Haven't tested gamma, but it may also be affected. Contrast changes seems to break the thumbnail image sooner than color changes.

I have the most recent ImageMagick NuGet package as of today.
Comments: The thumbnail method removes color profiles besides resizing the image. This could cause color issues. It is also possible that your source image is a CMYK jpeg file. I am not sure if imgur converts the images after you upload them. Can you contact me through CodePlex so you can e-mail me the original or put it on DropBox and add a link here?

Commented Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.
Comments: Thanks for the detailed information. I suspect that this is a threading issue inside the OpenCL part. Is your problem gone when you change the Parallel.ForEach to a 'normal' for each? And could you add a link to the APOD archive? I cannot download the whole archive from the site and I think I need a large set to reproduce this ussue. p.s. Please contact me through CodePlex after we fixed this and you have the benchmarks. Really curious about the results :)

Commented Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.
Comments: Yes, it is a threading issue. Reducing the max threads to 1 or running in a normal for loop fixes the issue. I'll message you with some info on the APOD image set.

Commented Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.
Comments: Can you reproduce the issue when you use a single image in the Parallel.ForEach? Or does it only happen when you use different images?

Commented Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.
Comments: If I process a single image 10,000 times it works without crashing. Performance is also very good ;)

Edited Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.

Commented Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.
Comments: The bug in the OpenCL code has been found and I just pushed a change to fix this. You could try the development build later today (info on homepage).

Closed Unassigned: AccessViolationException when resizing with OpenCL [1386]

$
0
0
Hello, great work on this project - I'm a big fan. :)

I am trying to benchmark Magick.NET performance against GDI+, and have written a test harness that loads, resizes and writes images in parallel. When I run Magick.NET tests with OpenCL disabled, performance is great and I get no errors. However with OpenCL enabled I get AccessViolationException exceptions after a hundred or so images. I have encountered this with 2 different GPUs, on a laptop (Intel HD Graphics 4000) and on an AWS G2 instance (NVIDIA GRID K520).

I'm attaching my code to this issue. I'm using a test set of 11,000 jpegs from http://apod.nasa.gov/

If you need more information I will do my best to oblige! Thanks again.

Edited Unassigned: Make DrawablePath chainable [1384]

$
0
0
Make it possible to change:

```C#
image.Draw(new DrawablePath(
new PathMoveToAbs(75, 70),
new PathLineToAbs(90, 20),
new PathLineToAbs(105, 70)));
```
into:
```C#
image.Draw(new DrawablePath()
.MoveToAbs(75, 70)
.LineToAbs(90, 20)
.LineToAbs(105, 70)));
```


Edited Issue: image.Thumbnail not taking color adjustments properly [1385]

$
0
0
I have this code:

```
public MagickImage NewThumbImageTCBordered()
{
var image = ImageTC.Clone();
image.Resize(ThumbSize);
//image.Thumbnail(ThumbSize);
AdjustColor(image);
image.Write(ThumbFile().FullName);
return image;
}

public void AdjustColor(MagickImage image)
{
var color = View.Color;
if (color.Brightness != ColorAdjustments.BrightnessDefault
|| color.Contrast != ColorAdjustments.ContrastDefault)
image.BrightnessContrast(new Percentage(color.Brightness), new Percentage(color.Contrast));

if (color.Gamma != ColorAdjustments.GammaDefault)
image.GammaCorrect(color.Gamma);

if (color.Red != ColorAdjustments.RedDefault)
image.Evaluate(Channels.Red, EvaluateOperator.Add, color.Red);

if (color.Green != ColorAdjustments.GreenDefault)
image.Evaluate(Channels.Green, EvaluateOperator.Add, color.Green);

if (color.Blue != ColorAdjustments.BlueDefault)
image.Evaluate(Channels.Blue, EvaluateOperator.Add, color.Blue);
}

public static MagickGeometry ThumbSize
{
get
{
return _ThumbSize ?? (_ThumbSize = new MagickGeometry(ThumbSizeDTO.Size.Height));
}
}
static MagickGeometry _ThumbSize;

```

I've had to exchange image.Thumbnail(...) for image.Resize(...) because image.Thumbnail now makes negative (or blank) images based on the color modifiers .

Example:

Original Image
![Image](http://i.imgur.com/dOtiV6f.jpg)

Adjust the image by adding 5 contrast. Image has also been flipped horizontally.

Thumbnail created with Resize
![Image](http://i.imgur.com/pu9Gi6N.png)

Thumbnail created with Thumbnail
![Image](http://i.imgur.com/JSe1mq3.png)

I have this same problem appearing in multiple images, but not all images by adjusting any one or more of the colors or contrast. Haven't tested gamma, but it may also be affected. Contrast changes seems to break the thumbnail image sooner than color changes.

I have the most recent ImageMagick NuGet package as of today.

Created Unassigned: Composite( Image, Geometry, Operator, String ) not checking args for null [1387]

$
0
0
The method `void Composite(MagickImage image, MagickGeometry offset, CompositeOperator compose, string args)` is not properly checking `args` for `IsNullOrEmpty()` before calling `SetArtifact()` resulting in a `ArgumentNullException`

Commented Unassigned: Composite( Image, Geometry, Operator, String ) not checking args for null [1387]

$
0
0
The method `void Composite(MagickImage image, MagickGeometry offset, CompositeOperator compose, string args)` is not properly checking `args` for `IsNullOrEmpty()` before calling `SetArtifact()` resulting in a `ArgumentNullException`
Comments: Thanks for reporting this. The Composite methods should directly call the native method instead. I just pushed a patch to fix this and this will be resolved in the next version of Magick.NET

Edited Issue: Composite( Image, Geometry, Operator, String ) not checking args for null [1387]

$
0
0
The method `void Composite(MagickImage image, MagickGeometry offset, CompositeOperator compose, string args)` is not properly checking `args` for `IsNullOrEmpty()` before calling `SetArtifact()` resulting in a `ArgumentNullException`
Viewing all 1011 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>