# New-ImageQRCodeShadowSocks

Generates a QR code for a Shadowsocks configuration.

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**

`System.String`

Generates a QR code for a Shadowsocks configuration.

## Syntax

```
New-ImageQRCodeShadowSocks
[-BackgroundColor <Color>]
[-FilePath] <String>
[-ForegroundColor <Color>]
[-Method] <QrShadowSocksMethod>
[-Password] <String>
[-PixelSize <Int32>]
[-Port] <Int32>
[-ServerHost] <String>
[-Show]
[[-Tag] <String>]
[<CommonParameters>]
```

[#](#method-new-imageqrcodeshadowsocks-color-string-color-qrshadowsocksmethod-string-int32-int32-string-switchparameter-string)

Parameter set: `All Parameter Sets`

## Description

Use this cmdlet to share a client-ready Shadowsocks connection string as a scannable QR code.

## Examples

### Create a basic Shadowsocks QR code

```powershell
New-ImageQRCodeShadowSocks -Host 'example.com' -Port 8388 -Password 'pwd' -Method Aes256Gcm -FilePath ss.png
```

Creates a QR code for importing a Shadowsocks connection into a compatible client.

### Create a tagged Shadowsocks client profile QR code

```powershell
New-ImageQRCodeShadowSocks -Host 'vpn.evotec.pl' -Port 8388 -Password 'StrongSecret!' -Method Chacha20IetfPoly1305 -Tag 'Warsaw Edge' -FilePath ss-warsaw.png -ForegroundColor Purple -PixelSize 14 -Show
```

Generates a named client profile QR code and opens it immediately after creation.

## Parameters

**-BackgroundColor Color optional**

Background color of the QR code.

**-FilePath String requiredposition: 5pipeline: True (ByValue)**

The image format is inferred from the file extension.

**-ForegroundColor Color optional**

Foreground color of QR modules.

**-Method QrShadowSocksMethod requiredposition: 3**

Encryption method.

Possible values: `Chacha20IetfPoly1305`, `Aes128Gcm`, `Aes192Gcm`, `Aes256Gcm`, `XChacha20IetfPoly1305`, `Aes128Cfb`, `Aes192Cfb`, `Aes256Cfb`, `Aes128Ctr`, `Aes192Ctr`, `Aes256Ctr`, `Camellia128Cfb`, `Camellia192Cfb`, `Camellia256Cfb`, `Chacha20Ietf`, `Aes256Cb`, `Aes128Ofb`, `Aes192Ofb`, `Aes256Ofb`, `Aes128Cfb1`, `Aes192Cfb1`, `Aes256Cfb1`, `Aes128Cfb8`, `Aes192Cfb8`, `Aes256Cfb8`, `Chacha20`, `BfCfb`, `Rc4Md5`, `Salsa20`, `DesCfb`, `IdeaCfb`, `Rc2Cfb`, `Cast5Cfb`, `Salsa20Ctr`, `Rc4`, `SeedCfb`, `Table`

**-Password String requiredposition: 2**

Password for the server.

**-PixelSize Int32 optional**

Pixel size for each QR module.

**-Port Int32 requiredposition: 1**

Server port.

**-ServerHost String requiredposition: 0aliases: Host**

Server host name.

**-Show SwitchParameter optional**

Opens the image after creation.

**-Tag String optionalposition: 4**

Optional tag.

## 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:4C69B91B750D8434FE1EC926A5D1D53760434B7043552BEFAA0780349E42B4A4 -->
