Downloads » Resources » phpThumb Package

phpThumb Package

  • Currently 4.25/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Votes: 4

phpThumb Package 0.3.2

added fixes suggested by ncrossland (see forums)

Works with MODx Version(s): 0.9.6, 0.9.5
Submitted: Jul 4th 2008 | License: GPL - GNU Public | Downloads: 389

A snippet (a PHx extension) and a plugin to use phpThumb within MODx.

Description

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

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.

Previous Releases

phpThumb Package 0.3.1

by maFF

some minor changes

Works with MODx Version(s): 0.9.6, 0.9.5
Submitted: Jun 3rd 2008 | License: GPL - GNU Public | Downloads: 255

phpThumb Package 0.3

by maFF

- added possibility to switch off XHTML URLs
- added function to the plugin to parse parameters in the image url
- some changes to the phpThumb config file

Works with MODx Version(s): 0.9.6, 0.9.5
Submitted: Sep 3rd 2007 | License: GPL - GNU Public | Downloads: 707

phpThumb Package 0.2

by maFF

Initial Release

Works with MODx Version(s): 0.9.5
Submitted: Jun 24th 2007 | License: GPL - GNU Public | Downloads: 674


Extras

No results found.


( back to top )