The Image internal command can be used to:
The Image CONVERT command displays the image conversion dialog in interactive mode, letting you select the conversion options to apply to selected images. Using the various arguments of this command it is possible to automate the image conversion function. The image conversion function can accept as input any image format that Opus is able to view (including those supported by plugins), but can only output in JPEG, PNG, GIF or Bitmap formats.
Command Arguments:
Argument |
Type |
Possible values |
Description |
---|---|---|---|
ADDSUFFIX |
/O |
(no value) |
Add a suffix to the output filename when resizing images. The suffix
used indicates the new image size. If the image is not resized, no suffix
is added. |
|
|
<suffix> |
Adds the specified suffix to the output
filename. |
AS |
/K |
<output filename> |
Specify the output filename when converting images. By default the
output filename is the same as the input filename, with the possibility of
an additional suffix (with the ADDSUFFIX argument) and a
different file extension if the image has been converted to a different
format. |
BACKGROUND |
/K |
<r>,<g>,<b> (dec) |
When an image with an alpha channel (transparency) is converted to a
format that doesn't support the alpha channel, this argument is used to
specify the background color that replaces the transparent area. The color
can be specified in either decimal or hex
format. |
CONVERT |
/O |
(no value) |
Displays the image
conversion dialog in interactive mode when no other arguments are
provided. |
|
|
jpg |
Automates the image conversion function; the converted image will be
saved in JPEG format. |
|
|
png |
The converted image will be saved in PNG
format. |
|
|
gif |
The converted image will be saved in GIF
format. |
|
|
bmp |
The converted image will be saved in BMP
format. |
FLICKRACCOUNT |
/K |
<account name> |
When used with SYNCPHOTOS=flickr, specifies the Flickr
account to synchronize. By default all
configured accounts are
synchronized. |
FLIP |
/K |
h |
Flip (mirror) the image horizontally. |
|
|
v |
Flip the image vertically. |
FROM |
/M |
<filename> ... |
Specify the image file or files to operate on. Without this argument
the command will operate on all currently selected files. This is the
default argument for the Image command and so you do not need to specify
the FROM keyword. Remember that if the filename contains a space it needs
to be enclosed in quotes. |
HEIGHT |
/K/N |
<height> |
Resize the image to the specified
height. |
HERE |
/S |
(no value) |
Write converted images to the source folder. Without this argument
converted images are written to the current destination
folder. |
LOCATE |
/K |
googleearth |
Locates the real-world position of the selected image file from its
embedded GPS information, using Google Earth (the software must be
installed for this to work). If the selected image does not have GPS
information this command will have no
effect. |
|
|
bing |
Locates the image using Bing maps (will open in a web
browser). |
|
|
|
Locates the image using Google maps (will open in a web
browser). |
NOENLARGE |
/S |
(no value) |
Prevents images from being enlarged if the resize operation would
otherwise cause this. Selected images that are already smaller than the
specified size will remain
untouched. |
NOLOSSLESS |
/S |
(no value) |
Disables the ability of Opus to perform lossless JPEG rotation.
Normally Opus will rotate JPEG images losslessly if possible, but you may
specifically want to recompress the image to a lower quality (to make it
smaller) and this keyword allows you to do that. You can also use this
without performing a rotation, if all you want to do is recompress a JPEG
image to a different quality
setting. |
NOREDUCE |
/S |
(no value) |
Prevents images from being reduced in size if the resize operation
would otherwise cause this. Selected images that are already larger than
the specified size will remain
untouched. |
PERCENT |
/K/N |
<resize percent> |
Resize the image to the specified percentage of the original size. This
can enlarge images as well as reduce
them. |
PRESERVEASPECTRATIO |
/S |
(no value) |
Preserve the original aspect ratio when resizing images. The output
width or height will be automatically adjusted to ensure the aspect ratio
is maintained. Using this switch means you can resize an image by just
supplying a new width or a new height - this missing dimension will be
calculated automatically. |
PRESERVEDATE |
/S |
(no value) |
When converting images, this option preserves the creation and
last modified timestamps of the original file. By default, when
this option is not specified, the last modified timestamp will be
updated to the current time, as will the creation timestamp if
the operation creates a new file. (Operations which convert an existing
file "in place", overwriting the original with REPLACE
HERE, will preserve the creation timestamp regardless of
this option.) |
QUALITY |
/K/N |
<quality> |
Specify the quality (1 - 100) when an image is saved in JPEG
format. |
REPLACE |
/O |
(no value) |
Automatically replaces existing files in the destination folder. Use
this in conjunction with the HERE argument to convert an
image "in-place". This only applies if the output filename is the same as
the input filename - if the output filename has changed (via
ADDSUFFIX, etc) and the file already exists, you will
still be prompted for
confirmation. |
|
|
always |
Always replace existing files, even if the output filename has
changed. |
|
|
readonly |
Replace existing files, even if they are read-only, without prompting.
(Has no effect if read-only prompts are turned off in
Preferences.) |
ROTATE |
/K |
<angle> |
Rotate the image the specified angle (in degrees). Positive values
rotate clock-wise, negative values
counter-clockwise. |
|
|
EXIF |
Uses the rotation (orientation) information stored in the images' EXIF
tags to rotate the image. The effect of this is to negate the original
orientation of the camera, resulting in a "right way up" image. If the
selected image does not have an EXIF rotation tag this operation has no
effect. |
|
|
RESET |
Does not actually rotate the image data, but will clear out the
rotation (orientation) field from the images' EXIF
tags. |
SYNCPHOTOS |
/K |
flickr |
Initiate online photo synchronization. Currently the only supported
service is Flickr. Use the
FLICKRACCOUNT argument to specify an account to
synchronize. You can configure the Flickr synchronization function from
the Photo Sharing /
Flickr page in
Preferences. |
TO |
/K |
<destination path> |
Specifies the destination path for converted images. Remember to
enclose the path in quotes if it contains spaces. If not provided, and the
HERE argument is not specified, the current destination
file display will be used as the target
path. |
WIDTH |
/K/N |
|
Resize the image to the specified
width. |