There are a lot of factors that could influence the performance of Magick.NET. Magick.NET uses a lot of memory so it is possible that disk cache is being used. You could use the new Log event of Magick.NET to get detailed log information to see what it is taking long. You can find some info about that in the documentation. Feel free to post parts of your log or contact me to send them by e-mail. I might be able to help you improve the performance when I have a bit more information.
↧
New Post: Magick.NET performance
↧
New Post: Create Animated Gif with images of different dimensions
You can find information about how the resizing works here: http://www.imagemagick.org/Usage/resize/#fill. You need to Crop or Extent your image to make it exactly 500x500.
↧
↧
New Post: Loading eps file with tiff preview only loads preview
The 898x988 dimensions are the size with the DPI applied. If you want to get a larger image you should use the MagickReadSettings class and specify the Density.
MagickReadSettings settings = new MagickReadSettings(); settings.Density = new MagickGeometry(300, 300); // You can change this to get a better image.using (MagickImage image = new MagickImage("test.eps", settings)) { images.Write("test.png"); }
↧
New Post: Loading eps file with tiff preview only loads preview
Got it. Thanks for your help.
↧
New Post: Any known issues with AMD processors? SEHException
Ok, I have tested the new dll version and now I get a different error on the client machine:
Could not load file or assembly 'Magick.NET-x86.dll' or one of its dependencies. Exception from HRESULT: 0xC000001D.
The dll is in the same folder as the exe and is properly referenced in the project. On my local machine and virtual test machines this works great.
I did some research on this error code and found this information: " It seems that the 0xC000001D error code means: illegal instruction, and appears often on older AMD machines (Athlon XP) that don't have SSE2 on board." The machines that are experiencing this problem happen to be Athlon XP processors.
Could not load file or assembly 'Magick.NET-x86.dll' or one of its dependencies. Exception from HRESULT: 0xC000001D.
The dll is in the same folder as the exe and is properly referenced in the project. On my local machine and virtual test machines this works great.
I did some research on this error code and found this information: " It seems that the 0xC000001D error code means: illegal instruction, and appears often on older AMD machines (Athlon XP) that don't have SSE2 on board." The machines that are experiencing this problem happen to be Athlon XP processors.
↧
↧
New Post: Create Animated Gif with images of different dimensions
Thank you
↧
New Post: Any known issues with AMD processors? SEHException
According to the documentation here: http://msdn.microsoft.com/en-us/library/7t5yh4fd(v=vs.100).aspx SSE2 is used by default for the x86 build. I will not disable this for the .NET 4.0 build but it might be a good idea to do this for the .NET 2.0 build to provide better compatibility with 'older' systems. Can you please contact me through CodePlex so I can send you a test build to see if that will resolve your problem?
↧
New Post: Any known issues with AMD processors? SEHException
I tried the 2.0 version and it did indeed fix the issue. I appreciate the help! Thanks!
If someone is deploying on ancient machines (Athlon XP) the 2.0 version is the way to go.
If someone is deploying on ancient machines (Athlon XP) the 2.0 version is the way to go.
↧
New Post: Any known issues with AMD processors? SEHException
Any idea what causes this?
Could not load file or assembly 'Magick.NET-x86.dll' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
This version works fine locally but exhibits this behavior on a virtual machine running XP. This is using the .net 2.0 version.
Running REGSVR32 on the DLL gives me the same type of error.
Could not load file or assembly 'Magick.NET-x86.dll' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
This version works fine locally but exhibits this behavior on a virtual machine running XP. This is using the .net 2.0 version.
Running REGSVR32 on the DLL gives me the same type of error.
↧
↧
New Post: Any known issues with AMD processors? SEHException
Did you install the Visual C++ Redistributable for Visual Studio 2008? You now need this version because you switched to the .NET 2.0 version.
↧
New Post: Any known issues with AMD processors? SEHException
Doh! That is a silly mistake to make. Works great, thanks!
↧
New Post: Minimize file size of embedded images in PDF output
pnw_bob,
Could you post a fragment of what your final code looked like ? Turns out I want to do something very similar and it would save me some time.
And I am doing the same thing, converting ImageMagic convert.exe calls over to using Magick.Net. I'm not so concerned so much of file size but with speed cause I have to do hundreds of images. Thanks in advance, Rick
Could you post a fragment of what your final code looked like ? Turns out I want to do something very similar and it would save me some time.
And I am doing the same thing, converting ImageMagic convert.exe calls over to using Magick.Net. I'm not so concerned so much of file size but with speed cause I have to do hundreds of images. Thanks in advance, Rick
↧
New Post: Magick.NET performance
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
↧
↧
New Post: Performance issue
Hi,
First of all, great library. I am playing around with it for a number of different scenarios. However I have noticed some performance issues. I was wondering whether I am doing something wrong?
So I am trying to run this code with a standard 10 page PDF (paper from google scolar) on a machine with 6 cores and 24GB of ram.
I enabled logging and posted the output http://pastebin.com/Jc4XR4Mr
First of all, great library. I am playing around with it for a number of different scenarios. However I have noticed some performance issues. I was wondering whether I am doing something wrong?
So I am trying to run this code with a standard 10 page PDF (paper from google scolar) on a machine with 6 cores and 24GB of ram.
if (!File.Exists(pathOfPdf))
throw new FileNotFoundException("Invalid path");
var settings = new MagickReadSettings
{
Density = new MagickGeometry(595,841)
};
using (var images = new MagickImageCollection())
{
images.Read(pathOfPdf, settings);
//do stuff with pages here
}
However it takes a couple of minutes to completes and eats up about 1,5GB of memory which seems kind of excessive for this kind of basic operation.I enabled logging and posted the output http://pastebin.com/Jc4XR4Mr
↧
New Post: Performance issue
The reason it is using so much memory is because of the size of your image. It will use 5058 x 9251 x 16 bytes per pixel = 748664928 bytes = 740MB per page. At some point ImageMagick will switch to disk instead of memory. This will dramatically decrease the performance of your application. The default values that are being used for this will change in the next version of Magick.NET. Contact me through CodePlex if you are interested in using a development version of the x64 .NET 4.0 build that includes these fixes.
You can also handle each page separately instead of reading them all at once. You can specify the page with the FrameIndex property of MagickReadSettings. This will reduce the total amount of memory that is being used.
You can also handle each page separately instead of reading them all at once. You can specify the page with the FrameIndex property of MagickReadSettings. This will reduce the total amount of memory that is being used.
↧
New Post: modulate problems
using Magick.NET-6.8.8.201-Q8-x64-net40-client
just starting to test, other methods I've tested so far working fine but simple:
Modulate(new Percentage(100), new Percentage(100), new Percentage(100));
always results in black image, no matter what percentages used...using simple 24bit rgb jpg and png and bmp for testing, always same result.
and second question, is there a .command method I'm not seeing for passing imagemagick commands (-modulate 120,50,100) for methods that might not yet be implemented?
Thanks in advance and for getting this lib into the .net world.
just starting to test, other methods I've tested so far working fine but simple:
Modulate(new Percentage(100), new Percentage(100), new Percentage(100));
always results in black image, no matter what percentages used...using simple 24bit rgb jpg and png and bmp for testing, always same result.
and second question, is there a .command method I'm not seeing for passing imagemagick commands (-modulate 120,50,100) for methods that might not yet be implemented?
Thanks in advance and for getting this lib into the .net world.
↧
New Post: modulate problems
Can you add a link to the image you are using? If you don't want to publicly post this feel free to contact me through CodePlex. And can you also post a command line example? The '-modulate' command is the Modulate method.
↧
↧
New Post: modulate problems
Here is quick sample code that fails for me:
https://dl.dropboxusercontent.com/u/9762525/thumb.bmp
MagickImage magickImage = new MagickImage(@"c:\thumb.bmp");
magickImage.Modulate(new Percentage(90), new Percentage(100), new Percentage(100));
magickImage.Write(@"c:\thumb-mod.bmp");
here is link to file used in this example:https://dl.dropboxusercontent.com/u/9762525/thumb.bmp
↧
New Post: Caption text color and effects
I've looked at code sample in other threads and see code similar to the below
I need to make the caption text white with a black border -- the effect being somewhat similar to what you have in the sample http://www.imagemagick.org/Usage/text/caption_height.gif (with different colors instead of blue) but am not sure how to get that effect using Magick.Net
Thanks for your help
Dim image = New MagickImage(MagickColor.Transparent, width, height)
image.FillColor = New MagickColor("#FFFFFF")
image.Read("caption:This is a test")
but at my end the text always turns out black. I need to make the caption text white with a black border -- the effect being somewhat similar to what you have in the sample http://www.imagemagick.org/Usage/text/caption_height.gif (with different colors instead of blue) but am not sure how to get that effect using Magick.Net
Thanks for your help
↧
New Post: Caption text color and effects
That effect is done by the Gecko font. You need to install and specify that font to get that effect.
↧