pdfc icon indicating copy to clipboard operation
pdfc copied to clipboard

Checking ratio of the compression

Open sp0ng3Bob opened this issue 2 years ago • 0 comments

Hi.

PROBLEM:

Sometimes the compression doesn't actually do much and the ratio percentage is negative.

SOLUTION:

I added a simple if to check whether the ratio is negative and if so returning False from the compress function and aborting the end process with an exit code 2.

Cheers, B0b

sp0ng3Bob avatar Mar 28 '23 20:03 sp0ng3Bob