Search found 5 matches

by Self-Perfection
2012-02-07T12:57:46-07:00
Forum: Bugs
Topic: "Import -window X" works with a delay
Replies: 6
Views: 12743

Re: "Import -window X" works with a delay

I managed to recompile imagemagick without that suspicious XDelay call - works just as fine, as with it. And, finally, fast! Woot! $ time import -window 0x02a003fb -verbose -silent w.bmp w.bmp PS 562x252 16-bit DirectClass 422KB 0.020u 0:00.030 real 0m0.054s user 0m0.033s sys 0m0.007s So here is may ...
by Self-Perfection
2012-02-05T12:41:39-07:00
Forum: Bugs
Topic: "Import -window X" works with a delay
Replies: 6
Views: 12743

Re: "Import -window X" works with a delay

Version 6.7.5 and the bug is still exists. strace shows, that while import is working it stops for 0.8s at some point nanosleep({0, 800000000}, NULL) = 0 <0.800084> I've traced this delay till XImportImage function (magick/xwindow.c). At some this function do call XDelay(display,SuspendTime << 4 ...
by Self-Perfection
2010-04-22T09:32:35-07:00
Forum: Bugs
Topic: "Import -window X" works with a delay
Replies: 6
Views: 12743

Re: "Import -window X" works with a delay

Bump. Imagemagick version in my distro updated to 6.6.1-4 but problem remains. I checked import -window command on other PC with Ubuntu 9.10 and got the same pause. But finally I found a way to retrieve screenshot faster: $ time dash -c 'import -verbose -window 0x0420001e import.png' import.png PS ...
by Self-Perfection
2010-04-17T07:25:59-07:00
Forum: Bugs
Topic: "Import -window X" works with a delay
Replies: 6
Views: 12743

Re: "Import -window X" works with a delay

Actually with -screen it's even worse. 17:30:35:~$ time import -verbose -screen -window $winid -pause 0 -delay 0 /dev/shm/pic-screen.bmp /dev/shm/pic.bmp PS 266x158 1600x1200+4+23 16-bit DirectClass 123KB 0.020u 0:00.029 real 0m1.898s user 0m1.200s sys 0m0.137s 17:30:45:~$ time import -verbose ...
by Self-Perfection
2010-04-17T02:29:54-07:00
Forum: Bugs
Topic: "Import -window X" works with a delay
Replies: 6
Views: 12743

"Import -window X" works with a delay

Here is an example: $time import -verbose -window 0x03c0001e -pause 0 -delay 0 /dev/shm/pic.bmp /dev/shm/pic.bmp PS 266x158 16-bit DirectClass 123KB 0.010u 0:00.009 real 0m0.821s user 0m0.017s sys 0m0.003s This takes screenshot of a fairly small window, uses no compression and stores result in ramfs ...