title: ImageMagick: How to use "Only Shrink Larger Images" ('>' flag) both on windows and unix
body: <p>I found this description on website <a href="http://www.imagemagick.org/Usage/resize/#shrink" rel="nofollow">http://www.imagemagick.org/Usage/resize/#shrink</a> :</p>
  
  <blockquote>
    <p>Only Shrink Larger Images ('>' flag) Another commonly used option is
    to restrict IM so that it will only shrink images to fit into the size
    given.   Never enlarge.   This is the '>' resize option.</p>
    
    <p>Example: <pre>convert dragon.gif    -resize 64x64\>  shrink_dragon.gif</pre></p>
    
    <p>The Only Shrink Flag ('>' flag) is a special character in Window batch
    scripts and you will need to escape that character, using '^>', or it
    will not work.</p>
  </blockquote>
  
  <p>So as I understand this flag ('>') could only work either on windows ^> or unix /> . 
  Is there any way to create command that will work both on windows and unix?</p>
  
  <p>I use imagemagick with php, so I've got unix on production webserver, but windows on localhost.</p>
  
  <p>Thank you.</p>