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

Closed Unassigned: Issue when converting a PDF to PNG [1394]

$
0
0
I have noticed issues when converting large PDF (3.5MB and higher) that it freezes the system, and in the course of 5 minutes will create temp files over 10GB in size.

Let me know if you need any info

Commented Unassigned: Cannot write proper progressive JPEG [1410]

$
0
0
Using Magick.NET-7.0.3.1-Q8-AnyCPU.zip I'm attempting to take an image and make it a progressive JPEG, however this isn't working as expected.

```
public static void ProcessJpegImageProgressive(Bitmap image, ref MemoryStream stream)
{
using (MagickImage mImage = new MagickImage(image))
{
mImage.Strip();
mImage.Format = MagickFormat.Pjpeg;
mImage.Interlace = Interlace.Plane;
mImage.Quality = 80;
mImage.Depth = 8;
mImage.Settings.SetDefine(MagickFormat.Jpeg, "sampling-factor", "4:2:0");

//mImage.Format = MagickFormat.Pjpeg;
//mImage.CompressionMethod = CompressionMethod.JPEG;
//mImage.SetOption(MagickFormat.Jpeg, "sampling-factor", "4x1,2x1,2x1");

mImage.Write(stream);
}
}
```
Comments: Sorry for taking this long to reply to your issue but I completely forgot about it. I cannot reproduce your issue. I get a progressive jpeg image with the following code: ```C# using (MagickImage mImage = new MagickImage("logo:")) { mImage.Strip(); // Any value other than Interlace.NoInterlace will create a progressive jpeg. mImage.Interlace = Interlace.Jpeg; mImage.Quality = 80; mImage.Depth = 8; using (FileStream stream = File.OpenWrite(@"test.jpg")) { mImage.Write(stream, new JpegWriteDefines() { SamplingFactors = new MagickGeometry[] { new MagickGeometry("4x1"), new MagickGeometry("2x1"), new MagickGeometry("2x1") } }); } } ```

Commented Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.
Comments: Heya, please no. I've been very busy this week. I'm gonna answer you tomorrow!

Created Unassigned: Extract main colors from Image [1414]

$
0
0
How do I extract main colors form an image and then map to a color map?

convert original.jpg -dither None -map colors.bmp converted.bmp
convert converted.bmp -format %c histogram:info:-


Closed Unassigned: Extract main colors from Image [1414]

$
0
0
How do I extract main colors form an image and then map to a color map?

convert original.jpg -dither None -map colors.bmp converted.bmp
convert converted.bmp -format %c histogram:info:-


Comments: Please use the discussion (https://magick.codeplex.com/discussions) instead. Issues are only for reporting bugs.

Commented Unassigned: Mono support is missing [1359]

$
0
0
If I understand well, because of the nature of accessing embedded dlls it is impossible to use the mono dllmap feature to use the library on mono.

If there would be a version which would ship the dlls as non-embedded files, it would be simple to map to the apropriate .so files on Linux.
Comments: Any updates on the progress of supporting other OSes? I'm eager to use Magick.NET on OS X as part of a Unity editor tool.

Commented Unassigned: Mono support is missing [1359]

$
0
0
If I understand well, because of the nature of accessing embedded dlls it is impossible to use the mono dllmap feature to use the library on mono.

If there would be a version which would ship the dlls as non-embedded files, it would be simple to map to the apropriate .so files on Linux.
Comments: OS X will require me to buy/receive a Mac so it is not very likely that this will happen anytime soon.

Commented Unassigned: Mono support is missing [1359]

$
0
0
If I understand well, because of the nature of accessing embedded dlls it is impossible to use the mono dllmap feature to use the library on mono.

If there would be a version which would ship the dlls as non-embedded files, it would be simple to map to the apropriate .so files on Linux.
Comments: I forked the project to https://magick.codeplex.com/SourceControl/network/forks/yothsoggoth/magicknet and I've done some work there to add support for OS X. The managed .NET parts didn't require any changes as Mono handles that just fine. The only part that needed to be modified is the native library, which required a couple of minor code changes to support non-Windows platforms. I've added the Xcode project to the repo, which is setup to build a native .dylib, which can be switched in place of the .Native.DLL and DLLImport will find it just fine. Building on OS X requires building ImageMagick from source (or finding existing libs for the desired arch) and either having the necessary libs installed on the machine (libjpeg, libpng, etc. - see http://www.imagemagick.org/script/advanced-unix-installation.php) to build statically or linking dynamically against ImageMagick and shipping the dylib for that instead.

Commented Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.
Comments: Did you mean tomorrow? :D

Commented Unassigned: Mono support is missing [1359]

$
0
0
If I understand well, because of the nature of accessing embedded dlls it is impossible to use the mono dllmap feature to use the library on mono.

If there would be a version which would ship the dlls as non-embedded files, it would be simple to map to the apropriate .so files on Linux.
Comments: Cool that you gave it a try :) It would be nice if we could somehow compile the ImageMagick code the same way as under Windows. This means that we would need to clone https://github.com/ImageMagick/ImageMagick-Windows and run CloneRepositories.sh to get all the repositories. And then run a build script that would build all the repositories under Ubuntu / OS X. I would be really happy if you could help me with creating a "static link" script that would build all those dependencies and statically link that with the Native Library.

Commented Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.
Comments: Sorry, I had an exposition and a graduation day. It has been a very rough month. I'm gonna answer right now! Thanks for the patience

Commented Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.
Comments: Btw, is the image you load an hdri or a ldr?

Commented Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.
Comments: logo: is a build-in image that is not hdri. I did however test it with an HDRI version though.

Commented Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.
Comments: I cannot replicate the bug out of that code, I'm 100% sure that the datas in pixelSet are correct. I really wonder what is wrong in that code at this point. Thanks for the attention and the patience.

Commented Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.
Comments: Feel free to close.

Closed Unassigned: PixelCollection.Set() sets all the pixels to (0,0,0) after the first call. [1412]

$
0
0
Hi, i load a .hdr image in a MagickImage and then change the value of a pixel to {0,0,0} (the image has 3 channels. What happens is that after the first pixelCol.Set(x,y, black) everything becomes (0,0,0). I can't understand why. The sample code is reported here:
```
void mymethod(ref MagickImage image, double[][] pixelSet, float[] black)
PixelCollection ps = image.GetPixels();
Pixel p;
foreach (double[] pixel in pixelSet)
{
if (mycondition)
{
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("Before: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
ps.Set((int)pixel[X_COMP], (int)pixel[Y_COMP], black);
p = ps.GetPixel((int)pixel[X_COMP], (int)pixel[Y_COMP]);
Console.WriteLine("After: " +p.ToColor().R + " " + p.ToColor().G + " " + p.ToColor().B);
}
}
```

The code returns
> Before: regularfloat regularfloat regularfloat
After: zero zero zero

For the first iteration, and

> Before: zero zero zero
After: zero zero zero

For all the others iterations. I tried skipping the first iteration and the result is the same but starting from the second iteration.

Commented Unassigned: Cannot write proper progressive JPEG [1410]

$
0
0
Using Magick.NET-7.0.3.1-Q8-AnyCPU.zip I'm attempting to take an image and make it a progressive JPEG, however this isn't working as expected.

```
public static void ProcessJpegImageProgressive(Bitmap image, ref MemoryStream stream)
{
using (MagickImage mImage = new MagickImage(image))
{
mImage.Strip();
mImage.Format = MagickFormat.Pjpeg;
mImage.Interlace = Interlace.Plane;
mImage.Quality = 80;
mImage.Depth = 8;
mImage.Settings.SetDefine(MagickFormat.Jpeg, "sampling-factor", "4:2:0");

//mImage.Format = MagickFormat.Pjpeg;
//mImage.CompressionMethod = CompressionMethod.JPEG;
//mImage.SetOption(MagickFormat.Jpeg, "sampling-factor", "4x1,2x1,2x1");

mImage.Write(stream);
}
}
```
Comments: Can I close this issue?

Created Unassigned: Error when converting from jp2 format [1415]

$
0
0
I tried to upgrade from version 7.0.0.103 but got an error while trying to convert from jp2 to jpg formats. The version 7.0.0.103 works fine but does not after upgrading.

Edited Unassigned: Error when converting from jp2 format [1415]

$
0
0
I tried to upgrade from version 7.0.0.103 but got an error while trying to convert from jp2 to jpg formats. The version 7.0.0.103 works fine but does not after upgrading.

Just tested and it is working in 7.0.3.1 Sorry for the post

Commented Unassigned: Error when converting from jp2 format [1415]

$
0
0
I tried to upgrade from version 7.0.0.103 but got an error while trying to convert from jp2 to jpg formats. The version 7.0.0.103 works fine but does not after upgrading.

Just tested and it is working in 7.0.3.1 Sorry for the post
Comments: No problem. I will close this issue.
Viewing all 1011 articles
Browse latest View live


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