Hi @Anonymous,
Could you provide the specific details of your app?
It seems that you want to change the format of the image uploaded by the user.
I did the test on my side, instead of using the PowerApps button, I used the button inside Flow directly, asking the user to select a local file.
The file content is also passed as contentBytes.

If you can get the contents of the file and the name of the file, you could try changing the extension of the file when configuring Send an email-Attachment.
If you can get the file name with extension, you could first remove the file's extension, and then use the concat() function to add the ".png/.jpeg".
To remove extensions, you could refer to such an expression:
replace(‘filename’,concat('.',last(split(‘filename’,'.'))),'')
The configuration of Send an email is as below:

Please take a try if it helps.
Best Regards,
Barry