Categorygithub.com/codemonauts/nocontent
modulepackage
0.0.0-20231127145218-9cc1b13c0776
Repository: https://github.com/codemonauts/nocontent.git
Documentation: pkg.go.dev

# README

Get customized placeholder images for your mockups and website designs :rocket:

Features

  • Free
  • Open Source
  • Fast (delivered via a CDN)

Usage

The base URL is: https://nocontent.cloud/img

To customize the image you will get, prodive one or more of the following options as query string parameters:

namedescriptionvalue
xwidth of imageoptional (default: 200)number (in pixels, max-width: 4000)
yheight of imageoptional (default: 200)number (in pixels, max-height: 4000)
bgbackground coloroptional (default: ffffff)hex-value (3 or 6 character)
fgtext coloroptional (default: 333333)hex-value (3 or 6 character)
labeltext on the imageoptional (default: 'height' x 'width')string (max-length: 20)
fontSizesize of the labeloptional (default: 30)number

Example #1

Without any parameters you will get a small white image with black text and 200x200 px

https://nocontent.cloud/img

200x200

Example #2

To get a purple image with the dimensions 600x400, query this address:

https://nocontent.cloud/img?x=600&y=400&bg=980080

600x400

Example #3

Change the text color to blue and provide a custom text with this URL:

https://nocontent.cloud/img?label=Hello%20World&fg=0099FF

200x200

:computer: with :heart: by codemonauts

# Functions

No description provided by the author