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

Module
ImagePlayground
Inputs
System.String

Generates a QR code image from plain text content.

Syntax

New-ImageQRCode
[-BackgroundColor <Color>]
[-Content] <String>
[-FilePath] <String>
[-ForegroundColor <Color>]
[-LogoPath <String>]
[-PixelSize <Int32>]
[-Show]
[-Transparent]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Use this cmdlet when the QR payload is already available as a raw string.

Examples

Create QR code

New-ImageQRCode -Content 'https://evotec.xyz' -FilePath qr.png

Show QR code after generation

New-ImageQRCode -Content 'text' -FilePath qr.png -Show

Create branded QR code

New-ImageQRCode -Content 'https://evotec.xyz' -FilePath qr-logo.png -LogoPath logo.png

Parameters

-BackgroundColor Color optional
Background color of the QR code.
-Content String requiredposition: 0
Content encoded in the QR code.
-FilePath String requiredposition: 1pipeline: True (ByValue)
The image format is inferred from the file extension.
-ForegroundColor Color optional
Foreground color of QR modules.
-LogoPath String optional
Optional logo image to place at the center of the QR code.
-PixelSize Int32 optional
Pixel size for each QR module.
-Show SwitchParameter optional
Open the image after creation.
-Transparent SwitchParameter optional
Create the QR code with a transparent background.

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.