Skip to content
/ pig Public

placeholder-image-generator (pig) is a command line application that generates placeholder images.

License

Notifications You must be signed in to change notification settings

tabo-syu/pig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pig

placeholder-image-generator(p.i.g.) is a command line application that generates placeholder images.
This application can generate images by specifying width, height, format, background color, and text.

$ pig [flags]

Examples

$ pig -w 400 -h 300 -f png -t placeholder -c 0x21_3a_70_ff > output.png

Result:
Result image

Options

  -w, --width uint16    image width pixel
  -h, --height uint16   image height pixel
  -f, --format string   image format (default "jpg")
  -t, --text string     text to be inserted in the image (default "{width}x{height}")
  -c, --color uint32    backgournd color code (RGBA) (default 255)
      --help            help for pig

Installation

$ go install github.com/tabo-syu/pig@latest

About

placeholder-image-generator (pig) is a command line application that generates placeholder images.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published