mirror of
https://github.com/mosbth/cimage.git
synced 2025-09-04 04:55:28 +02:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c563275ed5 | ||
|
8fec09b195 | ||
|
ac16343cd7 | ||
|
cd142c5880 | ||
|
91dd92d483 | ||
|
4b64d921d1 | ||
|
4211d7e0e6 | ||
|
dd8878c8bd | ||
|
f9604518e4 | ||
|
61aa52854e | ||
|
401478c839 | ||
|
f0ab9479d6 | ||
|
9ff7a61ca9 | ||
|
3170beb832 |
@@ -1023,13 +1023,15 @@ class CImage
|
|||||||
$this->log("Init dimension (before) newWidth x newHeight is {$this->newWidth} x {$this->newHeight}.");
|
$this->log("Init dimension (before) newWidth x newHeight is {$this->newWidth} x {$this->newHeight}.");
|
||||||
|
|
||||||
// width as %
|
// width as %
|
||||||
if ($this->newWidth[strlen($this->newWidth)-1] == '%') {
|
if ($this->newWidth
|
||||||
|
&& $this->newWidth[strlen($this->newWidth)-1] == '%') {
|
||||||
$this->newWidth = $this->width * substr($this->newWidth, 0, -1) / 100;
|
$this->newWidth = $this->width * substr($this->newWidth, 0, -1) / 100;
|
||||||
$this->log("Setting new width based on % to {$this->newWidth}");
|
$this->log("Setting new width based on % to {$this->newWidth}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// height as %
|
// height as %
|
||||||
if ($this->newHeight[strlen($this->newHeight)-1] == '%') {
|
if ($this->newHeight
|
||||||
|
&& $this->newHeight[strlen($this->newHeight)-1] == '%') {
|
||||||
$this->newHeight = $this->height * substr($this->newHeight, 0, -1) / 100;
|
$this->newHeight = $this->height * substr($this->newHeight, 0, -1) / 100;
|
||||||
$this->log("Setting new height based on % to {$this->newHeight}");
|
$this->log("Setting new height based on % to {$this->newHeight}");
|
||||||
}
|
}
|
||||||
|
21
REVISION.md
21
REVISION.md
@@ -5,6 +5,27 @@ Revision history
|
|||||||
[](https://scrutinizer-ci.com/g/mosbth/cimage/build-status/master)
|
[](https://scrutinizer-ci.com/g/mosbth/cimage/build-status/master)
|
||||||
|
|
||||||
|
|
||||||
|
v0.7.21 (2020-01-15)
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
* Support PHP 7.4, some minor fixes with notices.
|
||||||
|
|
||||||
|
|
||||||
|
v0.7.20 (2017-11-06)
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
* Remove webroot/img/{round8.PNG,wider.JPEG,wider.JPG} to avoid unzip warning message when installing with composer.
|
||||||
|
* Adding docker-compose.yml #169.
|
||||||
|
|
||||||
|
|
||||||
|
v0.7.19 (2017-03-31)
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
* Move exception handler from functions.php to img.php #166.
|
||||||
|
* Correct XSS injection in `check_system.php`.
|
||||||
|
* Composer suggests ext-imagick and ext-curl.
|
||||||
|
|
||||||
|
|
||||||
v0.7.18 (2016-08-09)
|
v0.7.18 (2016-08-09)
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
@@ -22,7 +22,9 @@
|
|||||||
"ext-gd": "*"
|
"ext-gd": "*"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-exif": "*"
|
"ext-exif": "*",
|
||||||
|
"ext-curl": "*",
|
||||||
|
"ext-imagick": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": [
|
"files": [
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
// Version of cimage and img.php
|
// Version of cimage and img.php
|
||||||
define("CIMAGE_VERSION", "v0.7.18 (2016-08-09)");
|
define("CIMAGE_VERSION", "v0.7.20 (2017-11-06)");
|
||||||
|
|
||||||
// For CRemoteImage
|
// For CRemoteImage
|
||||||
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
|
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
|
||||||
|
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
php74:
|
||||||
|
image: anax/dev:php74-apache
|
||||||
|
ports:
|
||||||
|
- "8074:80"
|
||||||
|
volumes:
|
||||||
|
- .:/home/anax/repo
|
||||||
|
|
||||||
|
php71:
|
||||||
|
image: cimage/php71-apache:latest
|
||||||
|
#build: .
|
||||||
|
ports:
|
||||||
|
- "8071:80"
|
||||||
|
volumes:
|
||||||
|
- ./:/var/www/html/
|
||||||
|
php70:
|
||||||
|
image: cimage/php70-apache:latest
|
||||||
|
#build: .
|
||||||
|
ports:
|
||||||
|
- "8070:80"
|
||||||
|
volumes:
|
||||||
|
- .:/var/www/html
|
||||||
|
php56:
|
||||||
|
image: cimage/php56-apache:latest
|
||||||
|
#build: .
|
||||||
|
ports:
|
||||||
|
- "8056:80"
|
||||||
|
volumes:
|
||||||
|
- .:/var/www/html
|
@@ -67,22 +67,6 @@ function errorPage($msg, $type = 500)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom exception handler.
|
|
||||||
*/
|
|
||||||
set_exception_handler(function ($exception) {
|
|
||||||
errorPage(
|
|
||||||
"<p><b>img.php: Uncaught exception:</b> <p>"
|
|
||||||
. $exception->getMessage()
|
|
||||||
. "</p><pre>"
|
|
||||||
. $exception->getTraceAsString()
|
|
||||||
. "</pre>",
|
|
||||||
500
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get input from query string or return default value if not set.
|
* Get input from query string or return default value if not set.
|
||||||
*
|
*
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
echo 'Current PHP version: ' . phpversion() . '<br><br>';
|
echo 'Current PHP version: ' . phpversion() . '<br><br>';
|
||||||
|
|
||||||
echo 'Running on: ' . $_SERVER['SERVER_SOFTWARE'] . '<br><br>';
|
echo 'Running on: ' . htmlentities($_SERVER['SERVER_SOFTWARE']) . '<br><br>';
|
||||||
|
|
||||||
$no = extension_loaded('exif') ? null : 'NOT';
|
$no = extension_loaded('exif') ? null : 'NOT';
|
||||||
echo "Extension exif is $no loaded.<br>";
|
echo "Extension exif is $no loaded.<br>";
|
||||||
|
@@ -8,6 +8,22 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom exception handler.
|
||||||
|
*/
|
||||||
|
set_exception_handler(function ($exception) {
|
||||||
|
errorPage(
|
||||||
|
"<p><b>img.php: Uncaught exception:</b> <p>"
|
||||||
|
. $exception->getMessage()
|
||||||
|
. "</p><pre>"
|
||||||
|
. $exception->getTraceAsString()
|
||||||
|
. "</pre>",
|
||||||
|
500
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get configuration options from file, if the file exists, else use $config
|
* Get configuration options from file, if the file exists, else use $config
|
||||||
* if its defined or create an empty $config.
|
* if its defined or create an empty $config.
|
||||||
@@ -424,7 +440,7 @@ if (isset($sizes[$newWidth])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Support width as % of original width
|
// Support width as % of original width
|
||||||
if ($newWidth[strlen($newWidth)-1] == '%') {
|
if ($newWidth && $newWidth[strlen($newWidth)-1] == '%') {
|
||||||
is_numeric(substr($newWidth, 0, -1))
|
is_numeric(substr($newWidth, 0, -1))
|
||||||
or errorPage('Width % not numeric.', 404);
|
or errorPage('Width % not numeric.', 404);
|
||||||
} else {
|
} else {
|
||||||
@@ -449,7 +465,7 @@ if (isset($sizes[$newHeight])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// height
|
// height
|
||||||
if ($newHeight[strlen($newHeight)-1] == '%') {
|
if ($newHeight && $newHeight[strlen($newHeight)-1] == '%') {
|
||||||
is_numeric(substr($newHeight, 0, -1))
|
is_numeric(substr($newHeight, 0, -1))
|
||||||
or errorPage('Height % out of range.', 404);
|
or errorPage('Height % out of range.', 404);
|
||||||
} else {
|
} else {
|
||||||
@@ -480,7 +496,7 @@ $aspectRatioConstant = getConfig('aspect_ratio_constant', function () {
|
|||||||
|
|
||||||
// Check to replace predefined aspect ratio
|
// Check to replace predefined aspect ratio
|
||||||
$aspectRatios = call_user_func($aspectRatioConstant);
|
$aspectRatios = call_user_func($aspectRatioConstant);
|
||||||
$negateAspectRatio = ($aspectRatio[0] == '!') ? true : false;
|
$negateAspectRatio = ($aspectRatio && $aspectRatio[0] == '!') ? true : false;
|
||||||
$aspectRatio = $negateAspectRatio ? substr($aspectRatio, 1) : $aspectRatio;
|
$aspectRatio = $negateAspectRatio ? substr($aspectRatio, 1) : $aspectRatio;
|
||||||
|
|
||||||
if (isset($aspectRatios[$aspectRatio])) {
|
if (isset($aspectRatios[$aspectRatio])) {
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 6.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 70 KiB |
Binary file not shown.
Before Width: | Height: | Size: 70 KiB |
@@ -41,7 +41,7 @@ return array(
|
|||||||
* mode: 'production'
|
* mode: 'production'
|
||||||
*/
|
*/
|
||||||
//'mode' => 'production',
|
//'mode' => 'production',
|
||||||
//'mode' => 'development',
|
'mode' => 'development',
|
||||||
//'mode' => 'strict',
|
//'mode' => 'strict',
|
||||||
|
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ return array(
|
|||||||
*/
|
*/
|
||||||
'image_path' => __DIR__ . '/img/',
|
'image_path' => __DIR__ . '/img/',
|
||||||
'cache_path' => __DIR__ . '/../cache/',
|
'cache_path' => __DIR__ . '/../cache/',
|
||||||
//'alias_path' => __DIR__ . '/img/alias/',
|
'alias_path' => __DIR__ . '/img/alias/',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ return array(
|
|||||||
* password_type: 'text' // use plain password, not encoded,
|
* password_type: 'text' // use plain password, not encoded,
|
||||||
*/
|
*/
|
||||||
//'password_always' => false, // always require password,
|
//'password_always' => false, // always require password,
|
||||||
//'password' => false, // "secret-password",
|
'password' => "moped", // "secret-password",
|
||||||
//'password_type' => 'text', // supports 'text', 'md5', 'hash',
|
//'password_type' => 'text', // supports 'text', 'md5', 'hash',
|
||||||
|
|
||||||
|
|
||||||
|
@@ -38,7 +38,7 @@ $config = array(
|
|||||||
|
|
||||||
|
|
||||||
// Version of cimage and img.php
|
// Version of cimage and img.php
|
||||||
define("CIMAGE_VERSION", "v0.7.18 (2016-08-09)");
|
define("CIMAGE_VERSION", "v0.7.20 (2017-11-06)");
|
||||||
|
|
||||||
// For CRemoteImage
|
// For CRemoteImage
|
||||||
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
|
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
|
||||||
@@ -118,22 +118,6 @@ function errorPage($msg, $type = 500)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom exception handler.
|
|
||||||
*/
|
|
||||||
set_exception_handler(function ($exception) {
|
|
||||||
errorPage(
|
|
||||||
"<p><b>img.php: Uncaught exception:</b> <p>"
|
|
||||||
. $exception->getMessage()
|
|
||||||
. "</p><pre>"
|
|
||||||
. $exception->getTraceAsString()
|
|
||||||
. "</pre>",
|
|
||||||
500
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get input from query string or return default value if not set.
|
* Get input from query string or return default value if not set.
|
||||||
*
|
*
|
||||||
@@ -2149,13 +2133,15 @@ class CImage
|
|||||||
$this->log("Init dimension (before) newWidth x newHeight is {$this->newWidth} x {$this->newHeight}.");
|
$this->log("Init dimension (before) newWidth x newHeight is {$this->newWidth} x {$this->newHeight}.");
|
||||||
|
|
||||||
// width as %
|
// width as %
|
||||||
if ($this->newWidth[strlen($this->newWidth)-1] == '%') {
|
if ($this->newWidth
|
||||||
|
&& $this->newWidth[strlen($this->newWidth)-1] == '%') {
|
||||||
$this->newWidth = $this->width * substr($this->newWidth, 0, -1) / 100;
|
$this->newWidth = $this->width * substr($this->newWidth, 0, -1) / 100;
|
||||||
$this->log("Setting new width based on % to {$this->newWidth}");
|
$this->log("Setting new width based on % to {$this->newWidth}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// height as %
|
// height as %
|
||||||
if ($this->newHeight[strlen($this->newHeight)-1] == '%') {
|
if ($this->newHeight
|
||||||
|
&& $this->newHeight[strlen($this->newHeight)-1] == '%') {
|
||||||
$this->newHeight = $this->height * substr($this->newHeight, 0, -1) / 100;
|
$this->newHeight = $this->height * substr($this->newHeight, 0, -1) / 100;
|
||||||
$this->log("Setting new height based on % to {$this->newHeight}");
|
$this->log("Setting new height based on % to {$this->newHeight}");
|
||||||
}
|
}
|
||||||
@@ -4418,6 +4404,22 @@ class CFastTrackCache
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom exception handler.
|
||||||
|
*/
|
||||||
|
set_exception_handler(function ($exception) {
|
||||||
|
errorPage(
|
||||||
|
"<p><b>img.php: Uncaught exception:</b> <p>"
|
||||||
|
. $exception->getMessage()
|
||||||
|
. "</p><pre>"
|
||||||
|
. $exception->getTraceAsString()
|
||||||
|
. "</pre>",
|
||||||
|
500
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get configuration options from file, if the file exists, else use $config
|
* Get configuration options from file, if the file exists, else use $config
|
||||||
* if its defined or create an empty $config.
|
* if its defined or create an empty $config.
|
||||||
@@ -4834,7 +4836,7 @@ if (isset($sizes[$newWidth])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Support width as % of original width
|
// Support width as % of original width
|
||||||
if ($newWidth[strlen($newWidth)-1] == '%') {
|
if ($newWidth && $newWidth[strlen($newWidth)-1] == '%') {
|
||||||
is_numeric(substr($newWidth, 0, -1))
|
is_numeric(substr($newWidth, 0, -1))
|
||||||
or errorPage('Width % not numeric.', 404);
|
or errorPage('Width % not numeric.', 404);
|
||||||
} else {
|
} else {
|
||||||
@@ -4859,7 +4861,7 @@ if (isset($sizes[$newHeight])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// height
|
// height
|
||||||
if ($newHeight[strlen($newHeight)-1] == '%') {
|
if ($newHeight && $newHeight[strlen($newHeight)-1] == '%') {
|
||||||
is_numeric(substr($newHeight, 0, -1))
|
is_numeric(substr($newHeight, 0, -1))
|
||||||
or errorPage('Height % out of range.', 404);
|
or errorPage('Height % out of range.', 404);
|
||||||
} else {
|
} else {
|
||||||
@@ -4890,7 +4892,7 @@ $aspectRatioConstant = getConfig('aspect_ratio_constant', function () {
|
|||||||
|
|
||||||
// Check to replace predefined aspect ratio
|
// Check to replace predefined aspect ratio
|
||||||
$aspectRatios = call_user_func($aspectRatioConstant);
|
$aspectRatios = call_user_func($aspectRatioConstant);
|
||||||
$negateAspectRatio = ($aspectRatio[0] == '!') ? true : false;
|
$negateAspectRatio = ($aspectRatio && $aspectRatio[0] == '!') ? true : false;
|
||||||
$aspectRatio = $negateAspectRatio ? substr($aspectRatio, 1) : $aspectRatio;
|
$aspectRatio = $negateAspectRatio ? substr($aspectRatio, 1) : $aspectRatio;
|
||||||
|
|
||||||
if (isset($aspectRatios[$aspectRatio])) {
|
if (isset($aspectRatios[$aspectRatio])) {
|
||||||
|
@@ -38,7 +38,7 @@ $config = array(
|
|||||||
|
|
||||||
|
|
||||||
// Version of cimage and img.php
|
// Version of cimage and img.php
|
||||||
define("CIMAGE_VERSION", "v0.7.18 (2016-08-09)");
|
define("CIMAGE_VERSION", "v0.7.20 (2017-11-06)");
|
||||||
|
|
||||||
// For CRemoteImage
|
// For CRemoteImage
|
||||||
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
|
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
|
||||||
@@ -118,22 +118,6 @@ function errorPage($msg, $type = 500)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom exception handler.
|
|
||||||
*/
|
|
||||||
set_exception_handler(function ($exception) {
|
|
||||||
errorPage(
|
|
||||||
"<p><b>img.php: Uncaught exception:</b> <p>"
|
|
||||||
. $exception->getMessage()
|
|
||||||
. "</p><pre>"
|
|
||||||
. $exception->getTraceAsString()
|
|
||||||
. "</pre>",
|
|
||||||
500
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get input from query string or return default value if not set.
|
* Get input from query string or return default value if not set.
|
||||||
*
|
*
|
||||||
@@ -2149,13 +2133,15 @@ class CImage
|
|||||||
$this->log("Init dimension (before) newWidth x newHeight is {$this->newWidth} x {$this->newHeight}.");
|
$this->log("Init dimension (before) newWidth x newHeight is {$this->newWidth} x {$this->newHeight}.");
|
||||||
|
|
||||||
// width as %
|
// width as %
|
||||||
if ($this->newWidth[strlen($this->newWidth)-1] == '%') {
|
if ($this->newWidth
|
||||||
|
&& $this->newWidth[strlen($this->newWidth)-1] == '%') {
|
||||||
$this->newWidth = $this->width * substr($this->newWidth, 0, -1) / 100;
|
$this->newWidth = $this->width * substr($this->newWidth, 0, -1) / 100;
|
||||||
$this->log("Setting new width based on % to {$this->newWidth}");
|
$this->log("Setting new width based on % to {$this->newWidth}");
|
||||||
}
|
}
|
||||||
|
|
||||||
// height as %
|
// height as %
|
||||||
if ($this->newHeight[strlen($this->newHeight)-1] == '%') {
|
if ($this->newHeight
|
||||||
|
&& $this->newHeight[strlen($this->newHeight)-1] == '%') {
|
||||||
$this->newHeight = $this->height * substr($this->newHeight, 0, -1) / 100;
|
$this->newHeight = $this->height * substr($this->newHeight, 0, -1) / 100;
|
||||||
$this->log("Setting new height based on % to {$this->newHeight}");
|
$this->log("Setting new height based on % to {$this->newHeight}");
|
||||||
}
|
}
|
||||||
@@ -4418,6 +4404,22 @@ class CFastTrackCache
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom exception handler.
|
||||||
|
*/
|
||||||
|
set_exception_handler(function ($exception) {
|
||||||
|
errorPage(
|
||||||
|
"<p><b>img.php: Uncaught exception:</b> <p>"
|
||||||
|
. $exception->getMessage()
|
||||||
|
. "</p><pre>"
|
||||||
|
. $exception->getTraceAsString()
|
||||||
|
. "</pre>",
|
||||||
|
500
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get configuration options from file, if the file exists, else use $config
|
* Get configuration options from file, if the file exists, else use $config
|
||||||
* if its defined or create an empty $config.
|
* if its defined or create an empty $config.
|
||||||
@@ -4834,7 +4836,7 @@ if (isset($sizes[$newWidth])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Support width as % of original width
|
// Support width as % of original width
|
||||||
if ($newWidth[strlen($newWidth)-1] == '%') {
|
if ($newWidth && $newWidth[strlen($newWidth)-1] == '%') {
|
||||||
is_numeric(substr($newWidth, 0, -1))
|
is_numeric(substr($newWidth, 0, -1))
|
||||||
or errorPage('Width % not numeric.', 404);
|
or errorPage('Width % not numeric.', 404);
|
||||||
} else {
|
} else {
|
||||||
@@ -4859,7 +4861,7 @@ if (isset($sizes[$newHeight])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// height
|
// height
|
||||||
if ($newHeight[strlen($newHeight)-1] == '%') {
|
if ($newHeight && $newHeight[strlen($newHeight)-1] == '%') {
|
||||||
is_numeric(substr($newHeight, 0, -1))
|
is_numeric(substr($newHeight, 0, -1))
|
||||||
or errorPage('Height % out of range.', 404);
|
or errorPage('Height % out of range.', 404);
|
||||||
} else {
|
} else {
|
||||||
@@ -4890,7 +4892,7 @@ $aspectRatioConstant = getConfig('aspect_ratio_constant', function () {
|
|||||||
|
|
||||||
// Check to replace predefined aspect ratio
|
// Check to replace predefined aspect ratio
|
||||||
$aspectRatios = call_user_func($aspectRatioConstant);
|
$aspectRatios = call_user_func($aspectRatioConstant);
|
||||||
$negateAspectRatio = ($aspectRatio[0] == '!') ? true : false;
|
$negateAspectRatio = ($aspectRatio && $aspectRatio[0] == '!') ? true : false;
|
||||||
$aspectRatio = $negateAspectRatio ? substr($aspectRatio, 1) : $aspectRatio;
|
$aspectRatio = $negateAspectRatio ? substr($aspectRatio, 1) : $aspectRatio;
|
||||||
|
|
||||||
if (isset($aspectRatios[$aspectRatio])) {
|
if (isset($aspectRatios[$aspectRatio])) {
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user