splittingred/phpThumbOf — pull request #40 by bertoost (2012-07-12 14:05:46+00:00)
Title: Implemented a system event just before initializing the image render

To can hook on it for a "style-based" component

PLEASE READ:

The idea is to create a component for making style-based image-scaling possible. This is intended for SEO purposes and high configurable trough a custom manager page. The new call will be;

[[*imageTVname:phpthumbof=`style=blog`]]

The image will be saved in;

assets/components/phpthumbof/cache/blog/

Without any hashes.

You can also setup a custom URL path for every single style. Like "i/blog/".
The image URL returned will be "***/i/blog/image.jpg".
With one line of htaccess code you can redirect this back to the cache map of phpthumbof.

A single style will contain the phpthumb properties like "w=100" and "h=75". Even can make it easy to add watermarks and grayscales etc. (basically every property is possible), all setable trough the manager interface.

The plugin provided with this custom component will hook in on the event added in this pull request and will checkup the custom database table(s) to find the provided stylename and pass the properties trough to phpthumbof object.

Hope this is clear enough. I even can let you see how things work, because I have tested it already! And it works very very great! Please contact me if you have any questions