phpThumb Package
Votes: 55
Tags: Multimedia, plugin, snippet, imaging, library, phpthumb, phx, thumbnails
Submitted: Jul 4, 2008
Released: Jul 4, 2008
Downloads: 1545
License: GPL - GNU Public
Package Website
phpThumb Package 0.3.2
Works with the following Version(s): 0.9.5 | 0.9.6
A snippet (a PHx extension) and a plugin to use phpThumb within MODx.
Download
- repo-2117.zip (1545 downloads)
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.
Updates
added fixes suggested by ncrossland (see forums)Sub-Packages
Previous Releases
0.3.1
Votes: 36
Tags: Multimedia, plugin, snippet, imaging, library, phpthumb, phx, thumbnails
Submitted: Jun 3, 2008
Released: Jun 3, 2008
Downloads: 381
License: GPL - GNU Public
phpThumb Package 0.3.1
Works with the following Version(s): 0.9.5 | 0.9.6
A snippet (a PHx extension) and a plugin to use phpThumb within MODx.
Download
- repo-2072.zip (381 downloads)
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.
Updates
some minor changes0.3
Votes: 25
Tags: Multimedia, plugin, snippet, imaging, library, phpthumb, phx, thumbnails
Submitted: Sep 3, 2007
Released: Sep 3, 2007
Downloads: 810
License: GPL - GNU Public
phpThumb Package 0.3
Works with the following Version(s): 0.9.5 | 0.9.6
A snippet (a PHx extension) and a plugin to use phpThumb within MODx.
Download
- repo-1636.zip (810 downloads)
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.
Updates
- 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
0.2
Votes: 29
Tags: Multimedia, plugin, snippet, imaging, library, phpthumb, phx, thumbnails
Submitted: Jun 24, 2007
Released: Jun 24, 2007
Downloads: 778
License: GPL - GNU Public
phpThumb Package 0.2
Works with the following Version(s): 0.9.5
A snippet (a PHx extension) and a plugin to use phpThumb within MODx.
Download
- repo-1524.zip (778 downloads)
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.




Please login to comment.