snipt

Ctrl+h for KB shortcuts

Text only

iPhone: Screenshot without having the device

1
2
3
Launch emulator with the device wanted.
Click Edit / Copy screen
Then Paste it in Photoshop or other
https://snipt.net/embed/be388967e7c450fdf3b0fa52b876555b/
https://snipt.net/raw/be388967e7c450fdf3b0fa52b876555b/
be388967e7c450fdf3b0fa52b876555b
text
Text only
3
2016-09-28T19:16:49
True
False
True
Apr 26, 2014 at 04:07 PM
/api/public/snipt/133121/
iphone-screenshot-without-having-the-device-8b895857
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>Launch emulator with the device wanted. </span><span id="L-2"><a name="L-2"></a>Click Edit / Copy screen </span><span id="L-3"><a name="L-3"></a>Then Paste it in Photoshop or other </span></pre></div> </td></tr></table>
ios, ipad, iphone, screenshot

Text only

ADB screenshot to file with date (osx)

adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > "screen_$(date +%Y_%m_%d_%H_%M_%S).png"
https://snipt.net/embed/46a7fb26235d631272c4a4f9932be56a/
https://snipt.net/raw/46a7fb26235d631272c4a4f9932be56a/
46a7fb26235d631272c4a4f9932be56a
text
Text only
1
2016-09-28T10:17:51
True
False
False
Dec 13, 2013 at 03:43 AM
/api/public/snipt/100267/
adb-screenshot-to-file-with-date-osx
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>adb shell screencap -p | perl -pe &#39;s/\x0D\x0A/\x0A/g&#39; &gt; &quot;screen_$(date +%Y_%m_%d_%H_%M_%S).png&quot; </span></pre></div> </td></tr></table>
adb, android, osx, screenshot

Java

java creating and saving a screenshot

1
2
3
4
5
6
      Robot robot = new Robot();
      BufferedImage screen = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit()
          .getScreenSize()));
      ImageIO.write(screen, "jpeg", new File("d:/screen.jpeg"));
      ImageIO.write(screen, "bmp", new File("d:/screen.bmp"));
      ImageIO.write(screen, "png", new File("d:/screen.png"));
https://snipt.net/embed/2ed6797b22560abf6d9f941ee0c83676/
https://snipt.net/raw/2ed6797b22560abf6d9f941ee0c83676/
2ed6797b22560abf6d9f941ee0c83676
java
Java
6
2016-09-28T17:14:36
True
False
False
/api/public/snipt/27465/
java-creating-and-saving-a-screenshot
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a> <span class="n">Robot</span> <span class="n">robot</span> <span class="o">=</span> <span class="k">new</span> <span class="n">Robot</span><span class="o">();</span> </span><span id="L-2"><a name="L-2"></a> <span class="n">BufferedImage</span> <span class="n">screen</span> <span class="o">=</span> <span class="n">robot</span><span class="o">.</span><span class="na">createScreenCapture</span><span class="o">(</span><span class="k">new</span> <span class="n">Rectangle</span><span class="o">(</span><span class="n">Toolkit</span><span class="o">.</span><span class="na">getDefaultToolkit</span><span class="o">()</span> </span><span id="L-3"><a name="L-3"></a> <span class="o">.</span><span class="na">getScreenSize</span><span class="o">()));</span> </span><span id="L-4"><a name="L-4"></a> <span class="n">ImageIO</span><span class="o">.</span><span class="na">write</span><span class="o">(</span><span class="n">screen</span><span class="o">,</span> <span class="s">&quot;jpeg&quot;</span><span class="o">,</span> <span class="k">new</span> <span class="n">File</span><span class="o">(</span><span class="s">&quot;d:/screen.jpeg&quot;</span><span class="o">));</span> </span><span id="L-5"><a name="L-5"></a> <span class="n">ImageIO</span><span class="o">.</span><span class="na">write</span><span class="o">(</span><span class="n">screen</span><span class="o">,</span> <span class="s">&quot;bmp&quot;</span><span class="o">,</span> <span class="k">new</span> <span class="n">File</span><span class="o">(</span><span class="s">&quot;d:/screen.bmp&quot;</span><span class="o">));</span> </span><span id="L-6"><a name="L-6"></a> <span class="n">ImageIO</span><span class="o">.</span><span class="na">write</span><span class="o">(</span><span class="n">screen</span><span class="o">,</span> <span class="s">&quot;png&quot;</span><span class="o">,</span> <span class="k">new</span> <span class="n">File</span><span class="o">(</span><span class="s">&quot;d:/screen.png&quot;</span><span class="o">));</span> </span></pre></div> </td></tr></table>
awt, file, image, java, robot, save, screenshot, toolkit

Bash

Generate screencap via ffmpeg

find -iregex ".*\.\(flv\|wmv\|avi\|mpeg\|mpg\)" -exec ffmpeg -i {} -f image2 -y -an -ss 00:00:21 -sameq -b 2k -r 0.004 "{}.%01d.jpg" \;
https://snipt.net/embed/efda99e04911a560b84f998bec0d3752/
https://snipt.net/raw/efda99e04911a560b84f998bec0d3752/
efda99e04911a560b84f998bec0d3752
bash
Bash
1
2016-09-28T17:46:14
True
False
False
/api/public/snipt/14008/
generate-screencap-via-ffmpeg
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>find -iregex <span class="s2">&quot;.*\.\(flv\|wmv\|avi\|mpeg\|mpg\)&quot;</span> -exec ffmpeg -i <span class="o">{}</span> -f image2 -y -an -ss 00:00:21 -sameq -b 2k -r 0.004 <span class="s2">&quot;{}.%01d.jpg&quot;</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
bash, ffmpeg, screenshot, video
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.