Leacme ImagineShrink is a cross-platform desktop application able to run on Windows, MacOS, and Linux. It is build using Microsoft .NET platform and Avalonia UI framework.
This application features the ability to bulk reduce the size of .PNG and .JPEG images through lossy compression algorithms.
The desktop application can be compiled into an executable with .NET 3.1 by navigating to Leacme.App.ImagineShrink folder and running:
dotnet publish --configuration Release -p:CopyOutputSymbolsToPublishDirectory=false -p:PublishSingleFile=true -p:LeacmeOutputType=winexe --runtime win-x64
Note: win-x64 can be replaced with other runtimes such as linux-x64, or osx-x64, for more runtimes see RID Catalog
Add one or more images to the list with "Load Images...", select the Output Directory for the optimized images path and click Optimize Images.
The applicatin library can also be build and used separately by navigating to Leacme.Lib.ImagineShrink folder and running dotnet build. This will create a .dll library that can be copied into the directory where your .csproj is located. Be sure as well to add the following line to your .csproj file to point to the location of the library:
<ItemGroup><Reference Include="Leacme.Lib.ImagineShrink.dll"><HintPath>Leacme.Lib.ImagineShrink.dll</HintPath></Reference></ItemGroup>
It can then be added and used within your project with var library = new Leacme.Lib.ImagineShrink.Library();
The author can be contacted via the contact form on their website http://leac.me
View LICENSE.md for more information
