P.P.S. The command syntax above is for Windows (that's the reason for the "^" before "(" and ")". Omit them if you want to run it in macOS (or Linux or UNIX)
BTW, #ImageMagick is available in the #ShortcutsApp via @nholzschuch's #aShell mini app
https://apps.apple.com/app/id1543537943
so this can also be done in  #iOS and #iPadOS using a  #shortcut 🙂
 
    
  
            