title: Only shrink larger images using ImageMagick to a ratio
body: <p>Using ImageMagick, I can easily have a screenshot of what I want, but I'd like to resize it for using less space. I found this :</p>
  
  <pre><code>convert screen.jpg    -resize 1280x1024\!  screen.jpg
  </code></pre>
  
  <p>But I'd like to resize it based on the most bigger size (width OR height) and the other one (height OR width) will be proportionnaly resized too.</p>
  
  <p>For example, say I want all my image to be resized to 600px at their most width/height size :</p>
  
  <ul>
  <li>1920x1200 => width is the biggest : 600x375</li>
  <li>600x1200 => height is the biggest : 300x600</li>
  </ul>
  
  <p>How can I do that with ImageMagick?
  (or at least, defining one max size (only width for example)).</p>
  
  <p>Thanks for your help!</p>
  
  <p>Note: is it possible to implement it automatically with the <code>import</code> command?</p>