Search found 16 matches

by FBR
2012-03-22T16:29:21-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

I can't get it why ImageMagick doesn't just call Ghostscript as external call doing the conversion. But maybe I take a look at your architecture description. I think I'm at a dead end here. Thanks for your replies anyway.
by FBR
2012-03-22T12:49:50-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

Data is available from disk, so there is no piping in this workflow. I understand this as if Ghostscript is commanded to load its input from and save its output to disk. Do you call Ghostscript as external process or as thread from a GS library within your program? ImageMagick saves the entire book ...
by FBR
2012-03-22T07:09:22-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

It seems so. Perhaps its Windows because the same conversion takes less than 3 minutes on my Linux box. File writing to disk cannot be the reason since Ghostscript uses it also if called directly. The bottleneck may be your data piping to the called process. I don't know what the interface to GS is ...
by FBR
2012-03-22T06:20:30-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

You can see from the logging above that ImageMagick took 25 minutes (8:28 - 8:53). I called Ghostscript directly for the same input by typing this: gswin64c.exe -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha ...
by FBR
2012-03-22T04:03:28-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

[ghostscript library] ... "-sOutputFile=C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-%08d" "-fC:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-qGRfzbo6" "-fC:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-hnB-EGHT" I don't understand it because I see 3 filenames. According to the IM call: What is PDF input file and ...
by FBR
2012-03-22T01:24:05-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

For your conversion, you probably will want to bypass ImageMagick and use Ghostscript directly from the command line. That will reduce the run-time to just over 3 minutes on your Windows box. Sorry, I cannot see from the -verbose output (see below) what I should use as command line call to ...
by FBR
2012-03-22T00:25:52-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

441 pages in 900 seconds, this is a speed of 2 seconds per page on a 2,5MB PDF document, it would be silly to blame Windows for that on a today's machine. Again, what are you doing for instance in that 3 first minutes of logged action "Cache destroy"?
by FBR
2012-03-21T07:07:56-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

Firstly, I just wanted to find out where all the time is spent on conversion of my special 441 pages example PDF file spru198j_programmers_guide.pdf. Understanding could help to find the reason of possible misconfiguration of my system. That's why I asked why IM's "Cache destroy" takes 3 minutes ...
by FBR
2012-03-21T05:22:11-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

If I understand you correctly, you want to tell me that compressing images and saving files takes 12 minutes (my 15min - 3min) here, right? I can't believe it takes that long on a 64bit Win Server 2003 R2, Intel Xeon E5620 @ 2,4GHz. For instance, why does Cache destroy take 3 minutes? See the ...
by FBR
2012-03-21T01:40:13-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

Do you see the problem? The output of D:\tmp>convert -debug cache -limit area 0 spru198j_programmers_guide.pdf test.png > log.txt 2>&1 is: ----------------- 2012-03-21T09:25:08+01:00 0:00.000 0.000u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache destroy 2012-03-21T09:25:08+01:00 ...
by FBR
2012-03-20T08:16:17-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

Re: convert(PDF=>PNG) is extremely slow on Windows,fast on L

Thanks for your reply. And why is Linux much faster for the same call of convert?
by FBR
2012-03-20T01:10:08-07:00
Forum: Bugs
Topic: convert(PDF=>PNG) is extremely slow on Windows,fast on Linux
Replies: 24
Views: 69671

convert(PDF=>PNG) is extremely slow on Windows,fast on Linux

Hi, converting a PDF (consisting of 441 pages) to PNG works in a few seconds on an old Linux machine but takes about 15 minutes (!) on a new Windows machine. The CPU load on Windows is 100% during the conversion, in the first seconds the memory usage jumps from 700MB to 2GB (=100% = 1GB real memory ...
by FBR
2012-03-02T03:19:05-07:00
Forum: Bugs
Topic: convert error for PDF files from Adobe web site
Replies: 4
Views: 14458

Re: convert error for PDF files from Adobe web site

I downloaded ghostscript for Windows from http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm and installed it but convert -list configure still doesn't list gs. Still some env vars needed to set or something? Don't know why but convert test.pdf test.png works now, even although gs is not listed ...
by FBR
2012-03-02T02:42:58-07:00
Forum: Bugs
Topic: convert error for PDF files from Adobe web site
Replies: 4
Views: 14458

Re: convert error for PDF files from Adobe web site

I downloaded ghostscript for Windows from http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm and installed it but

Code: Select all

convert -list configure
still doesn't list gs. Still some env vars needed to set or something?
by FBR
2012-03-02T02:06:41-07:00
Forum: Bugs
Topic: convert error for PDF files from Adobe web site
Replies: 4
Views: 14458

Re: convert error for PDF files from Adobe web site

No I can't see gs in the line DELEGATES.
Isn't it installed along with ImageMagick? What should I do now?