Image conversion / new file with different filename

Hi Guys,

I just spent two hours trying to figure out how to do this.. I failed!

Got this at least:
@nodeselect
dopusrt.exe /cmd Image CONVERT=jpg PRESERVEASPECTRATIO HERE PRESERVEDATE WIDTH=640 height=480 AS={file|noext}_640x480.jpg

I just want to create a function, that creates a new image-file with
different dimensions and another filename.
My command only works for one single selected file, if more files are
selected, nothing happens or dopus trys to write over and over again
into the firstly created new image.. o(

I cannot avoid using dopusrt, as {file|noext}.. is not available for
inline commands. The Image-Command does indeed provide a keyword
to specify a new filename, but I could not get it to just use the filename
without extension, so I could have combined it with my custom filename-ending.
Also tried the addsuffix keyword, which appends a "-small" or "-medium" to the filename and then to rename this stuff
into "..640x480", but here again I wasn't able to deliver the rename command
the "newly" created image-filenames..

So I want these images..

Image_A.jpg
Image_B.jpg
Image_C.jpg

to get downsized into new files with following name:

Image_A_640x480.jpg
Image_B_640x480.jpg
Image_C_640x480.jpg

Any ideas.. ?!
Thanks,
Rob.

Try this:

Image CONVERT=jpg HERE HEIGHT=480 WIDTH=640 PRESERVEASPECTRATIO PRESERVEDATE ADDSUFFIX=_640x480

The key here is that you can use ADDSUFFIX to override the default behaviour which replaces standard dimensions with words.

Hi Tanis!

Thank you, works perfect!.. o)
I wasn't able to read that info from the docu, my doc-file is apparently
not uptodate - it states the ADDSUFFIX as a switch

"ADDSUFFIX/S: When resizing images, this parameter adds a suffix to the output filename appropriate
to the new size of the image. The suffix -small is appended for 640x480, -medium for 800x600, -large
for 1024x768 and –ppc for 240x320 (a special resolution for PocketPC devices). For all other image
sizes, the actual resolution is appended to the filename. "

Cool.. o)
Rob.