Start with the upload rule
Before opening a compressor or resizer, read the receiving website's instruction. The important parts are file type, maximum file size, exact dimensions, page count, background color, and whether password-protected files are allowed. A PDF that is technically smaller can still fail when the field expects a JPG, and a clear signature can fail when its canvas is the wrong size.