There is a new version of DirectResize with PHPThumb.
Version in attachment 0.9.0 rev 6. This is beta! Current revision in SVN is rev 6.
Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code.
Required PHP 5.
What’s new:
* Images processed and cached by PHPThumb
* Many new parameters, more flexible customizing
* Sets of configurations binded to specific paths and document templates. You can use different parameters on different sets of images.
* Friendly URLs for images
* New js-libraries inside - jQuery thickbox, Fancybox, nyroModal. Others updated to new versions.
* and more
Docs
Sorry, but full docs avaiable only on russian at this moment. There is a short discription. You can use google-translated version by
http://modx.metaller.ru/assets/plugins/directresize/docs/readme_ru.html" target="_blank" rel="nofollow">this link. But better to look for russian original readme in assets/plugins/directresize/docs/readme_ru.html for examples. Google has some format errors with preformated text.
Installation:
* Unpack all files and folders from root folder in the archive to root of your site. Subfolder directresize will be copied to assets/plugins/, phpthumb will be copied to assets/snippets/ and file image.php will be copied to the root of your site.
* Create new plugin called DirectResize and paste the contents of directResize.plugin.txt to it
* On the "System event" tab check OnWebPagePrerender, OnBeforeDocFormSave, OnDocFormPrerender
* Copy and Paste the following into "Plugin configuration" on the Configuration tab
&config=Configuration;string;thickbox
* Set writing perms to assets/snippets/phpthumb/cache/
* Configure friendly URL in .htaccess in the root folder:
Uncomment
RewriteEngine On
RewriteBase /
After that, but before
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
insert
# DirectResize Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^images/([a-z0-9]{32})/.*\.(png|gif|jpe{0,1}g)$ assets/plugins/directresize/furl.php?q=$1 [NC,L,QSA]
* optional - configure PHPThumb in assets/snippets/phpthumb/phpThumb.config.php
Upgrading from 0.8
Sorry, there is no backward compatibility.
Links, bugs, issues
Project on google code:
http://code.google.com/p/directresize-modx/
SVN-repo (web-browser or SVN-programm):
http://directresize-modx.googlecode.com/svn/trunk/
Issues :
http://code.google.com/p/directresize-modx/issues/
If you have a problem with downloading file from here, you can download it from
google code downloads