@@ 193-200 (lines=8) @@ | ||
190 | $this->calcImageSize($this->currentDimensions['width'], $this->currentDimensions['height']); |
|
191 | ||
192 | // create the working image |
|
193 | if (function_exists('imagecreatetruecolor')) |
|
194 | { |
|
195 | $this->workingImage = imagecreatetruecolor($this->newDimensions['newWidth'], $this->newDimensions['newHeight']); |
|
196 | } |
|
197 | else |
|
198 | { |
|
199 | $this->workingImage = imagecreate($this->newDimensions['newWidth'], $this->newDimensions['newHeight']); |
|
200 | } |
|
201 | ||
202 | $this->preserveAlpha(); |
|
203 | ||
@@ 634-641 (lines=8) @@ | ||
631 | ||
632 | $this->calcImageSizePercent($this->currentDimensions['width'], $this->currentDimensions['height']); |
|
633 | ||
634 | if (function_exists('imagecreatetruecolor')) |
|
635 | { |
|
636 | $this->workingImage = imagecreatetruecolor($this->newDimensions['newWidth'], $this->newDimensions['newHeight']); |
|
637 | } |
|
638 | else |
|
639 | { |
|
640 | $this->workingImage = imagecreate($this->newDimensions['newWidth'], $this->newDimensions['newHeight']); |
|
641 | } |
|
642 | ||
643 | $this->preserveAlpha(); |
|
644 |