We are looking for a .net SDK that can compress JPG files to a specific file size.
Please let me know if you have any SDK available for the same.
We are looking for a .net SDK that can compress JPG files to a specific file size.
Please let me know if you have any SDK available for the same.
You can use Aspose.Imaging API to compress the JPG file on your end. You can set compression type as well as quality inside JpegOptions class. Please visit the following thread for your reference.
I just want to know whether we can mention the output file size(eg:50 KB) as a parameter like quality.
I regret to share that there is no provision to directly set the desired file size. You can vary the quality parameters and degrade quality to see what file size you obtain but it will vary from file to file.