Define the delivery contract
Start with the receiving layout, not with a compression slider. Record the target pixel box, whether aspect ratio must be preserved, whether transparency is required, the allowed output format, and a size or quality threshold. Choose a representative sample that includes portrait and landscape images, transparent graphics, tight borders, and different levels of detail.
Test orientation and trimming first
Use image-auto-orient when EXIF metadata may change how a source is displayed. Compare image-trim, image-trim-whitespace, and image-trim-tolerance on the sample: the correct choice depends on whether the margin is truly blank or merely close to the background. Once the rule is defensible, apply it with batch-image-trim and check for subject clipping.
Resize, compress, and review
Use batch-resize to implement the declared fit, scale, or crop policy. Then use batch-compress with a quality or size target that reflects the actual delivery constraint. Inspect representative outputs after compression for blur, ringing, banding, transparency changes, and inconsistent framing. Record rejected files and reconcile the final count and filenames with the input set before delivery.