Go to Documents directory and clone repo:
git clone https://github.com/Paulobox/powershellModules:
choco install terminal-icons.powershell fzf oh-my-posh zoxide -yPSReadline:
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheckPSFzf
Install-Module -Name PSFzf -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheckremove .git folder in current directory
Remove-Item -Path .\.git -Recurse -ForceConvert from .png to .webp in current directory
$outputDirectory = $PWD.Path
if (-not (Test-Path $outputDirectory)) {
New-Item -ItemType Directory -Force -Path $outputDirectory
}
Get-ChildItem *.png | ForEach-Object {
& "cwebp.exe" -q 70 -o (Join-Path -Path $outputDirectory -ChildPath "$($_.BaseName).webp") $_.FullName
}Open CMD as administrator: