Command
New-ImageQRCode
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 SetsDescription
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.pngShow QR code after generation
New-ImageQRCode -Content 'text' -FilePath qr.png -ShowCreate branded QR code
New-ImageQRCode -Content 'https://evotec.xyz' -FilePath qr-logo.png -LogoPath logo.pngParameters
- -BackgroundColor Color
- Background color of the QR code.
- -Content String
- Content encoded in the QR code.
- -FilePath String
- The image format is inferred from the file extension.
- -ForegroundColor Color
- Foreground color of QR modules.
- -LogoPath String
- Optional logo image to place at the center of the QR code.
- -PixelSize Int32
- Pixel size for each QR module.
- -Show SwitchParameter
- Open the image after creation.
- -Transparent SwitchParameter
- 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.