mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-25 00:45:50 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0fee846437 | ||
|
c63747a892 | ||
|
2d8cccc795 | ||
|
bb5fd6f115 |
16
README.md
16
README.md
@@ -26,12 +26,12 @@ This is free software and open source software, licensed according MIT.
|
||||
Installation and get going
|
||||
-------------------------------------
|
||||
|
||||
**Latest stable version is v0.5 released 2014-02-12.**
|
||||
**Latest stable version is v0.5.1 released 2014-02-12.**
|
||||
|
||||
```bash
|
||||
git clone git://github.com/mosbth/cimage.git
|
||||
cd cimage
|
||||
git checkout v0.5
|
||||
git checkout v0.5.1
|
||||
```
|
||||
|
||||
Make the cache-directory writable by the webserver.
|
||||
@@ -50,13 +50,13 @@ Review the settings in `webroot/img_config.php` and check out `webroot/img.php`
|
||||
Usage
|
||||
-------------------------------------
|
||||
|
||||
###List of parameters {#parameters}
|
||||
###List of parameters
|
||||
|
||||
The `img.php` supports a lot of parameters. Combine the parameters to get the desired behavior and resulting image. For example, take the original image, resize it using width, aspect-ratio and crop-to-fit, apply a sharpen effect, save the image as JPEG using quality 30.
|
||||
|
||||
| `img.php?src=kodim13.png&w=600&aspect-ratio=4&crop-to-fit&sharpen&save-as=jpg&q=30` |
|
||||
|-----------------------------------------------------------|
|
||||
| <img src=/kod-exempel/cimage_/webroot/img.php?src=kodim13.png&w=600&aspect-ratio=4&crop-to-fit&sharpen&save-as=jpg&q=30 alt=''> |
|
||||
| <img src=http://dbwebb.se/kod-exempel/cimage_/webroot/img.php?src=kodim13.png&w=600&aspect-ratio=4&crop-to-fit&sharpen&save-as=jpg&q=30 alt=''> |
|
||||
|
||||
Here is a list of all parameters that you can use together with `img.php`, grouped by its basic intent of usage.
|
||||
|
||||
@@ -131,7 +131,13 @@ Revision history
|
||||
-------------------------------------
|
||||
|
||||
|
||||
v0.5 (2014-02-07)
|
||||
v0.5.1 (2014-02-12)
|
||||
|
||||
* Display image in README-file.
|
||||
* Create an empty `cache` directory as part of repo.
|
||||
|
||||
|
||||
v0.5 (2014-02-12)
|
||||
|
||||
* Change constant name `CImage::PNG_QUALITY_DEFAULT` to `CImage::PNG_COMPRESSION_DEFAULT`.
|
||||
* Split JPEG quality and PNG compression, `CImage->quality` and `CImage->compression`
|
||||
|
0
cache/README.md
vendored
Normal file
0
cache/README.md
vendored
Normal file
Reference in New Issue
Block a user