title: How to enlarge into PNG no less than a height of 2880, but proportions must be sustained and maintained?
body: <p>My special requirements are,</p>
  <ol>
  <li>When their <strong>height</strong> is <strong>2879 or below</strong>, enlarge into 2880</li>
  <li>When their <strong>height</strong> is <strong>2881 or over</strong>, <strong>leave alone</strong></li>
  <li><strong>Always sustain and maintain their proportion</strong></li>
  <li>Everything <strong>must be converted into PNG in a full quality</strong>, no matters if the source picture is PNG or JPG</li>
  <li>Those are my photographes to be enlarged <strong>for use as my own UEFI wallpapers on an 5k screen</strong></li>
  <li><strong>PNG</strong> source pictures to be <strong>overwritten by the results</strong></li>
  <li><strong>JPG</strong> source pictures to be <strong>removed after the final completion</strong></li>
  </ol>
  <p>Finally, i’m unsure if those below commands are correct for doing everything above,</p>
  <pre><code>for J in *.jpeg; do ls */*|grep jpeg|xargs -I $J mogrify $J -gemoetry x2880&lt; -quality 100% $J.png; done
  for j in *.jpg; do ls */*|grep jpg|xargs -I $j mogrify $j -gemoetry x2880&lt; -quality 100% $j.png; done
  for K in *.JPEG; do ls */*|grep JPEG|xargs -I $K mogrify $K -gemoetry x2880&lt; -quality 100% $K.png; done
  for k in *.JPG; do ls */*|grep JPG|xargs -I $k mogrify $k -gemoetry x2880&lt; -quality 100% $k.png; done
  find ./ -type f -iname &quot;*.JPEG&quot; -exec mogrify -format png -layers Dispose -gemoetry x2880&lt; -quality 100% {} +
  find ./ -type f -iname &quot;*.JPG&quot; -exec mogrify -format png -layers Dispose -gemoetry x2880&lt; -quality 100% {} +
  find ./ -type f -iname &quot;*.jpeg&quot; -exec mogrify -format png -layers Dispose -gemoetry x2880&lt; -quality 100% {} +
  find ./ -type f -iname &quot;*.jpg&quot; -exec mogrify -format png -layers Dispose -gemoetry x2880&lt; -quality 100% {} +
  </code></pre>
  <p>Thanks answering anyway, i appreciate every people’s effort :)</p>