Posts Tagged ‘screenshot’

How to append images vertically?

February 26, 2019 Leave a comment

With youtube-dl I downloaded all the videos of a YouTube playlist. I also wanted to have a screenshot with all the videos of the playlist that contains the thumbnails, the titles, etc. As the playlist contained many videos and thus they didn’t fit on one page, I took several screenshots. For example, 01.png contained videos from 1 to 9, 02.png contained videos from 10 to 18, etc.
However, instead of several screenshots, I wanted just one long screenshot with everything. How to concatenate images vertically?

Using convert from ImageMagick:

convert -append 1.png 2.png full.png

This tip is from here.

Categories: bash Tags: , ,

Ubuntu: assign a better screenshot tool to the Print button

September 5, 2016 Leave a comment

The Ubuntu default screenshot tool (gnome-screenshot) is lame. In Manjaro there is a better tool called xfce4-screenshooter, which allows you to select a region, open it with Gimp, upload to Imgur, etc.

How to assign xfce4-screenshooter to the Print button?

First, install the software (sudo apt install xfce4-screenshooter). Then, open System Settings, select Keyboard, and go to the Shortcuts tab. Here ignore the “Screenshots” entry and select Custom Shortcuts. Click on the “+” sign and add the command xfce4-screenshooter. As a result, a new entry will appear. Click on its right side and assign the Print button to it. It’ll complain a bit but click on Re-assign. Done.

I found this nice solution here: . Click on this link for screenshots.

Categories: manjaro, ubuntu Tags: ,

Xfce shortcuts

August 3, 2015 Leave a comment

Start -> Settings Manager -> Window Manager -> Keyboard.

Minimize all windows: Ctrl + Alt + D.

Update (20150806)
Under Ubuntu if you press the PrtScn button, an application starts that allows you to take a screenshot. How to have the same thing in Xfce? First, install the program xfce4-screenshooter. Then add a new application shortcut:

Start -> Settings Manager -> Keyboard -> Application Shortcuts tab.

Add xfce4-screenshooter and assign the PrtScn button to it.

Categories: manjaro Tags: , ,

take a screenshot and upload to imgur

November 5, 2013 Leave a comment

I want to grab a part of the screen by selecting a rectangle. I wanto to be able to refine the selection (resize the rectangle) like in Gimp. Then upload the selected image to imgur.

I found a great tool for this task called Nanoshot.

Read more about Nanoshot in this thread.

Download Nanoshot from here.

Note that I had to install the package python-wnck (via apt-get) to make it run.

Categories: python, ubuntu Tags: ,

Take screenshot of a selected area

October 30, 2013 Leave a comment

You want to take a screenshot of a selected area of the screen.

Launch gnome-screenshot and choose “Select area to grab”.

Classic way
I used to take a screenshot of the whole screen (under Ubuntu just press the PrtScn button), then crop it with Gimp. You can also copy the screenshot to the clipboard and paste it to Gimp.

Read more here.

Categories: ubuntu Tags: ,

Screenshot from command line

January 1, 2013 Leave a comment

This entry is based on this post.


sudo apt-get install scrot


$ scrot /tmp/out.jpg

Screenshot in 5 seconds:

$ scrot -cd 5 /tmp/out.jpg
Categories: bash Tags: ,

Screenshot and video information with mplayer

May 7, 2011 1 comment

Let our test file be “/tmp/test.wmv“.

Getting video info

mplayer '/tmp/test.wmv' -ao null -vo null -frames 1 -identify

It will produce a long output. You can refine the output:

(mplayer '/tmp/test.wmv' -ao null -vo null -frames 1 -identify | grep ID_) 2>/dev/null

Again, it will produce a long output that I omit. The video length is here (given is sec.):


Another interesting line is the video summary:

(mplayer '/tmp/test.wmv' -ao null -vo null -frames 1 -identify | grep 'VIDEO:') 2>/dev/null

Sample output:

VIDEO:  [WMV3]  320x240  24bpp  1000.000 fps  386.0 kbps (47.1 kbyte/s)

Taking a screenshot at a given time

mplayer '/tmp/test.wmv' -ss '20' -noautosub -frames 1 -ao null -vo png:outdir='/tmp'

Here we take a screenshot from the video at 20 sec. The output file will be /tmp/00000001.png (mplayer gives this name automatically).

Ref.: I found these tricks in this project.