AVIF Automator dla Windows 11

🚀 AVIF Automator dla Windows 11 – konwertuj JPG/PNG na AVIF jednym klikiem!
Autor: Igor Rubas | +48 668 256 237 | https://a360.pl
Zmień format zdjęć w BATCH z automatyczną instalacją!

# AVIF Automator v1.0 Windows 11 - Pobierz gotowy plik!
$ErrorActionPreference = "Stop"

function Write-Log { param([string]$Message); Write-Host "AVIF-Automator: $Message" }

function Test-Command { param([string]$Command); return [bool](Get-Command $Command -ErrorAction SilentlyContinue) }

function Install-IfMissing {
    param([string]$Tool)
    if (-not (Test-Command $Tool)) {
        Write-Log "Instaluję $Tool..."
        if ($Tool -eq "avifenc") { winget install libavif.avifenc }
    }
}

Write-Log "Sprawdzam zależności..."
Install-IfMissing "avifenc"

$QUALITY = 100
Write-Log "QUALITY: $QUALITY"
foreach ($f in $args) { Write-Log "  $f" }

foreach ($f in $args) {
    $out = [System.IO.Path]::ChangeExtension($f, ".avif")
    & avifenc -q $QUALITY "`"$f`"" "`"$out`""
    Write-Log "✅ $f → $out"
}

Write-Log "Konwersja zakończona! Author: Igor Rubas +48 668 256 237 https://a360.pl"

🎯 Jak używać:

1. Zapisz jako avif-automator.ps1
2. PowerShell: .\avif-automator.ps1 *.jpg *.png
3. PPM na folderze → "AVIF Automator" (po dodaniu do menu!)

✨ Menu kontekstowe PPM (jak Mac Services):
Pobierz gotowy .reg:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\AVIF Automator]
@="AVIF Automator"
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\shell\AVIF Automator\command]
@="powershell.exe -ExecutionPolicy Bypass -File \"C:\\AVIF\\avif-automator.ps1\" \"%V\""

⚡ Dlaczego AVIF?
• 80% mniejszy niż JPG przy tej samej jakości
• Idealne dla 360° tours (a360.pl)
• WebP/AVIF support w Safari 20+, Chrome, Firefox
Testuj na fotkach 360° z virtual tours – plik 10MB → 0.3MB bez utraty jakości!
📱 Kontakt biznesowy: +48 668 256 237 | biuro@a360.pl
🌐 Portfolio: https://a360.pl/avif
Pobierz oba: Mac + Windows 👇 #AVIF #WordPress #VirtualTours #WebDev

Komentarze

1 response to “AVIF Automator dla Windows 11”

  1. […] AVIF Automator dla Windows 11 […]