Skip to content

Commit

Permalink
Fix Twig extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnadoO committed Sep 2, 2020
1 parent 2de05c1 commit 2f0e6ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Twig/WebPConversionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public function getFilters()
*/
public function setWebpExtension($html)
{
$fullFilePath = "{$this->projectDir}/public{$html}";
$imagePath = parse_url($html, PHP_URL_PATH);
$fullFilePath = "{$this->projectDir}/public{$imagePath}";
$webPPath = WebPConverter::convertedWebPImagePath($fullFilePath);
$options = [
'saveFile' => true,
Expand Down

0 comments on commit 2f0e6ca

Please sign in to comment.