Powered by MediaWiki
Personal tools

Thumbnail plugin

From b2evolution manual

Jump to: navigation, search

Contents

[edit] Thumbnail

Version 0.9 / Changed on 24.11.2007

The Thumbnail Plugin allows you to set a maximum image size for your blog. Every local stored image larger than this value will be automatically resized to fit this size. The plugin is able to automatically create a link to the original image:

  • No link to the original
  • Link to open original in a new window (default)
  • Link to open original in the same window
  • Open a lightbox with the original
The lightbox2 is included in the plugin but can be disabled if you already have installed the Plugins/lightbox plugin. Thumbnails can be disables for single posts. All thumbnails are cached for a better performace.

[edit] Requirements

Plugin is tested with version 2.0.2 but should work with earlier and later versions. GDlib must be installed.

[edit] Download

You can find the actuall version on SourceForge

[edit] Participation

It would be nice if you help to make the thumbnail plugin better. There are different ways you can help:

[edit] Installation

  1. Copy the thumbnail_plugin to the plugin folder of your b2evolution installation
  2. Login to the administative interface
  3. Install the thumbnail plugin
  4. Open the plugins properties and change the settings to the values you like
  5. If you have installed previous versions, you have to empty the items__prerendering-table.
    Use phpmyadmin or shell to truncate this table

[edit] Usage

Simply add images to your post like you are used to. You don't have to add special tags or attributs. The plugin runs as renderer and searches for every img-tag in your post. If the images found are larger than the maximum value defined in the plugins settings (and the image is stored on your webserver) the image will be resized.

The plugin will create a folder called thumb_plugin in the same folder where your original image is and creates the thumbnail in this directory. If you use mutliple folders you will get multiple thumb_plugin-folders. This is to make shure the plugin has no problems with images which use the same name.

[edit] Troubleshooting

I hope this helps you with some problems ;)

[edit] Lost your thumbnails/deleted you cache?

If you have deleted your thumbcache and all thumbnails don't appear again you must simply delete the prerenderings. Simply TRUNCATE TABLE `evo_items__prerendering` in phpmyadmin or in shell (evo_items__prerendering is default name and don't forget to make a backup). Now all posts should be renderd again and the thumbnails should be created again ;)

Copyright (C) 2007 Thomas Heger (www.iGuts.de)