Convert Image to JPG Core Goal - Convert one local image or a directory tree of local images into . - Write JPG DPI metadata as by default or a caller-provided value. - Preserve relative directory structure when the input path is a directory. Required Tools - Use . - Rely only on Python standard library modules. Do not install Python packages for this skill. - Prefer when it is installed. - Fall back to macOS when is unavailable. - Stop and report the missing dependency when neither backend exists. Quick Start 1. Convert one file to a specific JPG path: 2. Convert a directory recursively with…