We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3709504 commit 1b0eaa3Copy full SHA for 1b0eaa3
src/Theme.php
@@ -244,9 +244,16 @@ public function getScreenshotName(): string|null
244
return $this->screenshot;
245
}
246
247
- public function getScreenshotImage(): string
+ public function getScreenshotImageUrl(): string
248
{
249
- $screenshotImage = $this->getPath() . '/' . $this->screenshot;
+ $screenshotImagePath = $this->getAssetsPath($this->screenshot);
250
+
251
+ return $screenshotImagePath;
252
+ }
253
254
+ public function getScreenshotImageBase64(): string|null
255
+ {
256
+ $screenshotImage = $this->getAssetsPath($this->screenshot);
257
258
if (!is_file($screenshotImage)) {
259
return null;
0 commit comments