Windows console app tied to a context menu item to tinify images from within Windows Explorer
Simple Windows Console app that uses the TinyPNG API to compress images from a Windows Explorer context menu item. Install:
- Add your API Key to the
App.config
- Build/deploy the
.exe
to the directory you would like application installed to. e.g.C:\Program Files\TinyfyConsoleContext\TinyfyConsoleContext.exe
- Run the
.exe
with theinstall
argument as an Administrator. e.g.C:\Program Files\TinyfyConsoleContext\TinyfyConsoleContext.exe install
- Ensure you get an install success message, otherwise debug any errors and install again.
Once installed Simply:
- Right-click an image or image selection
- Select the Tinify context menu item
- An [ImageName]-Tinified.[ext] image will be created in the same directory
An Application.log file should be automatically created in the .exe directory with hopefully useful information incase soemthing goes wrong. log will automatically be wiped if it is more than a week old.
DUTYTODOS:
- Verify input is an image
- Allow multiple images at once (Probably thread / async)
- Set up for DI, pull code out into libraries
Application LoggingAdd context menu to image file types only.jpg .png added- Optimise code
Show remaining API Calls count- Check for existing install (Do not duplicate Registry key)