1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-25 02:31:20 +02:00

Fixed issue 1 and prepare to tagg v0.4.1

This commit is contained in:
Mikael Roos
2014-01-27 13:19:07 +01:00
parent 230e9189a3
commit 28f3c55d8c
2 changed files with 4 additions and 7 deletions

View File

@@ -40,8 +40,6 @@ class CImage {
private $quality;
public $filters;
public $saveFolder;
public $newName;
//private $newFileName; // OBSOLETE, using cacheFileName instead.
private $mime; // Calculated from source image
private $width; // Calculated from source image
private $height; // Calculated from source image
@@ -71,16 +69,14 @@ class CImage {
* @param string $imageName filename which may contain subdirectory.
* @param string $imageFolder path to root folder for images.
* @param string $saveFolder path to folder where to save the new file or null to skip saving.
* @param string $newName new filename or leave to null to autogenerate filename.
*/
public function __construct($imageName=null, $imageFolder=null, $saveFolder=null, $newName=null) {
public function __construct($imageName=null, $imageFolder=null, $saveFolder=null) {
$this->imageName = ltrim($imageName, '/');
$this->imageFolder = rtrim($imageFolder, '/');
$this->pathToImage = $this->imageFolder . '/' . $this->imageName;
$this->fileExtension = pathinfo($this->pathToImage, PATHINFO_EXTENSION);
$this->extension = $this->fileExtension;
$this->saveFolder = $saveFolder;
$this->newName = $newName;
}