title: Append and Batch Process Images From Different Folders Using ImageMagick
body: <p>I have several hundreds of images in one folder (<strong>Folder A</strong>) that need to be merged with 2 files in another folder (<strong>Folder B</strong>).</p>
  
  <p><strong>Folder A</strong> contains square 100x100 images. I've created a header and footer that are 100px wide that are in <strong>Folder B</strong>.</p>
  
  <p>I need to merge the header and footer in <strong>Folder B</strong> with the square images in <strong>Folder A</strong>.</p>
  
  <p>So the end result should be:</p>
  
  <pre><code>-- HEADER --
    -IMAGE-
  -- FOOTER --
  </code></pre>
  
  <p>I did a test for one image (see command below) where the header, image, and footer existed in the <em>same</em> folder, but how do I batch process it given my situation above?</p>
  
  <p><code>convert -append -quality 100 -gravity Center "C:\test\*.jpg" "C:\test\output\img.jpg"</code></p>
  
  <p>The other option may be to have one single file with a mask for the image so it gets inserted between the header and footer?</p>