# New-ImageThumbnail

Creates thumbnails for all images in a directory.

Project

ImagePlayground

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

[View on GitHub](https://github.com/EvotecIT/ImagePlayground) [Visit Website](#) [Releases](https://github.com/EvotecIT/ImagePlayground/releases) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/ImagePlayground)

Stars **102**

Forks **7**

Open issues 

Total downloads **708,853**

Release **ImagePlayground-PowerShellModule.v3.2.7**

Language: C# Updated: 2026-11-18

Command 

**Module**

`ImagePlayground`

**Inputs**

`None`

Creates thumbnails for all images in a directory.

## Syntax

```
New-ImageThumbnail
[-DirectoryPath] <String>
[-DontRespectAspectRatio]
[-Height <Int32>]
[-OutputDirectory] <String>
[-Sampler <Sampler>]
[-Width <Int32>]
[<CommonParameters>]
```

[#](#method-new-imagethumbnail-string-switchparameter-int32-string-sampler-int32)

Parameter set: `All Parameter Sets`

## Examples

### Create 64x64 thumbnails

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

## Parameters

**-DirectoryPath String requiredposition: 0**

Directory containing images.

**-DontRespectAspectRatio SwitchParameter optional**

Ignore aspect ratio.

**-Height Int32 optional**

Thumbnail height.

**-OutputDirectory String requiredposition: 1**

Destination directory for thumbnails.

**-Sampler Sampler optional**

Resampling algorithm.

Possible values: `NearestNeighbor`, `Box`, `Triangle`, `Hermite`, `Lanczos2`, `Lanczos3`, `Lanczos5`, `Lanczos8`, `MitchellNetravali`, `CatmullRom`, `Robidoux`, `RobidouxSharp`, `Spline`, `Welch`

**-Width Int32 optional**

Thumbnail width.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:482743A14A33893A2A4261E1DA497AA6DA2D06FFF3A02D25C79F15E6C56D7653 -->
