Skip to content

lolochristen/TinyImagePS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyImagePS

A powershell module to compress/shrink/tinify images using https://tinypng.com/ and https://tinypng.com/

Usage Exmples

Shrink in-place

Set-TinyImageApiKey $ApiKey # from https://tinypng.com/developers

# replace file
Compress-TinyImage ".\panda.jpg" -Replace  

Shrink and resize

Compress-TinyImage ".\panda.jpg" | Get-TinyImage ".\pandasmall.jpg" -ResizeMode Fit -Width 300 -Height 300 -Force

Compress-TinyImage ".\*.jpg" | Get-TinyImage ".\" -ResizeMode Fit -Width 300 -Height 300 -Force

Install

Install it form the Powershell Gallery:

Install-Module -Name TinyImagePS -AllowPrerelease