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

New Post: Create PDF very slow.

$
0
0
Hello.

First, congratulations on the great work.

I have an application that transforms several images to a pdf file. These images are scanned at 300 dpi and compressed Tiff Group 4.
The final size of the images is small.

To create the pdf, use this code:
using (MagickImageCollection collection = new MagickImageCollection())
                    {
                        foreach (string fich in Directory.GetFiles(DIR_ESCAN))
                        {                        
                            //collection.AddRange(fich);
                            collection.Add(fich);
                        }

                        if (File.Exists(nombreFichero))
                            File.Delete(nombreFichero);

                        collection.Write(nombreFichero);
                        .........

                    }
The problem is that the process is very slow and I have seen that for every 50kb compressed image, a temporary image is created in AppData \ Local \ Temp + -70MB. These images, I guess are the images used by the process.
Can I do this process without these temporary files? Now the process is very slow for me.

I have another problem, but not always. The dll uses Ghostscript and ImageMagick on several PCs all works ok. In 2, when I'm calling the dll in my program for the first time, the program closes. If I reinstall those products, sometimes it is solved, other times I have to reinstall the PC.
In the other PC with the same software, everything works ok.

Thank you very much.

Sorry for my English

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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