@@ 325-325 (lines=1) @@ | ||
322 | $option = $this->prepOption($option); |
|
323 | ||
324 | // *** Make sure the file passed in is valid |
|
325 | if (!$this->image) { if ($this->debug) { throw new Exception('file ' . $this->getFileName() .' is missing or invalid'); }else{ throw new Exception(); }}; |
|
326 | ||
327 | // *** Get optimal width and height - based on $option |
|
328 | $dimensionsArray = $this->getDimensions($newWidth, $newHeight, $option); |
|
@@ 394-394 (lines=1) @@ | ||
391 | { |
|
392 | ||
393 | // *** Make sure the file passed in is valid |
|
394 | if (!$this->image) { if ($this->debug) { throw new Exception('file ' . $this->getFileName() .' is missing or invalid'); }else{ throw new Exception(); }}; |
|
395 | ||
396 | $this->imageResized = $this->image; |
|
397 | $this->crop($this->width, $this->height, $newWidth, $newHeight, $cropPos); |