title: Imagemagic - How to get mirror image
body: <p>How we can  create mirror image using imagemagic in php?</p>
  
  <p>Here is the code i have used:</p>
  
  <pre><code>$output_h       = 1200;
  $output_w       = 1200;
  $image_size     = 600;
  $src        = './images/upload/'.$image;
  $output_morror  = './images/upload/mirror_'.$filename[0].'.png';
  
  //Mirror
  exec('convert '.$src.' -resize '.$image_size.' \( -clone 0 -flip \) -append +write mpr:sometile  +delete -size '.$output_w.'x'.$output_h.' tile:mpr:sometile '.$output_morror);
  </code></pre>