This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy this file to any directory containing images & then run this script in powershell | |
# Get all png images in the current directory & convert it to webp format | |
$images = Get-ChildItem -Path (Get-Location) -Filter *.png | |
foreach ($image in $images) { | |
$fileName = $image.DirectoryName + "\" + $image.BaseName + ".webp" | |
.\cwebp.exe -q 80 $image.FullName -o $fileName | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
location / { | |
return 418; | |
} | |
error_page 418 /custom_418.html; | |
location = /custom_418.html { | |
root /var/www/html/errors; |