It can be handled manually by using the default option (Selection) while exporting as JPEG (as shown in the below screenshot).
Sorry if I understood your requirement wrongly. Please elabrate your requirement if I am wrong.
Please revert for further assistance if any.
Europe, Middle East and Africa