Have you been able to check the answer from Rich Matheisen above?
Have you checked if magick exists on your current device?
Perhaps with a command like this:
Get-Command -Name "*magick*"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
(i ran the below script on win10 and it worked, new machine in win11 and the script is no longer working in powershell admin)
Get-ChildItem .* -R -include *.png, *.jpg, *.jpeg, *.gif |
Foreach-Object {
$filename = "$($.FullName.split('.')[0]).webp"
if (Test-Path $filename -PathType leaf) {
echo "Skipped $"
return
}
magick convert -strip $.FullName -quality 75 $filename
echo "Converting $"
If ($LASTEXITCODE -eq "0") {
del $_.FullName
echo "Deleting $_"
} else {
Write-Host "Error converting file " + $_.FullName -ForegroundColor red -BackgroundColor white
}
}
echo "All done!"
pause
Have you been able to check the answer from Rich Matheisen above?
Have you checked if magick exists on your current device?
Perhaps with a command like this:
Get-Command -Name "*magick*"
<iframe width="640px" height="480px" src="https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAN__mAijG5UNDlQMkNUTDFPWFhFUVRIWUZHVkFNVVpMVi4u&embed=true" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
<iframe width="640px" height="480px" src="https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAN__mAijG5UNDlQMkNUTDFPWFhFUVRIWUZHVkFNVVpMVi4u&embed=true" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>