Home Blog Share your psconf.eu pictures!
 

Share your psconf.eu pictures!

Anyone who attended psconf.eu 2017 and would like to share some of his or her pictures, please do so!

Package Pictures in Batch of ZIPs

First, package your pictures into ZIP files. In order for these ZIP files to not grow into huge files, here is a script that takes all of your pictures and distributes them into ZIP files with 10 pictures each:

# pack 10 pics per ZIP
$groupsize = 10

# ADJUST THIS PATH so it points to your pics:
$pictureFolder = "$HOME\Documents\psconf17\fotos"
$yourName = 'Tobias'

# creates chunks of 10 picture files each:
$files = Get-ChildItem -Path $pictureFolder -Filter *.jpg -File -Recurse |
ForEach-Object -Begin { $c=0; [Collections.ArrayList]$list = @() } -Process {
 $c++
 if ($c % $groupsize)
 {
 $null = $list.Add($_)
 }
 else
 {
 Write-Output @(,$list.Clone())
 $list.Clear()
 }
} -end { 
 Write-Output @(,$list.Clone())
 $list.Clear()
} |
# compresses chunks of 10 pics into individual ZIP files:
ForEach-Object -Begin { $part = 0 } -Process {
 $part++
 $_ | Compress-Archive -DestinationPath "$PictureFolder\pic_$YourName Part_$part.zip" 
}

Use Own Storage Space, and Share Links Only!

Next, upload your ZIP files to your own storage space. We have only limited storage capacity, so please only share LINKS to your ZIP files.w

Finally, log into our slack space at www.powershell.live, and post the link(s) to your ZIP files in channel #pics.

Sharing is caring – many thanks for sharing your pictures!

Tobias

 

 

 

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin  rssrss
The following two tabs change content below.

Tobias

PowerShell Wizard at scriptinternals
I love to create things and master challlenges. That's why I love PowerShell so much. I am a 10+ year Microsoft MVP, have written more than a 100 IT-related books with Microsoft Press and others, and like to expain complex things in a simple and understandable way. I am giving PowerShell trainings throughout Europe and organize the annual German PS Community Conference.