title: ImageMagick resize by percentage and limit
body: <p>I'm trying to resize various images using <a href="https://imagemagick.org/" rel="nofollow noreferrer">ImageMagick</a>.</p>
  <p>I have a requirement for this to be done in a single command without any supporting extra language.</p>
  <p>I want to resize all images below a certain width to 115% (or the equivalent: resize all images to a certain size while restricting the maximum enlargement to 115% of the original).</p>
  <p>I've tried mixing the <a href="https://www.imagemagick.org/Usage/resize/" rel="nofollow noreferrer">different options</a> but it doesn't seem to be supported.</p>
  <p>Is this even possible?</p>
  <hr />
  <h2>Update:</h2>
  <p>I used the <code>distort</code> operator as a possible solution:</p>
  <pre><code>convert in.jpg +distort srt &quot;%[fx:(w&lt;1600)?1.15:1] 0&quot; out.jpg
  </code></pre>
  <p>but when distorting the images &gt;1600 pixels it still does an operation and rewrites the image with a slightly different pixel count.</p>