Automatically Match Exposure for non-RAW files

Hello i’d like to automatically match exposure of PNG, where there’s no extra data except for the pixels,
how can I automatically match their exposure?

Thanks