Moving resized image to an existing folder

Hi,

I'm making a button to resize an image (from the viewer) and move it to a defined folder.

I can't get it to move, instead of copy. Image HEIGHT=1080 PRESERVEASPECTRATIO CONVERT=jpg NOENLARGE TO "F:\IMG\1080"

Any help appreciated.

The Image command won't move a file. It'll only write a new file or overwrite an existing file (which may or may not be the input file).

If you want to delete the input file, use the Delete command after the conversion.

(You might also want to add a check you aren't being run from within your destination folder, since then the input and output file would be the same and you wouldn't want to delete anything in that case. The @ifpath modifier can do that test without needing to use full scripting.)

1 Like

Cheers @Leo