We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c26c8 commit 69b7f1aCopy full SHA for 69b7f1a
src/ImageTransformer.php
@@ -93,17 +93,12 @@ private function buildTransformParams(ImageTransform $imageTransform): array
93
])->whereNotNull()->all();
94
}
95
96
- private function getGravityValue(ImageTransform $imageTransform): null|array|string
+ private function getGravityValue(ImageTransform $imageTransform): ?array
97
{
98
if ($this->asset->getHasFocalPoint()) {
99
return $this->asset->getFocalPoint();
100
101
102
-
103
- if ($imageTransform->position === 'face' || $imageTransform->position[0] === 'face') {
104
- return 'face';
105
- }
106
107
if ($imageTransform->position === 'center-center') {
108
return null;
109
0 commit comments