title: Get list of result files converted via Wand
body: <p><a href="http://www.imagemagick.org/script/index.php" rel="nofollow">Imagemagick</a> is open source software suite for displaying, converting, and editing raster image files. <a href="http://docs.wand-py.org" rel="nofollow">Wand</a> is a <a href="http://docs.python.org/2/library/ctypes.html#ctypes" rel="nofollow">ctypes</a>-based ImageMagick binding for Python.</p>
  
  <p><strong>How do i get the list of image files, which i got as a result of using Wand?</strong></p>
  
  <p>For example there is a 2-page PDF file <code>file.pdf</code> and i converted it to 2 JPEG files <code>file-0.jpg</code> and <code>file-1.jpg</code>. How do i get the list <code>['file-0.jpg', 'file-1.jpg']</code>?</p>
  
  <p>Currently i simply use <code>glob</code>:</p>
  
  <pre><code>with Image(filename='file.pdf') as original:
      with original.clone() as converted:
          converted.format = 'jpeg'
          converted.save(filename='file.jpg')
  images = glob('*.jpg')
  </code></pre>
  
  <p>But maybe there is a more idiomatic way through Wand library itself.</p>