Home > Back-end >  can graphicsmagick import (screenshot) several snaps per second?
can graphicsmagick import (screenshot) several snaps per second?

Time:02-19

I've read in the http://www.graphicsmagick.org/GraphicsMagick.html#details-snaps that it can produce several screenshots in a row, eventually with a desired pause time inbetween. However it seems that either I don't understand how to use it or it can't even do several screenshots with 1 second delay. The command I tried is: gm import -snaps 10 -pause 1 -window root ./"screenshot-$(date %d_%m_%Y-%H:%M:%S).png"

But this above command other than waiting 10 seconds and producing 1 screenshot with the initial screen it does not do what I read it should.

So, can gm import do several screenshots with a delay ? if so can it do more than 1 screenshot in a second ?

CodePudding user response:

You can either use GIF format to capture an animated GIF:

gm import -snaps 3 -pause 1 -window root screenshot.gif

Or use this to capture a series of images with sequential numbering padded to 2 digits as a result of the d in the filename:

gm import -snaps 3 -pause 1 -window root  adjoin screenshot_d.png 

CodePudding user response:

Try authorizing the command with the "loop" utility

  • Related