Create different sizes of an image and put them in separate folder

Hello, could any kind soul help me create a button that takes a JPG, resize it and put it into a separate folder?
For example, I have a 200x200 image called test.jpg, is there anyway to make it so DO creates a 120x120 version, put it into a folder called 120, then creates a 80x80 version, then put that version in a folder called 80, so on and so forth.

I'm very new to DO so I apologize in advance if I seem unfamiliar with the basic stuffs.
Thank you in advance

Here's command which does that:

CreateFolder READAUTO=no NAME="80" CreateFolder READAUTO=no NAME="120" Image HEIGHT=80 WIDTH=80 TO=".\80" PRESERVEASPECTRATIO Image HEIGHT=120 WIDTH=120 TO=".\120" PRESERVEASPECTRATIO

Thanks alot Leo! After digging through the documentation yesterday I was able to figure most of that out, except how to put the JPG into a relative folder, specifically this part

TO=".\80"

Turns out I was missing that period, that's what was needed to put it into a relative folder. All's working well right now, thanks again :smiley: