Resize images in batches

Resize JPG, PNG, WebP, and AVIF images in batches by width, height, or percentage while keeping aspect ratios and checking final dimensions first.