Skip to content

LeoColomb/yourls-image-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Simple Image Generation

Plugin for YOURLS 1.6+.

Description

A quick and simple image placeholder service as placehold.it.

Requirements

In addition to YOURLS core requirements, the following PHP extensions are required:

Installation

  1. In /user/plugins, create a new folder named image-placeholder.
  2. Drop these files in that directory.
  3. Go to the Plugins administration page ( eg http://sho.rt/admin/plugins ) and activate the plugin.
  4. Have fun!

How to use

Template

http://sho.rt/[width]x[height]?c=[color]&f=[format]

Parameters

Both parameters are optional

  • Coloration
    • 262626 is default
    • Declare it in Hex (RRGGBB)
  • Format
    • PNG is default
    • Formats available:
      • PNG
      • JPEG
      • GIF

Examples

  • http://sho.rt/320x50
  • http://sho.rt/320x50?c=ffffff
  • http://sho.rt/320x50?f=jpeg
  • http://sho.rt/320x50?c=25f0ff&f=gif

About

A quick and simple image placeholder service for YOURLS

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages