Àpèjúwe
The plugin is actually just a port of a plugin/snippet I wrote for MODx a while ago (see here). It scans your contentÌtumọ̀ Yorùbá: ’s source code for <img> tags with width and height attributes and passes them to phpThumb, a great PHP image editing library, which handles the resizing and editing of the image. Additionally, by passing parameters to phpThumb using a query string, itÌtumọ̀ Yorùbá: ’s possible to edit the image in several ways (take a look at phpThumbÌtumọ̀ Yorùbá: ’s demos).
The simplest way to get resized images is to specify width/height attibutes in your HTML. AutoThumb will use the given values and remove the attributes from your pageÌtumọ̀ Yorùbá: ’s output. When you take a look at the URLs of the example images found on the plugin home page, you will see that the <img>-tagÌtumọ̀ Yorùbá: ’s src-attribute points to a file called image.php in the pluginÌtumọ̀ Yorùbá: ’s directory. This file takes the image source and several other parameters and passes them to phpThumb, which will generate and output the final image (of course images will be cached).
To prevent evil people playing with the query string and letting your server generate tons of different images, the plugin generates a hash which is a combination of the query string and a secret password you set in phpThumbÌtumọ̀ Yorùbá: ’s config file. So every call with different parameters (even the same image with different sizes) has another unique hash and itÌtumọ̀ Yorùbá: ’s not possible to generate new images without knowing the secret password.
See the plugin page for more details on the plugin.
All development is done on GitHub. If you have ideas, enhancements, etc. feel free to fork the project and send a pull request.
For any issues please use the Issue Tracker.
Ìgbéwọlẹ̀
- Download the .zip file and extract it.
- Upload the plugin to your
/wp-content/plugins/directory and make sure your web server has write access to the cache folder and the config file. - Activate the plugin.
- Go to Settings Ìtumọ̀ Yorùbá: – AutoThumb and setup the plugin
- Have fun!
Àwọn àgbéyẹ̀wò
Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.
Àwọn Olùkópa & Olùgbéejáde
“AutoThumb” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.
Àwọn OlùkópaṢe o nífẹ̀ẹ́ sí ìdàgbàsókè?
Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.