https://github.com/yoshinorin/dummy-image-generator.git
A utility to generate test images with embedded EXIF/GPS metadata.
# Build the project
npm run build
# Generate images with default configuration
npm generate
# Use custom configuration file
npm generate <your_config.json>
Customize image generation with a JSON file:
// example
{
"filename": "example",
"width": 1000,
"height": 300,
"outDir": "./output"
}
| Property | Type | Default | Description |
|---|---|---|---|
filename | string | "example" | Generated image filename (without extension) |
width | number | 1000 | Image width in pixels |
height | number | 300 | Image height in pixels |
outDir | string | "./output" | Output directory path |
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