To change the invoice logo in Magento 2, you can follow these steps:

  1. Create a new logo: The logo should be in a format that is compatible with Magento, such as JPEG, PNG, or GIF. It should also be of an appropriate size, such as 200×50 pixels.
  2. Upload the logo to Magento: You can upload the logo to Magento either via the Magento admin panel or using a file transfer protocol (FTP) client. If you use the Magento admin panel, go to Content > Design > Configuration and select the store view you want to modify. Then, click the Edit button for that store view and go to the Header section. Upload your new logo by clicking the Upload button under the Logo Image field.
  3. Clear the cache: After uploading the new logo, clear the cache to ensure that the changes take effect. You can clear the cache from the Magento admin panel by going to System > Cache Management and clicking the Flush Magento Cache button.

Once you have completed these steps, the new logo should be displayed on invoices generated in Magento. Note that you may need to adjust the size of the logo if it appears too large or small on the invoice.