Home  Extras  MODx Add-Ons  phpThumb Package

Product:

phpThumb Package



Forums Support Thread 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 | Author: maFF

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


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

Forums Support Thread 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 | Author: maFF

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


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 changes



0.3

Forums Support Thread 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 | Author: maFF

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


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

Forums Support Thread 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 | Author: maFF

Works with the following Version(s): 0.9.5

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


Download


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.




Comments

Please login to comment.

Close ]


 
 
 

Contact Us | Advertise | Team Blog | FAQ | Credits

© 2005-2009 the MODx CMS project. All rights reserved. Privacy Policy | Terms of Service