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

initial release

This commit is contained in:
Mikael Roos
2012-04-25 15:53:46 +02:00
parent 580b3a46f9
commit 980b4cce3c
3 changed files with 7 additions and 9 deletions

View File

@@ -1,10 +1,10 @@
<?php
/**
* Resizing images on the fly.
* Resize and crop images on the fly. Store generated images in a cache.
*
* @author Mikael Roos mos@dbwebb.se
* @example http://dbwebb.se/example/lessphp/
* @link https://github.com/mosbth/Utility/blob/master/style.php
* @example http://mikaelroos.se/cimage/test.php
* @link https://github.com/mosbth/cimage
*/
class CImage {
@@ -211,11 +211,6 @@ class CImage {
* @param $imageQuality number the quality to use when saving the file, default is full quality.
*/
public function ResizeAndSave($imageQuality="100") {
//echo "{$this->width}:{$this->height}:{$this->mime}</br>";
//echo "{$this->cropWidth}:{$this->cropHeight}</br>";
//echo "{$this->newWidth}:{$this->newHeight}</br>";
if($this->crop) {
$cropX = ($this->cropWidth/2) - ($this->newWidth/2);
$cropY = ($this->cropHeight/2) - ($this->newHeight/2);