This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

ImageCloud

Description

This plugin allows the creation of tag clouds based on GIF images.

Each word in the taglist is converted to an image. The images may vary in size, orientation and color. The images are then positioned in a condense way, resulting in Wordle-like tag-clouds.

To use the image-style tag-clouds set the format parameter of wp_tag_cloud to image. For convenience a shortcode is provided [imagecloud] that will insert the tag-cloud with the image format option set anywhere within a post or page. The imagecloud shortcode will accept all arguments that wp_tag_cloud accepts plus the few additional ones described below.

To control the image creation a few extra options are provided that may be provided with wp_tag_cloud or the [imagecloud] shortcode. These are:

  1. fgcolor: The color of the texts in the images. Must be in the format “#AABBCC”.
  2. fgcolor2: A second foreground color. When this is set, the tag text color will be a color between fgcolor and fgcolor2, depending on the tag count (occurance). Must be in the format “#AABBCC”.
  3. bgcolor: The background color of the texts. Must be in the format “#AABBCC”.
  4. transparent: set to true if you wish to make the image transparent. Do not forget to set the bgcolor also to prevent strange text-edge colors as the texts will be anti-aliased.
  5. margin: set to the amount of pixels added around each tag.
  6. font: set to the file location or url of the TrueType font (TTF) file to be used to create the tags.
  7. percentup: percentage of words that is to be rotated 90 degrees.

Screenshots

  • This screenshot shows an example cloud. This cloud is generated using the following shortcode: [imagecloud bgcolor="000000" fgcolor="171512" fgcolor2="A6937F" smallest=8 largest=50 percentup=40 maxWidth="450"]

Installation

Installation of ImageCloud is straightforward:

  1. Extract the zip-file in your plugins directory (typically ‘/wp-content/plugins/’). Or through the automatic install functions of WordPress.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

After installation make sure you adapt your theme to use the image format as argument to wp_tag_cloud. Or use the [imagecloud] shortcode anywhere in a page or post.

Make sure you have proper tags on your post. One way to add these is by deriving them from the texts in your blog, for example by using the Text2Tag.

FAQ

Can you provide me with an example?

Add the following text to a page to add the image-based tag-cloud. This cloud will have tags that have different shades of gray depending on their occurance.

[imagecloud fgcolor=”CCCCCC” fgcolor2=”000000″ bgcolor=”FFFFFF”]

I don’t like the cloud created. Can I recreate it?

The current version has no specific option-page to do so. Clouds are regenerated when:

  1. the corresponding taxonomy (tags) are changed.
  2. The cache is empty. You can clear the cache by removing all files from the cache directory (inside the imagecloud directory in your plugins directory).
What is the algorithm you use?

Regrettably, the Wordle algorithms are not made public. Therefore I had to create one myself. The algorithm used is pretty straightforward. Images are rotated based by chance based on the percentup variable. All images are then positioned one by one around the center of the cloud. There is some randomness in the positioning as I’ve learned that this will actually improve the layout of the cloud.

This algorithm is very simple and improvements can definitly be made! Any suggestion is welcome…

Contributors & Developers

“ImageCloud” is open source software. The following people have contributed to this plugin.

Contributors

Translate “ImageCloud” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.2

  • fixed another issue with query encoding. Spaces are better supported now.
  • Increases PHP timeout to 5 minutes (if necessary) to give the plugin more time for layout and image generation.

1.1

  • fixed query encoding bug. Special chars in words are now better supported.

1.0

  • Initial version