title: Copying an image to the clipboard from command line
body: <p>I am using ImageMagick to copy a portion of my screen into a temporary file (something.png). I would now like to paste the contents of this file into the clipboard directly from command line.</p>
  
  <p>So far my script looks like this:</p>
  
  <pre><code>#!/bin/bash
  
  TMPFILE=$(mktemp)
  FORMAT='.PNG'
  SCREENSHOT_FILE=${TMPFILE}${FORMAT}
  
  mv "$TMPFILE" "$SCREENSHOT_FILE"
  import "$SCREENSHOT_FILE"
  cat "$SCREENSHOT_FILE" | parcellite
  rm "$SCREENSHOT_FILE"
  </code></pre>
  
  <p>Parcellite works perfectly for command line copying and pasting, but I can’t get it to work with image. I reckon this is not a feature of parcellite. How could I do that then ?</p>