Hi,
Is there any way to automate RIOT so it can automatically compress images when an image or images are added to a specific folder?
I can get RIOT to open with the following script:
$RIOT = "C:\Program Files\Riot\Riot.exe"
& $RIOT "C:\Users\Matt\Downloads\images\Image1.jpg" "C:\Users\Matt\Downloads\images\compressed-image.jpg" /silent
or even this which looks for all images within the folder.
$RIOT = "C:\Program Files\Riot\Riot.exe"
$srcFolder = "C:\Users\Matt\Downloads\images\"
# Get all files in the source folder
$files = Get-ChildItem $srcFolder -Filter *.jpg
# Loop through each file
foreach ($file in $files)
{
# Compress the image
& $RIOT "$srcFolder\$($file.Name)" "$srcFolder\compressed-$($file.Name)" /silent
}
Write-Output "Finished compressing all images."
Both scripts open RIOT but they don't automatically compress the image(s).
Is it possible to have it automated?