https://github.com/leocolomb/yourls-image-placeholder
A quick and simple image placeholder service for YOURLS
https://github.com/leocolomb/yourls-image-placeholder
php placehold yourls
Last synced: about 1 year ago
JSON representation
A quick and simple image placeholder service for YOURLS
- Host: GitHub
- URL: https://github.com/leocolomb/yourls-image-placeholder
- Owner: LeoColomb
- Created: 2013-05-02T10:11:21.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-10-05T11:03:29.000Z (over 3 years ago)
- Last Synced: 2025-04-11T18:06:36.697Z (about 1 year ago)
- Topics: php, placehold, yourls
- Language: PHP
- Size: 7.81 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Image Generation
Plugin for [YOURLS](http://yourls.org) 1.6+.
## Description
A quick and simple image placeholder service as [placehold.it](http://placehold.it).
## Requirements
In addition to YOURLS core requirements, the following PHP extensions are required:
* [GD](https://www.php.net/manual/en/book.image.php)
## 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`