| @@ 3618-3625 (lines=8) @@ | ||
| 3615 | elseif ($matches[2][$key]) |
|
| 3616 | $width = $matches[2][$key]; |
|
| 3617 | // ... and height. |
|
| 3618 | if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6]) |
|
| 3619 | { |
|
| 3620 | $height = $sig_limits[6]; |
|
| 3621 | if ($width != -1) |
|
| 3622 | $width = $width * ($height / $matches[4][$key]); |
|
| 3623 | } |
|
| 3624 | elseif ($matches[4][$key]) |
|
| 3625 | $height = $matches[4][$key]; |
|
| 3626 | ||
| 3627 | // If the dimensions are still not fixed - we need to check the actual image. |
|
| 3628 | if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6])) |
|
| @@ 1072-1079 (lines=8) @@ | ||
| 1069 | elseif ($matches[2][$key]) |
|
| 1070 | $width = $matches[2][$key]; |
|
| 1071 | // ... and height. |
|
| 1072 | if ($matches[4][$key] && $sig_limits[6] && $matches[4][$key] > $sig_limits[6]) |
|
| 1073 | { |
|
| 1074 | $height = $sig_limits[6]; |
|
| 1075 | if ($width != -1) |
|
| 1076 | $width = $width * ($height / $matches[4][$key]); |
|
| 1077 | } |
|
| 1078 | elseif ($matches[4][$key]) |
|
| 1079 | $height = $matches[4][$key]; |
|
| 1080 | ||
| 1081 | // If the dimensions are still not fixed - we need to check the actual image. |
|
| 1082 | if (($width == -1 && $sig_limits[5]) || ($height == -1 && $sig_limits[6])) |
|