Resize image preserve aspect ratio

I want a command button that resizes pictures to 1000 pixels wide and preserves the aspect ratio. It should only affect files with width>1000 (in other words, don't enlarge pictures).

I put this in a command button:

Image CONVERT WIDTH=1000 PRESERVEASPECTRATIO IFLARGER

I tested on a file that's 1200x1200 and created a file that is 1000x1200. It ignored the PRESERVEASPECTRATIO flag

What am i doing wrong?

?

IFLARGER should be NOENLARGE

Image CONVERT WIDTH=1000 PRESERVEASPECTRATIO NOENLARGE

(If an AI suggested IFLARGER, be aware they constantly make things up that are wrong or don't exist.)

NVM. None of the standard ai could figure it out, but it was quite easy just using dopus documentation.
The correct command was
Image WIDTH=1000 PRESERVEASPECTRATIO NOENLARGE HERE

1 Like

Yes, I am coming to realize that ai aren't very useful at this point when it comes to dopus

1 Like

In a legal context, some lawyers have gotten into hot water. I saw where a judge ripped one a new one, when it was discovered that AI had made up precedent and case law that did not exist, the lawyer had cited.