Creating a gif of the current window
07 Nov 2015 #ubuntu #guiBackDrop:
Everybody at some time of their life as netizen would have seen something like this
How about we create one?
Well recently when I was building a Calculator app, I wanted a gif
image to be there in the README.md
so as to show the usage of the app.
I wrote a How hard can Building a calclator be right? for the same some time back.
Did some googling and found out byzanz-record
as the tool perfect for me
Installation
Beginning for 14.04 and above, it is available in the universe
repository
If you are on a system older than that
Usage:
We are gonna be using this tool from the command prompt itself as GUI’s would just slow down the process. Now for that we just need four things
--x=<your_value>
--y=<your_value>
--width=<your_value>
--height=<your_value>
Now how do we get that?
run
and point on the window which you want to record. And it will return you the required values and a little extra information too!
There now, I have got my values
This will immediately start the recording for the Calculator
window until 45 seconds. So be sure to finish whatever you want to do before that.
Here’s is what I got from the above script