Is this AI generated?
The "Conventions Used in This Guide" sound like your instructions.
Use input.png and output.jpg as the filenames (extensions can change as needed).
Put one switch on each line.
Use future tense such as "optimize" instead of "optimizes" or "optimized".
Use AP style heading capitalization.
Use the newer magick command instead of the older convert command.
Arbitrarily organize into what I think are the most likely use cases.