https://github.com/decipher/textimage
Drupal 7 Version of the Textimage module
https://github.com/decipher/textimage
Last synced: 7 months ago
JSON representation
Drupal 7 Version of the Textimage module
- Host: GitHub
- URL: https://github.com/decipher/textimage
- Owner: Decipher
- License: gpl-2.0
- Created: 2011-04-25T13:29:36.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:40:13.000Z (over 2 years ago)
- Last Synced: 2025-04-08T13:50:44.851Z (12 months ago)
- Language: PHP
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.txt
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
// $Id: README.txt,v 1.5 2009/05/14 03:53:24 deciphered Exp $
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.
Textimage was written by Fabiano Sant'Ana (wundo).
- http://wundo.net
Maintained by Stuart Clark (Deciphered).
- http://stuar.tc/lark
Features
------------
* Support for TrueType fonts and OpenType fonts.
* Rotate your text at any angle.
* Configurable opacity in text color.
* Backgrounds:
* Define a color or simply have a transparent background.
* Use a pre-made image to integrate directly with your theme.
* Use another Textimage preset to achieve a multi-layered image (see image above).
* CCK and Views formatter integration.
* Support for non-alphanumeric characters.
Usage
------------
1. via theme_textimage_image():
Use the theme_textimage_image() function at the theme/module level with the
following format:
theme('textimage_image', array(
'preset' => 'Preset',
'text' => 'Text',
'additional_text' => array('Additional', 'Text'),
'format' => 'png',
'file_path' => 'public://myimages/sub_folder/image-filename' // Don't include the file extension.
));
2. via CCK/Views formatter:
Select a Textimage preset in a text field display options.
3. via URL:
Create an image with the URL in following format:
/[files directory]/textimages/[Preset](/Additional/Text)/[Text].[extension]
Note: This method can only be used by users with the 'create textimages'
permission. 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 detailed above.
Requirements
------------
* GD2
* FreeType
Updating
------------
* Always run update.php on your Drupal site after updating Textimage.
* Note: Due to certain changes in the Textimage module, some of your presets may
require alterations after updating.