Popularity
2.4
Stable
Activity
0.0
Stable
28
3
7

Programming language: Go
License: MIT License
Tags: Utilities    

goplaceholder alternatives and similar packages

Based on the "Utilities" category.
Alternatively, view goplaceholder alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of goplaceholder or a related project?

Add another 'Utilities' Package

README

goplaceholder

a small golang lib to generate placeholder images.

Usage

get it

$ go get github.com/michiwend/goplaceholder

simple example

placeholder, err := goplaceholder.Placeholder(
    "Lorem ipsum!",
    "/usr/share/fonts/TTF/DejaVuSans-Bold.ttf",
    color.RGBA{150, 150, 150, 255},
    color.RGBA{204, 204, 204, 255},
    400, 200)

results in

[example placeholder](example/lorem.png)

Webservice

You can try it as a web service at placeholder.michiwend.com.

The following requests are allowed:

  • /800x600.png
  • /800x600.png?text=foo
  • /500.png
  • /500.png?text=foo