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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-20T01:10:08-07:00

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 + 1GB virtual memory). What is the reason for that slow speed on Windows? Though loading+displaying that PDF file in Adobe Reader just takes 2 seconds. The PDF (2.15MB) is here: http://www.engr.uconn.edu/~zshi/course/ ... _guide.pdf

The exact call of convert is:
convert spru198j_programmers_guide.pdf test.png

Environment Windows:
- 64bit Win Server 2003 R2, Intel Xeon E5620 @ 2,4GHz
- ImageMagick-6.7.5-6-Q16-windows-x64-dll.exe
- gs902w64.exe

Environment Linux:
- 5 years old Celeron
- Package: imagemagick
- Architecture: i386
- Version: 7:6.6.2.6-1ubuntu1

Can you help me, please?
Thanks + Bye, FBR

User avatar
magick
Site Admin
Posts: 9708
Joined: 2003-05-31T11:32:55-07:00
Contact:

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

Postby magick » 2012-03-20T05:09:22-07:00

Add the -limit command to your command line:

    convert -limit area 0 spru198j_programmers_guide.pdf test.png

It will still convert slowly but it will not thrash your workstation.

Adobe Reader is fast because its render just one page at a time. ImageMagick must render 400+ pages and then compress the results, a time consuming and resource intensive process.

User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-20T08:16:17-07:00

Thanks for your reply. And why is Linux much faster for the same call of convert?

User avatar
magick
Site Admin
Posts: 9708
Joined: 2003-05-31T11:32:55-07:00
Contact:

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

Postby magick » 2012-03-20T09:17:04-07:00

To answer your question you would need to add '-debug cache' to your command line and post the output of both Windows and Linux. The debugging output would shed light onto any slowdown you're seeing under Windows.

User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-21T01:40:13-07:00

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 0:00.015 0.016u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.237 156.063u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.299 156.078u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000001[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-gtsiqIVI[3], disk, 3.878MB)
2012-03-21T09:28:07+01:00 2:59.299 156.078u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000001[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-gtsiqIVI[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:07+01:00 2:59.330 156.109u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.330 156.109u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000002[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-HdZp5FKj[3], disk, 3.878MB)
2012-03-21T09:28:07+01:00 2:59.330 156.109u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000002[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-HdZp5FKj[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:07+01:00 2:59.346 156.125u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.346 156.125u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000003[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-auN5Nnsm[3], disk, 3.878MB)
2012-03-21T09:28:07+01:00 2:59.346 156.125u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000003[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-auN5Nnsm[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:07+01:00 2:59.362 156.141u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.362 156.141u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000004[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-bevyE3SE[3], disk, 3.878MB)
2012-03-21T09:28:07+01:00 2:59.362 156.141u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000004[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-bevyE3SE[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:07+01:00 2:59.377 156.156u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.377 156.156u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000005[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-RATSPd__[3], disk, 3.878MB)
2012-03-21T09:28:07+01:00 2:59.377 156.156u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000005[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-RATSPd__[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:07+01:00 2:59.408 156.188u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.408 156.188u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000006[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-bAe4QbAf[3], disk, 3.878MB)
2012-03-21T09:28:07+01:00 2:59.408 156.188u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000006[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-bAe4QbAf[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:07+01:00 2:59.440 156.219u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:07+01:00 2:59.440 156.219u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000007[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-JwoIaC-t[3], disk, 3.878MB)
2012-03-21T09:28:07+01:00 2:59.440 156.219u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000007[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-JwoIaC-t[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:08+01:00 2:59.471 156.250u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:08+01:00 2:59.471 156.250u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000008[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-RPPwIT82[3], disk, 3.878MB)
2012-03-21T09:28:08+01:00 2:59.471 156.250u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000008[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-RPPwIT82[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:08+01:00 2:59.487 156.266u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
2012-03-21T09:28:08+01:00 2:59.502 156.281u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache
extend C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000009[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-f4erjnIk[3], disk, 3.878MB)
2012-03-21T09:28:08+01:00 2:59.502 156.281u 6.7.5 Cache convert.exe[4056]: cache.c/OpenPixelCache/4139/Cache
open C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-GR0TPtHC-00000009[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/2/magick-f4erjnIk[-1], memory-mapped, 612x792 3.698MiB)
2012-03-21T09:28:08+01:00 2:59.533 156.313u 6.7.5 Cache convert.exe[4056]: cache.c/DestroyPixelCache/1441/Cache
destroy
---->8------------->8------------->8---------snip---->8------------->8---------

User avatar
magick
Site Admin
Posts: 9708
Joined: 2003-05-31T11:32:55-07:00
Contact:

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

Postby magick » 2012-03-21T04:18:48-07:00

ImageMagick leverages Ghostscript to render the Postscript pages. On your system it takes 3 minutes. On our Linux-based system, the same conversion takes 1 and a half minutes. The remaining time is consumed by compressing the images and saving them in the PNG format.

User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-21T05:22:11-07:00

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 logging from above:
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:28:07+01:00 2:59.299 156.078u 6.7.5 Cache convert.exe[4056]: cache.c/ExtendCache/3941/Cache extend ...

User avatar
magick
Site Admin
Posts: 9708
Joined: 2003-05-31T11:32:55-07:00
Contact:

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

Postby magick » 2012-03-21T06:40:33-07:00

We have the same processor on our Linux host. Your document converts for us in just over 2 minutes. If you don't have transparent PDF pages, you can edit delegates.xml and change the pngalpha device to pnmraw. That reduced the run time to 1 and 1/2 minutes.

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.

User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-21T07:07:56-07:00

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, what is happening there, internally; what could put a brake on that?

You say, for conversion from PDF to PNG, it's enough to just call GS. What command line call of GS would replace my "convert -debug cache -limit area 0 spru198j_programmers_guide.pdf test.png"?

User avatar
magick
Site Admin
Posts: 9708
Joined: 2003-05-31T11:32:55-07:00
Contact:

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

Postby magick » 2012-03-21T07:25:47-07:00

Add -verbose to your command line and it displays the Ghostscript command line.

Your system is not mis-configured. ImageMagick traditionally has been much speedier on Linux than Windows. Note, its the same code base between the two machines so any slowness lies directly with the Windows OS or perhaps the standard C library compatibility layer Microsoft provides.

User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-22T00:25:52-07:00

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"?

User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-22T01:24:05-07:00

magick wrote: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 Ghostscript to convert from my PDF to those 441 PNGs.

Code: Select all

2012-03-22T08:28:19+01:00 0:00.187 0.047u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy
2012-03-22T08:28:19+01:00 0:00.219 0.063u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy
2012-03-22T08:31:44+01:00 3:25.378 148.938u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy
2012-03-22T08:31:45+01:00 3:25.424 148.969u 6.7.5 Cache convert.exe[4808]: cache.c/ExtendCache/3941/Cache
  extend C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000001[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-6qWbw9FN[3], disk, 3.878MB)
2012-03-22T08:31:45+01:00 3:25.424 148.969u 6.7.5 Cache convert.exe[4808]: cache.c/OpenPixelCache/4139/Cache
  open C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000001[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-6qWbw9FN[-1], memory-mapped, 612x792 3.698MiB)
C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000001 PNG 612x792 612x792+0+0 8-bit DirectClass 12.4KB 0.063u 0:00.077
2012-03-22T08:31:45+01:00 3:25.456 149.000u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy
2012-03-22T08:31:45+01:00 3:25.456 149.000u 6.7.5 Cache convert.exe[4808]: cache.c/ExtendCache/3941/Cache
  extend C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000002[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-k9JCjvFs[3], disk, 3.878MB)
2012-03-22T08:31:45+01:00 3:25.456 149.000u 6.7.5 Cache convert.exe[4808]: cache.c/OpenPixelCache/4139/Cache
  open C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000002[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-k9JCjvFs[-1], memory-mapped, 612x792 3.698MiB)
C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000002 PNG 612x792 612x792+0+0 8-bit DirectClass 3.73KB 0.016u 0:00.014
2012-03-22T08:31:45+01:00 3:25.471 149.016u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy

....

2012-03-22T08:34:01+01:00 5:42.145 171.406u 6.7.5 Cache convert.exe[4808]: cache.c/ExtendCache/3941/Cache
  extend C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000440[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-7UxT2eAo[3], disk, 3.878MB)
2012-03-22T08:34:01+01:00 5:42.145 171.406u 6.7.5 Cache convert.exe[4808]: cache.c/OpenPixelCache/4139/Cache
  open C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000440[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-7UxT2eAo[-1], memory-mapped, 612x792 3.698MiB)
C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000440 PNG 612x792 612x792+0+0 8-bit DirectClass 4.38KB 0.016u 0:00.016
2012-03-22T08:34:01+01:00 5:42.207 171.438u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy
2012-03-22T08:34:01+01:00 5:42.223 171.453u 6.7.5 Cache convert.exe[4808]: cache.c/ExtendCache/3941/Cache
  extend C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000441[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-6L_Vqke6[3], disk, 3.878MB)
2012-03-22T08:34:01+01:00 5:42.223 171.453u 6.7.5 Cache convert.exe[4808]: cache.c/OpenPixelCache/4139/Cache
  open C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000441[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-6L_Vqke6[-1], memory-mapped, 612x792 3.698MiB)
C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-zQND18Ox-00000441 PNG 612x792 612x792+0+0 8-bit DirectClass 70.1KB 0.031u 0:00.032
2012-03-22T08:34:04+01:00 5:44.973 171.922u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy
spru198j_programmers_guide.pdf[0] PDF 612x792 612x792+0+0 16-bit DirectClass 12.4KB 22.984u 2:19.719
spru198j_programmers_guide.pdf[1] PDF 612x792 612x792+0+0 16-bit DirectClass 12.4KB 22.969u 2:19.704
spru198j_programmers_guide.pdf[2] PDF 612x792 612x792+0+0 16-bit DirectClass 12.4KB 22.922u 2:19.673
...
spru198j_programmers_guide.pdf[438] PDF 612x792 612x792+0+0 16-bit DirectClass 12.4KB 1.031u 0:04.218
spru198j_programmers_guide.pdf[439] PDF 612x792 612x792+0+0 16-bit DirectClass 12.4KB 0.969u 0:04.108
spru198j_programmers_guide.pdf[440] PDF 612x792 612x792+0+0 16-bit DirectClass 12.4KB 0.922u 0:04.030
2012-03-22T08:34:08+01:00 5:48.895 172.828u 6.7.5 Cache convert.exe[4808]: cache.c/ExtendCache/3941/Cache
  extend test.png[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-yj8ug5fX[3], disk, 4.847MB)
2012-03-22T08:34:08+01:00 5:48.895 172.828u 6.7.5 Cache convert.exe[4808]: cache.c/CloneMemoryToMemoryPixelCache/1156/Cache
  memory => memory
2012-03-22T08:34:08+01:00 5:48.926 172.844u 6.7.5 Cache convert.exe[4808]: cache.c/OpenPixelCache/4139/Cache
  open test.png[0] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-yj8ug5fX[-1], memory-mapped, 612x792 4.622MiB)
spru198j_programmers_guide.pdf=>test-0.png[0] PDF 612x792 612x792+0+0 8-bit PseudoClass 54c 1.188u 0:13.875
2012-03-22T08:34:20+01:00 6:01.067 173.250u 6.7.5 Cache convert.exe[4808]: cache.c/ExtendCache/3941/Cache
  extend test.png[1] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-qC_5M1pu[3], disk, 4.847MB)
2012-03-22T08:34:20+01:00 6:01.067 173.250u 6.7.5 Cache convert.exe[4808]: cache.c/CloneMemoryToMemoryPixelCache/1156/Cache
  memory => memory

...

2012-03-22T08:52:18+01:00 23:59.175 254.938u 6.7.5 Cache convert.exe[4808]: cache.c/OpenPixelCache/4139/Cache
  open test.png[439] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick-w-yAgLXk[-1], memory-mapped, 612x792 4.622MiB)
spru198j_programmers_guide.pdf=>test-439.png[439] PDF 612x792 612x792+0+0 8-bit PseudoClass 25c 82.625u 18:13.013
2012-03-22T08:52:19+01:00 23:59.878 255.125u 6.7.5 Cache convert.exe[4808]: cache.c/ExtendCache/3941/Cache
  extend test.png[440] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick--6_sj10z[3], disk, 4.847MB)
2012-03-22T08:52:19+01:00 23:59.878 255.125u 6.7.5 Cache convert.exe[4808]: cache.c/CloneMemoryToMemoryPixelCache/1156/Cache
  memory => memory
2012-03-22T08:52:19+01:00 23:59.956 255.125u 6.7.5 Cache convert.exe[4808]: cache.c/OpenPixelCache/4139/Cache
  open test.png[440] (C:/DOCUME~1/fbr/LOCALS~1/Temp/1/magick--6_sj10z[-1], memory-mapped, 612x792 4.622MiB)
spru198j_programmers_guide.pdf=>test-440.png[440] PDF 612x792 612x792+0+0 8-bit PseudoClass 84c 32.8KB 82.781u 18:13.763
2012-03-22T08:52:19+01:00 24:00.221 255.234u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[0]
2012-03-22T08:52:20+01:00 24:01.034 255.469u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[1]
2012-03-22T08:52:20+01:00 24:01.190 255.500u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[2]
2012-03-22T08:52:20+01:00 24:01.347 255.547u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[3]
2012-03-22T08:52:21+01:00 24:01.534 255.578u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[4]

...

2012-03-22T08:53:26+01:00 25:06.488 267.813u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[438]
2012-03-22T08:53:26+01:00 25:06.488 267.813u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[439]
2012-03-22T08:53:26+01:00 25:06.504 267.828u 6.7.5 Cache convert.exe[4808]: cache.c/DestroyPixelCache/1441/Cache
  destroy test.png[440]
[ghostscript library] Files/gs/gs9.02/bin/gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g612x792  "-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"

User avatar
magick
Site Admin
Posts: 9708
Joined: 2003-05-31T11:32:55-07:00
Contact:

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

Postby magick » 2012-03-22T03:42:35-07:00

See the last line of your output. The one with gswin32c.exe. That's the GS command-line.

User avatar
FBR
Posts: 16
Joined: 2012-03-01T01:59:37-07:00
Authentication code: 8675308

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

Postby FBR » 2012-03-22T04:03:28-07:00

Code: Select all

[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 what is the base name of the PNG output files?

User avatar
magick
Site Admin
Posts: 9708
Joined: 2003-05-31T11:32:55-07:00
Contact:

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

Postby magick » 2012-03-22T04:46:56-07:00

Check the Ghostscript web pages for help with the Ghostscript command-line.


Return to “Bugs”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests