Take partial screenshot with import

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
netteli
Posts: 1
Joined: 2016-08-17T01:35:09-07:00
Authentication code: 1151

Take partial screenshot with import

Post by netteli »

Is there way to take only partial screenshot with import (only top left corner)?

Code: Select all

import -w root topleftcorner.png
vonbiber
Posts: 13
Joined: 2009-08-18T07:55:47-07:00
Authentication code: 8675309

Re: Take partial screenshot with import

Post by vonbiber »

on my linux system I would do it this way
(my screen size is 1600 x 900)

Code: Select all

W=1600
H=900
w=$((W/2))
h=$((H/2))

import -w root -crop +${w}-$h +repage TopLeftCorner.png
Post Reply