Check pixel count before processing and skip files that are already at or below 8MP, avoiding unnecessary re-compression.