I'm developing software using .Net Framework and .Net 6.
I would like to reduce the weight of images (Jpeg or PNG) of about 2MB in the software I am developing, with as little loss of quality as possible.
I have tried the following code using Magick.net, but it could only reduce the weight to 1.5MB.
Dim fi As New FileInfo("C:\test\sample.jpg") Console.WriteLine("Bytes after: " + fi.Length.ToString) Dim optimizer As New ImageOptimizer() optimizer.Compress(fi) fi.Refresh() Console.WriteLine("Bytes after: " + fi.Length.ToString)
I would like to reduce the file size of my images to about 50% of their original size.
Is there any way to compress the images as much as possible?
I would appreciate it if you could let me know, even if it is a paid library.
(However, we do not intend to use a service that charges by the number of images.)