Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Textimage adds text to image functionality using GD2 and FreeType, enabling users to create crisp images on the fly for use as theme objects, headings or limitless other possibilities.
Features:
- Support for TrueType fonts and OpenType fonts.
- Rotate text at any angle.
- Automatic text wrapping when using maximum width.
- Configurable opacity in text color.
- Support for non-alphanumeric characters.
- Backgrounds:
- Define a color or simply have a transparent background.
- Use a pre-made background image.
- Chain Textimage effects to achieve a multi-layered image (see image above).
- Content Type field display formatters:
- Support Image and Text fields.
- 7.x-2.0 supports Email module provided fields.
- 7.x-3.x and 8.x provide tokens to retrieve Textimage URIs/URLs to be used e.g. in metatags or other integrations.
Requirements:
- For all versions: PHP compiled with GD extension and FreeType support, and Drupal's core Image module.
- 7.x-3.x: requires Drupal's core Color module, as well as ImageCache Actions and ImageCache Canvas Actions modules.
- 8.*: requires the Image Effects module.
Branches and installation
- Versions 7.*: Install as usual, see installing contributed modules for further information.
-
Versions 8.*:
- The module *MUST* be installed using Composer, see Download contributed modules and themes using Composer.
- Drupal 9.3 and higher
- Previous releases of the module run with lower versions of Drupal 8 and 9, but are no longer maintained.
Usage:
There are 3 main ways to use Textimage.
- via Content Type field display formatters.
- via the Textimage API and the theme system.
- via direct URL generation - Note: This method can only be used by users with a specific permission that has to be granted. This is to prevent Anonymous users from creating random images. If you need dynamically created Textimages, it is strongly advised you use one of the methods above.
Please refer to each release's README.txt for version specific instructions.
Notes:
- Always check release notes when updating to a new release and follow upgrade instructions if necessary.
Supporting organizations:
Project information
- Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues. - Module categories: Administration Tools, Media
- 1,723 sites report using this module
- Created by arnabdotorg on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-4.4
released 22 December 2023
Works with Drupal: ^10.1
✓ Recommended by the project’s maintainer.
Install:
Development version: 8.x-4.x-dev updated 20 Dec 2023 at 20:54 UTC
7.x-3.0
released 8 July 2014
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-3.x-dev updated 6 Jul 2016 at 20:22 UTC