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

New Post: Transparency lost converting eps to png via Magick.NET when ImageMagick source works perfectly


New Post: Transparency lost converting eps to png via Magick.NET when ImageMagick source works perfectly

New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
I am new to Magick.net. I found it last week.
What I am trying to do is reading a image of a pdf file.

Here is my code:
  public static System.Drawing.Bitmap GetPreview(string fn)
    {
        System.Drawing.Bitmap bmp;


        MagickReadSettings settings = new MagickReadSettings();
        settings.Density = new MagickGeometry(100, 100);
        settings.ColorSpace = ColorSpace.sRGB;
        settings.Format = MagickFormat.Jpeg;

       using (MagickImage coverPage = new MagickImage())
        {
           coverPage.Format = MagickFormat.Jpeg;

            coverPage.Quality = 50;
            coverPage.Read(fn+"[0]", settings);

           using (MemoryStream m = new MemoryStream())
            {
                 bmp = coverPage.ToBitmap(System.Drawing.Imaging.ImageFormat.Jpeg);
           }
     }

        return bmp;
    }
This code is ok for Magick.NET-x64.dll. But somehow if I set my platform to x86 and using Magick.NET-x86.dll, I got System.StackOverflowException when it executes
coverPage.Read(fn+"[0]", settings);

Any idea?

Thank you

New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
Are you using Q8 or Q16 and are you using the latest version of Magick.NET?

New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
I am using .Net 4.0. I have tried both Q8 and Q16, same problem.

The dll I tried are
Magick.NET-6.8.8.201-Q16-x86-net40-client.zip
Magick.NET-6.8.8.501-Q8-x86-net40-client.zip

settings.FrameIndex=0 does not help.

There is no too much call stack. Here is message from visual studio.
An unhandled exception of type 'System.StackOverflowException' occurred in Magick.NET-x86.dll

By the way I am using visual studio 2012 professional.


Thank you

New Post: Transparency lost converting eps to png via Magick.NET when ImageMagick source works perfectly

$
0
0
It looks like the bug in your ai file will be fixed in Ghostscript 9.11.

New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
Can you add a link to the PDF file you are using? And does the StackOverflowException only occur for a specific PDF file?

New Post: How to combine multiple images into one

$
0
0
I'm new to your tool but am really impressed thus far. My question is.. I have a pre-created .gif file, lets say a animation of snow falling, and a standard .jpg or .png file of a picture of someone. Is there a way that I can use the .gif image as an overlay on top of the .jpg image? It looks like your tool may be able to do that and I'm hoping you'd have a code sample that may show me the way.

Thanks in advance

New Post: How to combine multiple images into one

$
0
0
I am not sure if the example below is the most efficient way but it produces the result you want.
using (MagickImageCollection images = new MagickImageCollection("snow.gif"))
{
  using (MagickImage background = new MagickImage("background.jpg"))
  {
    // You only need this when your background image is not the same size.
    background.Resize(images[0].Width, images[0].Height); 

    foreach (MagickImage image in images)
    {
      image.Composite(background, Gravity.Center, CompositeOperator.DstOver);
    }
  }

  images.Optimize();
  images.Write("snow-background.gif");
}

New Post: How to combine multiple images into one

$
0
0
This was exactly what I needed. Thank you so much!

I couldn't seem to find any information on this subject online that was helpful. Again, thank you very much. I'm going to see if I can get my job to purchase something off of you wish list.


New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
StackOverflowException happens on every pdf I tried to open, not specific one.
I tried with 'coverPage.Read(fn, settings);'. It was same.

The debug log is:
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.016 0.016u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.078 0.016u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
read 3 magic header bytes
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Cache Magick[6964]: cache.c/DestroyPixelCache/960/Cache
destroy
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "magic.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "C:\Users\Sally.magick\magic.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Configure Magick[6964]: magic.c/LoadMagicList/682/Configure
Loading magic configure file "magic.xml" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Coder; rights=Read; pattern="PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
read 3 magic header bytes
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Cache Magick[6964]: cache.c/DestroyPixelCache/960/Cache
destroy
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Policy Magick[6964]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="C:\Temp\09004006-00.PDF" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.094 0.031u 6.8.8 Blob Magick[6964]: blob.c/OpenBlob/2535/Blob
read 3 magic header bytes
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "delegates.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "C:\Users\Sally.magick\delegates.xml"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: delegate.c/LoadDelegateList/1228/Configure
Loading delegate configuration file "delegates.xml" ...
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTLocateGhostscript/1035/Configure
Ghostscript (GPL Ghostscript) version 8.15
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTGhostscriptGetString/1101/Configure
registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.15\GS_DLL"="C:\Program Files (x86)\GPLGS\gsdll32.dll"
MyTrace Information: 1 : 02/10/2014 15:27:48, 2014-02-10T15:27:48-05:00 0:00.109 0.047u 6.8.8 Configure Magick[6964]: nt-base.c/NTGhostscriptGetString/1101/Configure
registry: "HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\8.15\GS_DLL"="C:\Program Files (x86)\GPLGS\gsdll32.dll"

New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
Can you upgrade Ghostscript to the latest version? The version you are using is from 2004.

New Post: Read Pdf image using Magick.NET-x86.dll, StackOverflow exception?

$
0
0
I did not know Magick.net needs Ghostscript. This explains why my code works for x64, not x86.
I have Ghostscript x64 installed long time ago, but not x86 Ghostscript on my computer.
My code works fine after I install Ghostscript x86.

Thank you

New Post: How to reduce time while converting j2k image to bitmap using MagickImage dll?

$
0
0
I am loading j2k images(by converting into Bitmap) using MagickImage.dll in c#.

sample code of loading j2k image in c# is :
 MagickImage image = new MagickImage(fileName);
  Bitmap bitmap= image.ToBitmap();
  pictureBox.Image=bitmap;
It is loading properly but taking a long time for e.g. 10-12 seconds per image. Can anybody tell how to reduce the time while converting image to Bitmap?

Thanks in advance.

New Post: How to reduce time while converting j2k image to bitmap using MagickImage dll?

$
0
0
Can you add a link to one of your images?

New Post: How to reduce time while converting j2k image to bitmap using MagickImage dll?

$
0
0
Sorry,I can't include images here but i have 30 j2k images of size 73.9 kb each and folder size is 2.12 mb.I am loading all images at one time it is taking near about 2 minutes and for one image it is taking near about 40 seconds

New Post: How to reduce time while converting j2k image to bitmap using MagickImage dll?

$
0
0
Can you post them on dropbox or contact me through Codeplex to email them to me? Which version of Magick.NET are you using?

New Post: How to reduce time while converting j2k image to bitmap using MagickImage dll?

$
0
0
I am using Magick.NET-6.8.8.201-Q16-x86-net40-client.
j2k image:
Image
Image

New Post: How to reduce time while converting j2k image to bitmap using MagickImage dll?

$
0
0
Can you first upgrade to the latest version and see if you can replicate the problem? The links to your images are not working.

New Post: How to reduce time while converting j2k image to bitmap using MagickImage dll?

$
0
0
Please open this discussion page on google chrome then you will see the image icons properly.(on other browsers it is not seen properly)
don't know from where to get the latest version of this dll ,so can you please send me the link of same.
Viewing all 3693 articles
Browse latest View live


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