|
@@ 913-918 (lines=6) @@
|
| 910 |
|
* |
| 911 |
|
* @return int |
| 912 |
|
*/ |
| 913 |
|
public function getInsertHeight() { |
| 914 |
|
$width = $this->getWidth(); |
| 915 |
|
$height = $this->getHeight(); |
| 916 |
|
$maxWidth = $this->config()->insert_width; |
| 917 |
|
return ($width <= $maxWidth) ? $height : round($height*($maxWidth/$width)); |
| 918 |
|
} |
| 919 |
|
|
| 920 |
|
} |
| 921 |
|
|
|
@@ 1237-1242 (lines=6) @@
|
| 1234 |
|
* |
| 1235 |
|
* @return int |
| 1236 |
|
*/ |
| 1237 |
|
public function getInsertHeight() { |
| 1238 |
|
$width = $this->getWidth(); |
| 1239 |
|
$height = $this->getHeight(); |
| 1240 |
|
$maxWidth = $this->config()->insert_width; |
| 1241 |
|
return ($width <= $maxWidth) ? $height : round($height*($maxWidth/$width)); |
| 1242 |
|
} |
| 1243 |
|
|
| 1244 |
|
public function getPreviewURL() { |
| 1245 |
|
// Get preview from file |