Project

ImagePlayground

Automate image processing, codes, metadata, charts, topology, and visual stories from PowerShell.

Stars 100
Forks 7
Total downloads 712,347
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-08-25

API Reference

Command

New-ImageThumbnail

Namespace ImagePlayground
Inputs
None

Creates thumbnails for all images in a directory.

Remarks

Creates thumbnails for all images in a directory.

Examples

Authored help example

Create 64x64 thumbnails


New-ImageThumbnail -DirectoryPath images -OutputDirectory thumbs -Width 64 -Height 64
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-ImageThumbnail -DirectoryPath <String> [-DontRespectAspectRatio] [-Height <Int32>] -OutputDirectory <String> [-Sampler <NearestNeighbor>] [-Width <Int32>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

DirectoryPath String requiredposition: 0pipeline: False
Directory containing images.
DontRespectAspectRatio SwitchParameter optionalposition: namedpipeline: False
Ignore aspect ratio.
Height Int32 optionalposition: namedpipeline: False
Thumbnail height.
OutputDirectory String requiredposition: 1pipeline: False
Destination directory for thumbnails.
Sampler Sampler optionalposition: namedpipeline: Falsevalues: 14
Resampling algorithm.
Possible values: NearestNeighbor, Box, Triangle, Hermite, Lanczos2, Lanczos3, Lanczos5, Lanczos8, MitchellNetravali, CatmullRom, Robidoux, RobidouxSharp, Spline, Welch
Width Int32 optionalposition: namedpipeline: False
Thumbnail width.