diff options
-rw-r--r-- | src/PHPImageWorkshop/ImageWorkshop.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PHPImageWorkshop/ImageWorkshop.php b/src/PHPImageWorkshop/ImageWorkshop.php index a523be4..d45b74e 100644 --- a/src/PHPImageWorkshop/ImageWorkshop.php +++ b/src/PHPImageWorkshop/ImageWorkshop.php @@ -128,7 +128,7 @@ class ImageWorkshop {
$opacity = 0;
- if (!$backgroundColor || $backgroundColor == 'transparent') {
+ if (null === $backgroundColor || $backgroundColor == 'transparent') {
$opacity = 127;
$backgroundColor = 'ffffff';
}
|