zapWidth and zapHeight are now in conf.php (#21)
This commit is contained in:
parent
9196bf07a7
commit
e96b8e5563
4 changed files with 9 additions and 14 deletions
|
|
@ -3,10 +3,6 @@
|
|||
* Library of tool functions to manipulate an image
|
||||
*/
|
||||
class ImgTools {
|
||||
public static $maxScreenWidth = 1067; //screen dimensions
|
||||
|
||||
public static $maxScreenHeight = 600;
|
||||
|
||||
public static $minFuzzFactor = 0.08; //minimal factor for $fuzz
|
||||
|
||||
public static $maxFuzzFactor = 0.64; //maximal factor for $fuzz
|
||||
|
|
@ -161,7 +157,7 @@ class ImgTools {
|
|||
public static function scaleByLength(Imagick $img, $maxW, $maxH) {
|
||||
$width = $img->getImageWidth();
|
||||
$height = $img->getImageHeight();
|
||||
if(($width <= self::$maxScreenWidth) && ($height <= self::$maxScreenHeight)) {
|
||||
if(($width <= ZAP_DEFAULT_WIDTH) && ($height <= ZAP_DEFAULT_HEIGHT)) {
|
||||
return $img;
|
||||
} else {
|
||||
if ($width >= $height) { //horizontal image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue