▲ ▼ Reduce document file size to specific size
Each website have their own maximum size limit for uploading .pdf, .jpg documents e.g. 100KB, 2MB etc. It takes a long time to reduce the size of the document to their size limit because the available tools compress the file size to an arbitrary size.
If the file is compressed to a size over that limit, the file cannot be uploaded and if the file is compressed to a size lesser than the limit it looses quality unnecessarily.
If the compression tool can take the size limit as input from the user and compress the file to that limit then this problem can be addressed.
Voted!
Need karma! Please check contributor guidelines.
Standard compression algorithms have a limit to which the data could be compressed and most tools have profiles for different levels of compression e.g. High, Mid, Low and Since the resulting file size varies depending upon the size of the original data it does result in greater file size or lesser quality for intended action as you have described.
Without making changes to the compression algorithms itself I wonder whether it would be possible to compress data of defined file size, but if different compression algorithms are used to produce document files then the website where we are trying to upload the document should accept that format.