All Projects → nicoverbruggen → image-generator

nicoverbruggen / image-generator

Licence: MIT license
Package for PHP 8.x to generate placeholder images with a specific size, color, text on it. You can also customize the font. (Legacy version available for PHP 7.x.)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to image-generator

plex
The package of IBM’s typeface, IBM Plex.
Stars: ✭ 7,977 (+49756.25%)
Mutual labels:  font
metrico
Font for metric equations in music notation.
Stars: ✭ 36 (+125%)
Mutual labels:  font
esp8266-oled-ssd1306-font-creator
Font creator for the esp8266-oled-ssd1306 library
Stars: ✭ 22 (+37.5%)
Mutual labels:  font
nuxt-speedkit
nuxt-speedkit will help you to improve the lighthouse performance score (100/100) of your website.
Stars: ✭ 401 (+2406.25%)
Mutual labels:  font
amiri
Amiri (أميري) is a body text Naskh typeface
Stars: ✭ 291 (+1718.75%)
Mutual labels:  font
eczar
Eczar: fonts for Devanagari and Latin
Stars: ✭ 52 (+225%)
Mutual labels:  font
Cubic-11
免費開源的 11×11 中文點陣體
Stars: ✭ 888 (+5450%)
Mutual labels:  font
readexpro
Readex Pro is the world-script expansion of Lexend. Lexend is a variable font empirically shown to significantly improve reading-proficiency.
Stars: ✭ 396 (+2375%)
Mutual labels:  font
typeface-minecraft
Minecraft typeface and colors
Stars: ✭ 20 (+25%)
Mutual labels:  font
rofi-fontawesome
fontawesome icon list for rofi dmenu
Stars: ✭ 58 (+262.5%)
Mutual labels:  font
catmoji-colr
Twemoji, but with cats! Unicode 13.1! 🐱
Stars: ✭ 41 (+156.25%)
Mutual labels:  font
postcss-font-pack
PostCSS plugin to simplify font declarations by validating only configured font packs are used and adding fallbacks.
Stars: ✭ 18 (+12.5%)
Mutual labels:  font
chiron-sans-hk
昭源黑體:現代筆形風格,平衡標準字形和印刷體慣用筆形的免費開源黑體字型
Stars: ✭ 131 (+718.75%)
Mutual labels:  font
EasyFont
Android Library to set font of TextView, Button, EditText, and RadioButton in XML without editing Java code to set Typeface.
Stars: ✭ 20 (+25%)
Mutual labels:  font
microns
The universal icon set for user interfaces.
Stars: ✭ 58 (+262.5%)
Mutual labels:  font
sublime-PICO-8
PICO-8 plugin for the Sublime Text 3 editor.
Stars: ✭ 42 (+162.5%)
Mutual labels:  font
SUIT
SUIT―수트는 반복되는 노력을 기울이지 않아도 완성도 높은 형태를 유지하며, 소모적인 커뮤니케이션도 줄일 수 있도록 제작한 UI 본문용 폰트입니다.
Stars: ✭ 168 (+950%)
Mutual labels:  font
noto-color-emoji-font
Color emoji SVGinOT font using Noto emoji, with multiple releases, such as Lollipop and Nougat. Linux/MacOS/Windows
Stars: ✭ 32 (+100%)
Mutual labels:  font
BlurringAtlasForUGUI
A blur effect for uGUI in Unity, that is effective even for atlas images including dynamic fonts.
Stars: ✭ 29 (+81.25%)
Mutual labels:  font
FP
Simple FontPreview Shell Script
Stars: ✭ 17 (+6.25%)
Mutual labels:  font

Image Generator

This package is intended to be used for quickly generating placeholder images with a specific size, color and text.

Requirements

  • PHP 8.0 or higher
  • GD extension

Usage

Make sure you require this package in your composer.json:

composer require nicoverbruggen/image-generator

See the example source file that is used to generate and save the sample images. You can generate the following examples:

The barebones example A multiline example An avatar

Please note that for testing purposes, I used Roboto Black as the TrueType font. (This font is not included in this repository.)

You can also check out the other source file. You can point your browser directly at this file (assuming you're running a PHP server, of course) and it will directly return a file since the path is set to null.

Notes

If you do not supply a TrueType font path:

  • you will be limited in font size options (1 through 5)
  • you will not be able to render multiline text

Contributions

I am not planning to expand the features of this package at this time. If you've made an improvement or fixed something, you are free to send me a pull request.

License

MIT.

See also: LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].