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.
2 parents fd4ce9b + 5514a09 commit 696c5cbCopy full SHA for 696c5cb
lib/Convert.php
@@ -31,7 +31,7 @@ public function generateWebP($file)
31
// Checking file type since only images are processed
32
if ($file->type() == 'image') {
33
// WebPConvert options
34
- $path = kirby()->root('content') . '/' . dirname($file->id()) . '/';
+ $path = $file->contentFileDirectory() . '/';
35
$input = $path . $file->filename();
36
$output = $path . $file->name() . '.webp';
37
0 commit comments