mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-01 05:50:12 +02:00
preparing to tag latest changes
This commit is contained in:
@@ -21,7 +21,7 @@ CImage lives at github: https://github.com/mosbth/cimage
|
|||||||
|
|
||||||
Enjoy!
|
Enjoy!
|
||||||
|
|
||||||
Mikael Roos (mos@dbwebb.se)
|
Mikael Roos (me@mikaelroos.se)
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
@@ -40,10 +40,10 @@ chmod 777 cache
|
|||||||
4. Advanced usage. Put `img.php` in your `/img`-directory. Create a `.htaccess` in your
|
4. Advanced usage. Put `img.php` in your `/img`-directory. Create a `.htaccess` in your
|
||||||
web root folder containing the following line:
|
web root folder containing the following line:
|
||||||
|
|
||||||
<blockquote>
|
<pre><code>
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule ^image/(.*)$ img/img.php?src=$1 [QSA,NC,L]
|
RewriteRule ^image/(.*)$ img/img.php?src=$1 [QSA,NC,L]
|
||||||
</blockquote>
|
</code></pre>
|
||||||
|
|
||||||
Now you can access and resize your images through `/image/someimage.jpg?w=80`. Very handy.
|
Now you can access and resize your images through `/image/someimage.jpg?w=80`. Very handy.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user