Project

ImagePlayground

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

Stars 101
Forks 7
Total downloads 711,982
Release ImagePlayground-PowerShellModule.v3.2.7
Language: C# Updated: 2026-10-26
Command

New-ImageQRCodeShadowSocks

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>]
#
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

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

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.