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

New Post: Convert a pdf page to image

$
0
0
Hi Dlemstra,

thanks a lot.... your code is working perfectly...but some of the images are generated with light gray shade in the background of the color. In my pdf file the corresponding page background is pure while...

Not all the page are got that prolem. only some of the images are came up with the light gray shadow on the background....

Could you please tell what is the problem on that?

New Post: Convert a pdf page to image

$
0
0
Is this a random problem or can you reproduce it? Setting the background property to white might solve your problem. Can you send me a pdf that will produce images with a grey background?

New Post: Newbie: MagickConfigureWarnigException UnableToOpenConfigureFile `type.xml'

$
0
0
Hi!

I'm new to c# and .NET (not to ImageMagick!) and MagickNET seems great!
However, I get this MagickConfigureWarnigException when running the example below:
Magick2.vshost.exe: UnableToOpenConfigureFile `type.xml' @ warning/configure.c/GetConfigureOptions/616
What to do about that?

Regards / Jonas
            MagickNET.Initialize();

            var image = new MagickImage(@"I:\test.png");
            image.Annotate("Hello baby", Gravity.Center); // <-- This causes the exception
            image.Write(@"I:\testAnnotation.png");

New Post: Newbie: MagickConfigureWarnigException UnableToOpenConfigureFile `type.xml'

$
0
0
What version of Magick.NET are you using? How did you install it, are you using a NuGet package or one of the zip files? It seems that the file 'type.xml' is missing from the directory that contains the ImageMagick libraries (e.g. CORE_RL_Magick++_.dll).

New Post: Newbie: MagickConfigureWarnigException UnableToOpenConfigureFile `type.xml'

$
0
0
Thank you, dlemstra! I'm using the NuGet Magick.NET-Q16-x86 version 6.8.5.401.
Right, there is was type.xml in the dll directory. Acutally, no xml at all!

I added the from the downloadable zip, and now it works without warnings!

Thanks a lot!

New Post: Magick.NET on Azure?

New Post: Magick.NET on Azure?

$
0
0
I have no idea if Magick.NET works on Azure. I think you should just test it yourself and post the results here.

New Post: Magick.NET on Azure?


New Post: vignette effect

$
0
0
Hello,

Sorry for the complete newbie question and most of all many thanks for this absolute great project!

I am trying to do something along the lines below and currently use convert.exe via a shell process called from the C# code:

( -size 960x960 radial-gradient:none-black -gravity center -crop 640x640+0+0 +repage ) -compose multiply -flatten

Is there any way to mirror such with Magick.NET?

Many thanks for the advice & all the best!

New Post: Newbie: MagickConfigureWarnigException UnableToOpenConfigureFile `type.xml'

$
0
0
The xml files should be copied automatically to the ImageMagick folder in your bin directory. I just tested it on my machine with Visual Studio 2012 and the xml files are being copied. I will change the implementation of MagickNET.Initialize() to check if all the files that are necessary can be found. If one of the files cannot be found an exception will be raised by MagickNET.Initialize().

New Post: vignette effect

$
0
0
At this moment it is not possible. With changeset 26420 I resolved this issue but you have to wait for the next release (prob. next week) before you can use it.

I am not sure if this gives you the same result but it should be something like this:
using (MagickImageCollection images = new MagickImageCollection())
{
  MagickReadSettings settings = new MagickReadSettings();
  settings.Width = 960;
  settings.Height = 960;
  
  MagickImage radialGradient = new MagickImage("radial-gradient:none-black", settings);
  radialGradient.Crop(640, 640, Gravity.Center);
  images.Add(radialGradient);
  
  MagickImage input = new MagickImage("input.jpg");
  input.Compose = CompositeOperator.Multiply;
  images.Add(input);
  
  images.RePage();
  
  using (MagickImage output = images.Merge(LayerMethod.Flatten))
  {
    output.Write("output.jpg");
  }
}

New Post: vignette effect

$
0
0
Hi dlemstra,

Many thanks for the reply and looking forward to the next release!

This is really great!

New Post: Convert a pdf page to image

$
0
0
whenever i am setting density of the image into minimal one then, some of the images are coming like that... for example like that...

MagickReadSettings settings = new MagickReadSettings();
settings.Density = new MagickGeometry(15, 15); // Reducing image size



(2) And one more problem i encounted while testing with Windows 7 machine...

The Error Message is : An Unhandled exception of type System.StackOverflowException occurred in Magick.NET.DLL


Could you please tell me what is the problem here....

I am using the same copy of the dll files and folders that are used in the windows xp machine...

New Post: Convert a pdf page to image

$
0
0
Can you provide me with a code example that causes the StackOverflowException? And are you able to send me a pdf that i can use to test the grey background?

New Post: Convert a pdf page to image

$
0
0
am very sorry... i think it is random problem... i checked it now... but it is working fine...

Stackoverflow exception :
 string inputFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "agreement.pdf");
 string outputFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "img-output\\");
            
            using (MagickImageCollection collection = new MagickImageCollection())
            {
                 collection.Read(inputFile);  // here the problem occrured...

                int id = 1;
                foreach (MagickImage image in collection)
                {
                    image.Write(outputFile + "img" + id + ".png");
                    id++;
                }
            }

New Post: Convert a pdf page to image

$
0
0
Can you provide me with a link to the agreement.pdf document?

New Post: Convert a pdf page to image

$
0
0
@dlemstra : I am very sorry... It is one of our client document and more secure... So, i can't share with you... Please dont mistake me...

Anyway if i encounter the same with some other document means i will share with you...

Can you tell me reason for that stackoverflow exception...

New Post: Convert a pdf page to image

$
0
0
I am unable to reproduce the problem without your pdf. I understand that you cannot share it but without the document I cannot reproduce the stackoverflow. Can you supply me with a stacktrace? What version of Magick.NET are you using? You can use MagickNET.Version to determine the version.

New Post: Convert a pdf page to image

$
0
0
version is : Magick.NET-6.8.5.401-Q16-x86-net40-client and Magick.NET.Web-6.8.5.401-x86-net40

New Post: Xml files location

$
0
0
For latest changeset(26421),"CheckImageMagickFiles" method searching for xml files at the initialize folder but xml files are located in a different folder. I copy xml files to the initialize folder manually, is it a bug?
Viewing all 3693 articles
Browse latest View live


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