From 87f33e284a97ef4f3bf411894d16964441555991 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 6 Mar 2023 20:45:22 +0100 Subject: [PATCH] Renamed to convert-image2blurred-frames.ps1 and convert-image2pixelated-frames.ps1 --- ...image-blurred.ps1 => convert-image2blurred-frames.ps1} | 8 ++++---- ...e-pixelated.ps1 => convert-image2pixelated-frames.ps1} | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) rename Scripts/{copy-image-blurred.ps1 => convert-image2blurred-frames.ps1} (85%) rename Scripts/{copy-image-pixelated.ps1 => convert-image2pixelated-frames.ps1} (83%) diff --git a/Scripts/copy-image-blurred.ps1 b/Scripts/convert-image2blurred-frames.ps1 similarity index 85% rename from Scripts/copy-image-blurred.ps1 rename to Scripts/convert-image2blurred-frames.ps1 index 7464c66d..084e5aa0 100755 --- a/Scripts/copy-image-blurred.ps1 +++ b/Scripts/convert-image2blurred-frames.ps1 @@ -1,15 +1,15 @@ <# .SYNOPSIS - Copy a single image into a series of blurred images + Converts an image into blurred frames .DESCRIPTION - This PowerShell script copies a single image file into a series of blurred images in a target dir. + This PowerShell script converts a single image file into a series of blurred frames in a target dir. Requires ImageMagick 6. .PARAMETER ImageFile Specifies the path to the image file .PARAMTER TargetDir Specifies the path to the target folder .EXAMPLE - PS> ./copy-image-blurred C:\photo.jpg C:\Temp + PS> ./convert-image2blurred-frames C:\photo.jpg C:\Temp .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -43,7 +43,7 @@ try { $x += $increment } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✅ copied image $ImageFile to $Frames frames in 📂$TargetDir in $Elapsed sec." + "✅ converted image $ImageFile to $Frames frames in 📂$TargetDir in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" diff --git a/Scripts/copy-image-pixelated.ps1 b/Scripts/convert-image2pixelated-frames.ps1 similarity index 83% rename from Scripts/copy-image-pixelated.ps1 rename to Scripts/convert-image2pixelated-frames.ps1 index c38bc33e..26de1372 100755 --- a/Scripts/copy-image-pixelated.ps1 +++ b/Scripts/convert-image2pixelated-frames.ps1 @@ -1,15 +1,15 @@ <# .SYNOPSIS - Copy a single image into a series of pixelated images + Converts an image into pixelated frames .DESCRIPTION - This PowerShell script copies a single image file into a series of pixelated images in a target dir. + This PowerShell script converts a single image file into a series of pixelated frames in a target dir. Requires ImageMagick 6. .PARAMETER SourceFile Specifies the path to the image source file .PARAMTER TargetDir Specifies the path to the target folder .EXAMPLE - PS> ./copy-image-pixelated C:\my_photo.jpg C:\Temp + PS> ./convert-image2pixelated-frames C:\my_photo.jpg C:\Temp .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -43,7 +43,7 @@ try { } [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✅ copied image $SourceFile to 300 pixelated frames in 📂$TargetDir in $Elapsed sec." + "✅ converted image $SourceFile to 300 pixelated frames in 📂$TargetDir in $Elapsed sec." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"