# Create and read barcodes

Create and read barcodes on Evotec with practical examples, usage guidance, and reusable project workflows.

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

PowerShell Gallery downloads**708908**

Release**v3.2.7**

Language: C# Updated: 2026-11-23

Curated Examples

Use ImagePlayground to create EAN barcode images and read them back.

This pattern is useful when barcode generation and validation should live in one script.

It comes from the source example at `Examples/Barcode.Create.ps1`.

## When to use this pattern

- You need barcode images generated from known values.
- You want a quick read-back check after generation.
- The output should be a file that another process can attach or publish.

## Example

```powershell
Import-Module ImagePlayground

$outputPath = Join-Path $PSScriptRoot 'Output'
New-Item -Path $outputPath -ItemType Directory -Force | Out-Null

$ean13Path = Join-Path $outputPath 'BarcodeEAN13.png'
$ean7Path = Join-Path $outputPath 'BarcodeEAN7.png'

New-ImageBarCode -FilePath $ean13Path -Type EAN -Value '5901234123457'
New-ImageBarCode -FilePath $ean7Path -Type EAN -Value '5901234'

Get-ImageBarCode -FilePath $ean13Path
Get-ImageBarCode -FilePath $ean7Path
```

## What this demonstrates

- creating barcode images from PowerShell
- using EAN barcode values
- reading generated images back for validation

## Source

- [Barcode.Create.ps1](https://github.com/EvotecIT/ImagePlayground/blob/master/Examples/Barcode.Create.ps1)

<!-- PowerForge markdown artifact sha256:6FA474D81233386D110782A635B203C2F4919097E39AE33386DD488364E1E046 -->
