mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-06 04:49:15 +01:00
Renamed to convert-image2blurred-frames.ps1 and
convert-image2pixelated-frames.ps1
This commit is contained in:
parent
e035500b54
commit
87f33e284a
@ -1,15 +1,15 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Copy a single image into a series of blurred images
|
Converts an image into blurred frames
|
||||||
.DESCRIPTION
|
.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.
|
Requires ImageMagick 6.
|
||||||
.PARAMETER ImageFile
|
.PARAMETER ImageFile
|
||||||
Specifies the path to the image file
|
Specifies the path to the image file
|
||||||
.PARAMTER TargetDir
|
.PARAMTER TargetDir
|
||||||
Specifies the path to the target folder
|
Specifies the path to the target folder
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./copy-image-blurred C:\photo.jpg C:\Temp
|
PS> ./convert-image2blurred-frames C:\photo.jpg C:\Temp
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -43,7 +43,7 @@ try {
|
|||||||
$x += $increment
|
$x += $increment
|
||||||
}
|
}
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[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
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
@ -1,15 +1,15 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Copy a single image into a series of pixelated images
|
Converts an image into pixelated frames
|
||||||
.DESCRIPTION
|
.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.
|
Requires ImageMagick 6.
|
||||||
.PARAMETER SourceFile
|
.PARAMETER SourceFile
|
||||||
Specifies the path to the image source file
|
Specifies the path to the image source file
|
||||||
.PARAMTER TargetDir
|
.PARAMTER TargetDir
|
||||||
Specifies the path to the target folder
|
Specifies the path to the target folder
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./copy-image-pixelated C:\my_photo.jpg C:\Temp
|
PS> ./convert-image2pixelated-frames C:\my_photo.jpg C:\Temp
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -43,7 +43,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[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
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
Loading…
Reference in New Issue
Block a user