mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-31 05:30:09 +02:00
Minor cleaning of properties in CImage, fix #23
This commit is contained in:
32
CImage.php
32
CImage.php
@@ -253,23 +253,29 @@ class CImage
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Properties
|
* Used with option area to set which parts of the image to use.
|
||||||
* @todo Clean up these and check if and how they are used)
|
|
||||||
*/
|
*/
|
||||||
private $offset;
|
private $offset;
|
||||||
|
|
||||||
public $keepRatio;
|
|
||||||
public $cropToFit;
|
|
||||||
|
|
||||||
private $cropWidth;
|
/**
|
||||||
private $cropHeight;
|
* Properties, the class is mutable and the method setOptions()
|
||||||
public $crop_x;
|
* decides (partly) what properties are created.
|
||||||
public $crop_y;
|
*
|
||||||
public $filters;
|
* @todo Clean up these and check if and how they are used
|
||||||
private $type; // Calculated from source image
|
*/
|
||||||
private $attr; // Calculated from source image
|
|
||||||
private $useCache; // Use the cache if true, set to false to ignore the cached file.
|
//public $keepRatio;
|
||||||
private $useOriginal; // Use original image if possible
|
//public $cropToFit;
|
||||||
|
//private $cropWidth;
|
||||||
|
//private $cropHeight;
|
||||||
|
//public $crop_x;
|
||||||
|
//public $crop_y;
|
||||||
|
//public $filters;
|
||||||
|
//private $type; // Calculated from source image
|
||||||
|
//private $attr; // Calculated from source image
|
||||||
|
//private $useCache; // Use the cache if true, set to false to ignore the cached file.
|
||||||
|
//private $useOriginal; // Use original image if possible
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -133,6 +133,7 @@ Revision history
|
|||||||
|
|
||||||
v0.5.x (latest)
|
v0.5.x (latest)
|
||||||
|
|
||||||
|
* Minor cleaning of properties in `CImage`. Fix #23.
|
||||||
* Adding `webroot/htaccess` to show off how friendly urls can be created for `img.php`. Fix #45.
|
* Adding `webroot/htaccess` to show off how friendly urls can be created for `img.php`. Fix #45.
|
||||||
* Added option `fill-to-fit, ff`. Fix #38.
|
* Added option `fill-to-fit, ff`. Fix #38.
|
||||||
* Added option `shortcut, sc` to enable configuration of complex expressions. Fix #2.
|
* Added option `shortcut, sc` to enable configuration of complex expressions. Fix #2.
|
||||||
|
Reference in New Issue
Block a user