Quantcast
Channel: magick Discussions Rss Feed
Viewing all 3693 articles
Browse latest View live

New Post: Xml files location

$
0
0
The initialize folder should contain the xml files. Where are you copying the files from?

New Post: Xml files location

$
0
0
"ImageMagick\Q16\bin\v4.0\x64" containts only dll files. I am copying from "ImageMagick\xml" folder.

New Post: Xml files location

$
0
0
Are you using NuGet? The NuGet package should include a .targets file in your project. When you build your project an ImageMagick directory will be created in your bin directory and the dll/xml files will be copied there. What version of Visual Studio and NuGet are you using? I am using VS2012 with NuGet 2.5 and when I build the project the files are copied automaticly.

New Post: Convert a pdf page to image

$
0
0
Can you also post the stacktrace? I don't have enough information to investigate the issue.

New Post: Xml files location

$
0
0
Thanks for your response.
I am not using nuget package, i have checked out project from svn repository and manually built it.

This configuration(copying xml files) can be a post-build event. What do you think?

New Post: Xml files location

$
0
0
You could include a .targets file that copies the files in your own project. An example can be found in the Publish\Magick.NET.targets.

New Post: Xml files location

$
0
0
Thank you, i will try it.
By the way great job, i really like this project. Please keep on developing:)

New Post: Image conversion in web app

$
0
0
Is this available for .NET 2.0 ??

New Post: Image conversion in web app

$
0
0
You can use Magick.NET in a .NET 2.0 web application. But you cannot use Magick.NET.Web.dll because it uses 'PreApplicationStartMethodAttribute' which is only available since .NET 4.0. You need to call MagickNET.Initialize yourself.

And in response to the question you posted on the ImageMagick.NET discussions board. You could use this to remove a border from a image:
using (MagickImage image = new MagickImage("source.image"))
{
  image.Shave(borderWidth, borderWidth);
}

New Post: Image conversion in web app

$
0
0
Hello,

Is there another way to remove black border, since I have a random width and height coming from scanner and i can't define where the black border is in the picture. Is there a way to know the border width and Height ?!!

Thanks in advanced

New Post: GUI for Magick.NET

$
0
0
I want to know if there is any GUI implementation of Magick.NET.
My project needs to implement annotation/editing of images in a GUI.
Thanks.

New Post: PDF->PNG conversion failing

$
0
0
I have a simple app that converts a few thousand PDF files to images. When I run a process using the imagemagick installed on my machine, everything is fine. When I try to use Magick.net I get the following error:

Unhandled Exception: ImageMagick.MagickDelegateErrorException: mmlToPDF.exe: PostscriptDelegateFailed `C:\Users...\Desktop\img\eqn_.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/682
at ImageMagick.MagickReader.Read(Image* image, String fileName, MagickReadSettings readSettings)
at ImageMagick.MagickImage..ctor(String fileName)

Which looks very much like the common GhostScript installation error. I do however have GS 9.0.7 installed, so is there a particular version of GS I should be using or some initialization required for GS through Magick.net?

Alternatively, can anyone tell what am I doing wrong here.
(Initialize() has been called earlier, intFiles is List<string> containing the PDF file names)

foreach (string pdfFile in intFiles)
{
string imgFile = Path.ChangeExtension(pdfFile, imgType);
MagickImage img = new MagickImage(pdfFile);
img.Density = new MagickGeometry(300, 300);
img.Quality = 100;
img.Trim();
img.Write(imgFile);
}

New Post: Web Application Difficulties

$
0
0
I am having some difficulty using the MagickNet library in a web application. I am using the x86 libraries on my development PC. I am publishing the code to an IIS Application pool with "Enable 32-bit Applications" set to True.

The application works well in Visual Studio Web 2012 Express, but the deployed application results in:
Could not load file or assembly 'Magick.NET.DLL' or one of its dependencies. The specified module could not be found.
I will work on getting x86_64 (my end goal) working once I get this going.

New Post: Web Application Difficulties

$
0
0
I realized that the ImageMagick folder wasn't getting deployed. I added this reference to the project, but now it throws a System.BadImageFormatException.

I copied the 64-bit DLLs to my bin folder. I published the code to the server and changed the "Enable 32-bit Applications" to False. I stopped/started the pool and now I get the BadImageFormatException.

This happens in both the development and production environments (both Windows 7, x86_64)

Any help would be much appreciated!

New Post: Web Application Difficulties

$
0
0
You are getting the BadImageFormatException because you are trying to load a x86 dll in a x64 application pool. Did you also replace the files in the ImageMagick directory? It seems that there is still a x86 dll in your bin directory.

New Post: Image conversion in web app

$
0
0
Can you share two examples of an image with a black border? It seems that you have to check the color of the pixels of the image. Here is an example of how you can access them:
using (MagickImage image = new MagickImage())
{
  PixelCollection pixels = image.GetReadOnlyPixels();
  Pixel pixel = pixels[0, 0];
  
  // With pixel.GetChannel you can access the channels of the pixel, e.g. RGB:
  int red = pixel.GetChannel(0);
  int green = pixel.GetChannel(1);
  int blue = pixel.GetChannel(2);
}

New Post: GUI for Magick.NET

$
0
0
I am not aware of any GUI implementations.

New Post: GUI for Magick.NET

$
0
0
I basically need to perform scribble operations on the images. Is there any way that you can suggest to implement it using magick.net or any alternate open source library??
Thanks.

New Post: Image conversion in web app

$
0
0
Hello,

My images can have random black borders and even not black it may be gray following to the scanners.
your provided example can show me the width and height for the black border? Sorry but I don't know how to use it.

Below are the images i'm trying to remove there black borders:
Image
Image
Image

Regards

New Post: PDF->PNG conversion failing

Viewing all 3693 articles
Browse latest View live


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