phpThumb Package 0.3.2

phpThumb Package 0.3.2

Released Jul 04, 2008 by maff
A PHx modifier to use phpThumb (http://phpthumb.sourceforge.net) within your templates. PHPThumb creates thumbnails and altered images on the fly and caches them. I use it in my snippets to have control over the images in my template and not in the script itself. For me it's a further step to separate the programming logic and the layout.

Additionally, there is a plugin, which reads width and height values from img tags (e.g. images resized in RTE) and resizes them automatically. You can also specify custom parameters by appending them to the image URL.

Original Forum Thread:
http://modxcms.com/forums/index.php/topic,14858.0.html Download 137kb (5481 downloads)
5 Likes, 0 Dislikes
Report this Extra
Downloads: 7,948
License: GPL - GNU Public
Discuss Extra
Requires Evolution 1.0.x or greater
Supports mysql
A snippet (a PHx extension) and a plugin to use phpThumb within MODx.

Installation Instructions

Installation:
- Copy my slightly modified phpThumb to assets/snippets/phpthumb
- Change phpThumb.config.php according to your needs (GD/ImageMagick, caching, ...) and create the cache directory (assets/images/.phpthumb_cache by default)
- Copy image.php to your MODx document root
- Change the high security password in phpThumb.config.php
- Create a new snippet called phx:phpthumb and paste the contents of this file.
- If you want to use the plugin paste the contents of plugin_phpthumb.php into a new plugin and check the OnWebPagePreRender Event.

Usage:
Specific instructions are in the comment on top of the snippet and the plugin.

Updates

added fixes suggested by ncrossland (see forums)
Version Released Author Downloads
4 Versions 1 Contributors 7,955 Downloads
0.3.1 Jun, 03 2008 maFF 558
0.3.0 Sep, 03 2007 maFF 1,009
0.2.0 Jun, 24 2007 maFF 928