<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Michael Jay Lissner</title><link href="https://michaeljaylissner.com/" rel="alternate"></link><link href="https://michaeljaylissner.com/feeds/tag/imagemagick" rel="self"></link><id>https://michaeljaylissner.com/</id><updated>2008-05-17T17:48:40-07:00</updated><entry><title>Drag a Screenshot Using ImageMagick</title><link href="https://michaeljaylissner.com/posts/2008/05/17/drag-a-screenshot-using-imagemagick/" rel="alternate"></link><updated>2008-05-17T17:48:40-07:00</updated><author><name>Mike Lissner</name></author><id>tag:michaeljaylissner.com,2008-05-17:posts/2008/05/17/drag-a-screenshot-using-imagemagick/</id><summary type="html">&lt;p&gt;I learned an interesting trick while working on the Fuji water article. We all know that if you want to take a screenshot in Linux, all you usually have to do is press the &amp;#8220;printscreen&amp;#8221; button. That, however, takes a screenshot of the entire screen, which you then have to trim down into a useful bit of&amp;nbsp;picture. &lt;/p&gt;
&lt;p&gt;The trick I learned to make this easy is to simply&amp;nbsp;type:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;import screenshot.png
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;That will turn your cursor into a little crosshair, which you can drag across a section of the&amp;nbsp;screen. &lt;/p&gt;
&lt;p&gt;If you want to do that after a delay, the trick is to use the sleep command like&amp;nbsp;so:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;sleep 10; import screenshot.png
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I found this tip along with a lot of others on &lt;a href="http://tips.webdesign10.com/how-to-take-a-screenshot-on-ubuntu-linux"&gt;this blog&lt;/a&gt;. There are some other interesting techniques there as&amp;nbsp;well.&lt;/p&gt;</summary><category term="Linux"></category><category term="imageMagick"></category></entry></feed>