Project

ImagePlayground

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

Stars99
Forks7
Open issues0
PowerShell Gallery downloads712014
ReleaseImagePlayground-PowerShellModule.v3.2.6
Language: C# Updated: 2026-08-12T09:13:42.0000000+00:00

Curated Examples

Create a QR code with a logo

Use ImagePlayground to generate a QR code and add a watermark image.

This pattern is useful when a generated QR code needs to carry brand context in a report, handout, or static page.

It comes from the source example at Examples/Images.QRCodeWithImage.ps1.

When to use this pattern

  • You need a QR code as a generated image file.
  • You want to add a logo or watermark after generation.
  • The output should be produced from a repeatable PowerShell script.

Example

Import-Module ImagePlayground

$qrPath = "$PSScriptRoot\Samples\QRCode.png"
$outputPath = "$PSScriptRoot\Output\QRCodeWithImage.jpg"

New-ImageQRCode -Content 'https://example.com/helpdesk' -FilePath $qrPath -Verbose

$image = Get-Image -FilePath $qrPath
$image.WatermarkImage(
    "$PSScriptRoot\Samples\LogoEvotec.png",
    [ImagePlayground.WatermarkPlacement]::TopLeft,
    1,
    0.5,
    0,
    [SixLabors.ImageSharp.Processing.FlipMode]::None,
    50
)

Save-Image -Image $image -Open -FilePath $outputPath

What this demonstrates

  • generating a QR code image
  • loading the image for additional processing
  • saving a watermarked output file

Source