๐Ÿ“ฆ yoshinorin / dummy-image-generator

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/yoshinorin/dummy-image-generator.git
HTTPS git clone https://github.com/yoshinorin/dummy-image-generator.git
SSH git clone git@github.com:yoshinorin/dummy-image-generator.git
CLI gh repo clone yoshinorin/dummy-image-generator
yoshinorin yoshinorin Create LICENSE 9ee7eec 5 months ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ src
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ biome.json
๐Ÿ“„ LICENSE
๐Ÿ“„ package-lock.json
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ test-config.json
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

Test Image Generator

A utility to generate test images with embedded EXIF/GPS metadata.

Usage

Command Line

# Build the project
npm run build

# Generate images with default configuration
npm generate

# Use custom configuration file
npm generate <your_config.json>

Configuration File

Customize image generation with a JSON file:

// example
{
  "filename": "example",
  "width": 1000,
  "height": 300,
  "outDir": "./output"
}

Configuration Options

PropertyTypeDefaultDescription
filenamestring"example"Generated image filename (without extension)
widthnumber1000Image width in pixels
heightnumber300Image height in pixels
outDirstring"./output"Output directory path

Generated Files

The following 5 files are generated with the specified filename:

  • {filename}.jpg - JPEG format
  • {filename}.png - PNG format
  • {filename}.tiff - TIFF format
  • {filename}.webp - WebP format
  • {filename}.gif - GIF format
All files contain the same embedded EXIF/GPS metadata.