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

New Post: Postscript delegate failed - No such file or directory @ error/pdf.c/ReadPDFImage/682

$
0
0
Well.

It has to be with the parameters of Magick.net.

Do you remember the post Magick net parameters?

I followed your suggestion and I'have included this piece of code when I use Magick.Net:
  if (magickLogDebugInfo)
  {
                    MagickNET.SetLogEvents(LogEvents.All);
                    MagickNET.Log += MagickNET_Log;

                    Logger.Info("Habilitado el log de información de Debug de Magick.Net");
  }

  if (!string.IsNullOrEmpty(magickTemporaryDir))
  {
                    MagickNET.SetTempDirectory(magickTemporaryDir);

                    Logger.Info("Magick temporary dir : " + magickTemporaryDir);
  }
  else
  {
                    Logger.Info("Magick temporary dir : por defecto");
  }

  if (magickMemoryLimit > 0)
  {
                    ImageMagick.ResourceLimits.Memory = magickMemoryLimit;

                    Logger.Info("Magick memory limit : " + magickMemoryLimit.ToString());
  }
  else
  {
                    Logger.Info("Magick memory limit : por defecto");
  }
Basically, I check for non null/non empty parameters to either use then or the defaults.

The problems that are the origin of this post happens when I run my code with parameters having some values, all of them.

But if I make then null, empty or zero respectivelly, and I create the environment variables as I pointed in "Magick net parameters", then I've got NO problem with Gostscript.

Is it that I'm missing some configuration or perhaps I'm doing something wrong?

Thanks!!

New Post: Magick Script & Composite

New Post: Postscript delegate failed - No such file or directory @ error/pdf.c/ReadPDFImage/682

$
0
0
Can you check if it works if you do not call MagickNET.SetTempDirectory? I think setting the temp directory is causing the problem. Did you set it to a network share?

New Post: Check if filetype is supported

$
0
0
This library supports impressive number of file formats so I was wondering is there way to check if file is supported before opening.

For example in a thumbnail viewer application what is be best way to check before attempting to to open as image? Should I
  • just wrap it in try/catch,
  • should I list all (extension == "jpg" || extension=="png"... and unintentionally maybe miss a few
  • or is there something like bool b =isSupported("jpg")?

New Post: When I convert image with thereshold 80% I get a blank page

$
0
0
I'm using version 6.8.8.701 (Magick.NET-x86.dll from zip file)

If I use convert from command line convert -thereshold 80% 1.jpg 2.jpg goes right.

I'm trying the same using library but seems I'm missing something.

using (MagickImage image = new MagickImage(@"C:\test.jpg"))
        {
            image.Threshold(80);
            image.Write(@"C:\test6.pdf");
        }
I've tested also with
using (MagickImage image = new MagickImage(@"C:\test.jpg"))
        {
            image.Threshold(0.8);
            image.Write(@"C:\test6.pdf");
        }
I've been looking at documentation but I've not found the key or my mistake.

Thanks in advance.

New Post: Check if filetype is supported

$
0
0
You can use MagickNET.SupportedFormats to get a list of all supported formats. Or you could use the names of the MagickFormat enum to get all the supported extensions.

New Post: When I convert image with thereshold 80% I get a blank page

$
0
0
Another user has reported the same problem. I am planning to look into it this evening/weekend. I first have to fix another issue in ImageMagick.

New Post: Abort loading image

$
0
0
For a thumbnail browser I have a custom thumbnail control where each loads an image in different Task.Factory thread. Is there a way to stop Magick once it starts loading and working on image.thumbnail(100,100) when user switches the folder? For some huge images it takes really long time. Cancelation token would not do anything and I don't know what kind of thread termination Magick is OK with.
Also, does it make sense to use threads or async/await would be better?

New Post: Abort loading image

$
0
0
You should not abort a thread that is loading an image. This can cause problems with the unmanaged memory and temporary files that are being used by ImageMagick. You should probably just finish loading the image and discard (and dispose) it.

New Post: When I convert image with thereshold 80% I get a blank page

$
0
0
Thanks dlemstra, and sorry because I had not seen the other post about the same issue https://magick.codeplex.com/discussions/537971

Really we're doing exactly the same converting document to pdf with group4 compression. But we've only put here what we've thought was the problem, the conversion to black & white with thereshold param.

New Post: When I convert image with thereshold 80% I get a blank page

$
0
0
It will be fixed in the next version of Magick.NET that uses a percentage as the parameter. You will be able to do this:
// convert -threshold 80% 1.jpg 2.jpgusing (MagickImage image = new MagickImage("1.jpg"))
{
  image.Threshold(80);
  image.Write("2.jpg");
}

New Post: Converting(any?) image to black and white

$
0
0
That link can be found on the bottom of the documentation page. I have made this more clear so it won't be that easy to miss it anymore.

The problem with Threshold will be fixed in the next release of Magick.NET. It will use a percentage instead. You can find an example in this topic: https://magick.codeplex.com/discussions/538324.

New Post: Abort loading image

$
0
0
OK thanks! I will then just check if filesize is too large and skip huge images.

New Post: Postscript delegate failed - No such file or directory @ error/pdf.c/ReadPDFImage/682

$
0
0
Hello there.

I have checked it out and it works if I don not call de MagickNET.SetTempDirectory method.

I'm moving to another project, so it willl de difficult to make further tests.

Hope it helps.

Thank you.

New Post: Postscript delegate failed - No such file or directory @ error/pdf.c/ReadPDFImage/682

$
0
0
I made a fix to ImageMagick this weekend that should resolve the issue when you use a network share as a temporary directory. Feel free to try the next release if the other project also does not meet your needs.

New Post: C# Conversion from CMYK to RGB .jpg

$
0
0
I can't seem to find any code snippet/example of converting a file from CMYK to RGB using C#.

New Post: C# Conversion from CMYK to RGB .jpg

New Post: Color transformation with Fx

$
0
0
I am trying to do some colour transformations with Fx function, but is doesn't work.

If I use this expression inside Fx function
"rgb((1-u.r)*255,128,128)"
the result is black image. The actual transformation is more complicated, but I can't get even this simple one to work.

If I use
"rgb(0,128,128)"
the result is plain colour image as expected.

There is probably some fundamental mistake in my expression, but I can't see it. Can anybody give me an advice?

New Post: When I convert image with thereshold 80% I get a blank page

$
0
0
Thanks dlemstra

Is any estimation date for next release, I've seen last version has been released 17 february. I observate from april 2013 you do a release each month, this is your release cycle ?

New Post: Converting 2 pages TIF Files to jpg

$
0
0
Hi, I am having an error when converting 2 pages TIF Files into a single file .jpg . What is the right approach for this?

Here's the error
ImageMagick.MagickCoderErrorException: Magick: C:\DigitalAssets\Saucisses Expo 008.tif: Null count for "Tag 33426" (type 4, writecount -3, passcount 1). `_TIFFVSetField' @ error/tiff.c/TIFFErrors/561
   at ImageMagick.MagickImage.HandleReadException(MagickException exception)
   at ImageMagick.MagickImage.Read(String fileName, MagickReadSettings readSettings)
   at Digital_Asset_Converter_Service.Service.EPSFolderWatcher_Created(Object sender, FileSystemEventArgs e)
and the code: (I just provided the code for reading the file but it still gives an error.)
 MagickReadSettings settings = new MagickReadSettings();
                settings.ColorSpace = ColorSpace.RGB;
                settings.FrameIndex = 0; 
               
               

              string fileName = @"C:\DigitalAssets\Saucisses Expo 008.tif";
                    try
                    {
                        using (MagickImageCollection image = new MagickImageCollection())
                        {                       
                                image.Read(fileName,settings);
                        }
                    }
Viewing all 3693 articles
Browse latest View live


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