A Million Little Pieces Of My Mind

Aspecta

Aspecta Command Line

By: Paul S Cilwa Posted: 4/24/2026 Page Views: 69
Hashtags: #Software #Images #Conversion #Photography #Tools #CommandLine #Automation
How to use Aspecta from the command line for batch processing, scripting, and automation.
Estimated reading time: 7 minute(s) (1501 words)

Aspecta is not just a pretty face. Everything it can do through its visual interface, it can also do from the command line—which means you can script it, batch it, and let your AI assistant drive it without ever opening a window.

Basic Syntax

Aspecta file1 [file2 ...] [-Output=path] [-Format=jpg] [-Width=800]
       [-Height=500] [-Aspect=16:9] [-Mode=Fit|Fill] [-Orientation=Center]
       [-Quality=85] [-BitDepth=8|16] [-Grayscale[=False]] [-Hue=30]
       [-Saturation=20] [-Watermark="text"] [-InvisibleWatermark="text"]
       [-Show] [-Display=None] [-Reset] [-Help]

Every bare argument (anything without a leading dash) is an input file. You can pass one file or many, and wildcards such as *.png are expanded; a wildcard always converts without opening a window, however many files it matches. The output location is specified with -Output=path; if omitted, Aspecta saves each result alongside the original with the new format extension. -Output names a folder when several files are given, when the folder already exists, or when the path ends with a backslash; otherwise it names the output file, whose extension must be a format Aspecta writes.

Every switch is optional. Whatever you leave out comes from the settings the window saved the last time you clicked Convert, so a switch is a way to override one saved setting for one run.

Single File

When you pass a single file, Aspecta opens the GUI with that file loaded and any previously saved settings applied. You can tweak further and click Convert, or add command-line flags to override specific settings.

Multiple Files

When you pass more than one file, behavior depends on whether saved settings exist. If you have previously configured and saved settings (format, aspect ratio, quality, etc.), Aspecta batch-converts all the files silently using those settings—no window appears. If no saved settings exist, Aspecta prompts you to configure them first, then processes the batch.

Parameters

Parameter Type Default Description
file1 [file2 ...] Path(s) — One or more image files to convert. All bare arguments are treated as input files.
-Output Path Same folder, new extension Where to save the result. If omitted, Aspecta replaces the extension with the output format. For multiple files, this specifies the output folder.
-Format String jpg Output format: jpg, png, bmp, gif, webp, avif, tif, tga, ico, jp2, pdf.
-Width Integer Original Target width in pixels. If only width is specified, height is calculated to maintain aspect ratio.
-Height Integer Original Target height in pixels.
-Aspect Ratio or preset Saved Aspect ratio as W:H, e.g. 16:9, 1:1, 3:2, 5:4 (any ratio works, not only the ones in the window's list); a pixel size such as 1920x1080 or "1920 x 1080 px", which is skipped for images smaller than it, just as the window drops such presets from its list; a platform preset by name, such as "YouTube: Banner" or "Instagram: Square"; or "Free ratio" to leave the image uncropped whatever was saved.
-Mode Fit | Fill Saved (Fill) Fit resizes the image to fit within the target dimensions, preserving every pixel. The result may be smaller than the target in one dimension.
Fill resizes to cover the entire target area, then crops the overflow using the orientation setting.
-Orientation Name Saved (Center) Which part of the image Fill keeps: TopLeft, TopCenter, TopRight, MiddleLeft, Center, MiddleRight, BottomLeft, BottomCenter or BottomRight.
-Quality 10–100 85 Compression quality for lossy formats (JPEG, WebP, AVIF). Higher is better quality but larger file.
-BitDepth 8 | 16 Source Bits per channel. 16 keeps a 16-bit source deep, and only PNG, TIFF and JPEG 2000 can store it; every other format stores 8. Ask for more than the source or the format holds and Aspecta caps it and exits with code 2. The older values 24 and 32 are read as 8.
-Grayscale Flag Saved (Off) Convert to grayscale. Produces a true single-channel image for smallest file size. -Grayscale=False keeps the color even if grayscale was saved.
-Hue -180 to 180 Saved (0) Shift the hue by this many degrees on the color wheel. Positive rotates toward warm, negative toward cool.
-Saturation -180 to 180 Saved (0) Adjust color saturation on the same scale as the window's slider. Negative values desaturate (-180 is gray), positive values boost color intensity. Asking for a saturation also switches a saved grayscale off.
-Watermark Text Saved Visible, semi-transparent text in the lower-right corner. Without the switch, the watermark you enabled in the window's Watermark dialog is used; one you switched off there stays off.
-InvisibleWatermark Text Saved Text written into the file's EXIF and IPTC metadata (Copyright and Artist), where a viewer can find it but the picture does not show it.
-Show Flag Off Open the GUI with the input file pre-loaded and command-line settings applied. Useful for previewing before committing.
-Display=None String — Run silently with no window. For batch scripts and automation where you do not need to see anything.
-Reset Flag Off Clear all saved settings from the Registry and start fresh. Useful if you want to reconfigure from scratch.
-Help or -? Flag Off Display command-line usage information and exit.

Settings Persistence

Aspecta saves your conversion settings—format, aspect ratio, fixed size, mode, orientation, quality, hue, saturation, grayscale and watermarks—to the Windows Registry whenever you click Convert. The next time you launch Aspecta, those settings are restored, and the command line reads exactly the same settings and runs them through the same pipeline as the window, so what you saw in the preview is what a script gets. This is especially handy for batch processing: configure your settings once through the GUI, then drop multiple files on the shortcut and they all get converted the same way without any interaction.

If you want to wipe the slate clean and start over, pass -Reset on the command line. This removes all saved settings from the Registry.

Examples

Convert a PNG to JPEG

Aspecta photo.png -Format=jpg -Quality=90

Saves photo.jpg in the same folder at 90% quality.

Resize and Crop for a Facebook Cover Photo

Aspecta vacation.jpg -Output=cover.jpg -Width=820 -Height=312 -Mode=Fill

Resizes and crops to exactly 820x312, filling the frame completely with no bars.

Create a Square Thumbnail

Aspecta portrait.jpg -Output=thumb.jpg -Aspect=1:1 -Width=400 -Mode=Fill

Crops to square and resizes to 400x400.

Keep the Top of a Tall Photo

Aspecta tall.jpg -Aspect=16:9 -Mode=Fill -Orientation=TopCenter

Crops to 16:9 and keeps the top of the frame instead of the middle, which is where faces usually are.

Convert to Grayscale WebP

Aspecta color.png -Format=webp -Grayscale -Quality=80

Produces a small, grayscale WebP file.

Preview Settings Before Saving

Aspecta photo.jpg -Aspect=16:9 -Mode=Fill -Show

Opens the GUI with the image loaded and crop settings pre-applied. You can tweak further before clicking Convert.

Batch Convert Multiple Files

Aspecta IMG_001.jpg IMG_002.jpg IMG_003.jpg -Format=webp -Quality=80 -Display=None

Converts three files to WebP silently, saving each one alongside its original.

Batch Convert with Output Folder

Aspecta *.png -Output=C:\Converted -Format=jpg -Quality=85 -Display=None

Converts every PNG in the current folder to JPEG and saves the results in C:\Converted.

Reduce Bit Depth

Aspecta scan.tif -BitDepth=8 -Display=None

Reduces a 16-bit scan to 8 bits per channel, the depth most programs expect. If the source is already 8-bit, Aspecta leaves it alone.

Batch Convert a Folder (PowerShell)

Get-ChildItem *.png | ForEach-Object {
    Aspecta $_.FullName -Format=jpg -Quality=85 -Display=None
}

Converts every PNG in the current folder to JPEG, silently.

Supported Formats

Input (Read)

JPEG, PNG, BMP, GIF, WebP, AVIF, HEIF/HEIC, TIFF, TGA, ICO, JPEG2000, PSD, SVG, PCX, PPM, and camera RAW formats (CR2, NEF, ARW, DNG, ORF, RW2).

Output (Write)

JPEG, PNG, BMP, GIF, WebP, AVIF, TIFF, TGA, ICO, JPEG2000, and PDF.

Exit Codes

Code Meaning
0 Success
1 Error (file not found, conversion failed, unsupported format, a switch with a value Aspecta cannot use, etc.). A bad switch is reported once and nothing is converted.
2 Partial success (some files had their bit depth capped because the source or the output format holds less than the requested depth).

Notes

Aspecta never modifies the original file. Even when no output file is specified, it creates a new file with the new extension. The only way to overwrite the original is to explicitly name it as the output file. If a different file already has the output name, the result is saved as name (2).ext instead of replacing it, the same choice the window offers.

All parameter names are case-insensitive: -format=jpg and -Format=jpg are identical. Values with spaces must be quoted: -Output="My Photos\result.jpg".

Under the hood, Aspecta uses ImageMagick via the Magick.NET library, which is why it supports such a wide range of formats. Magick.NET is free and open source (Apache 2.0).