CKeditor image generator

This project is not covered by Drupal’s security advisory policy.

This module generates an image on the fly from parameters.

How to create an image

This feature is available by two ways:

CKEditor

On CKEditor toolbar, click on the ImageGen button, and fill the form to create an image.
dialog box

The URL

An image could be get from an url like:

site_path/image-gen/{width}/{height}/{bg}/{color}/{text}/{type}

Examples:

  • site_path/image-gen/600/300/random/random/example/jpg
  • site_path/image-gen/600/300/FF2200/000000/default/jpg

Features

  • If the text is equal to default, the image text displays its dimensions.
  • You can set the text & background color to random.

Contribution

- To submit bug reports and feature suggestions, or to track changes:
https://www.drupal.org/project/issues/image_gen

This feature is based on GD library.

INSTALLATION

- Classic installation as other modules. See the documentation:
https://www.drupal.org/docs/8/extending-drupal/installing-contributed-mo...

CONFIGURATION

Image Generator

Go to Configuration » Development » ImageGen to configure the module.

There are default configuration options available:
* Width
* Height
* File extension
* Font
* Background color
* Text color

image generator configuration

CKEditor

To have the feature available in CKEditor,
the administrator needs to configure the text formats.
* Go to Configuration » Content authoring » Text formats and editors
* Add the ImageGen button to your toolbar.

ckeditor toolbar

Supporting organizations: 
Author and main contributor
Help to contribute the project to the community

Project information

Releases