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 567557f commit 28a5b86Copy full SHA for 28a5b86
1 file changed
src/Resource/Image.php
@@ -102,6 +102,14 @@ public function stripMetadata(bool $stripMetadata = true): self
102
return $this;
103
}
104
105
+ /**
106
+ * Set the smart focus gravity of the optimized image.
107
+ */
108
+ public function smartFocus(){
109
+ $this->addProperty(new ImageProperty\GravityProperty('sm'));
110
+ return $this;
111
+ }
112
+
113
/**
114
* Apply a watermark to the optimized image.
115
*/
0 commit comments