Describe the bug
When product images are png's and have a transparent background the background will be changed to black by @magento/expres-sharp inside packages/pwa-buildpack/node_modules/@magento/express-sharp/lib/transform.js at line 17 format is hardcoded set to jpeg.
When i remove format from the object i get the desired effect: images with transparent backgrounds. You also want to add .png support to packages/pwa-buildpack/lib/Utilities/addImgOptMiddleware.js I know .png's are not the best image format for the web but a lot of merchants use them and we should support it.
Expected behavior
Show images the same way they are uploaded
Screenshots

Please let us know what packages this bug is in regards to:
venia-conceptpwa-buildpackperegrinepwa-devdocsupward-jsupward-specSeems the package still links to the old repo: https://www.npmjs.com/package/@magento/express-sharp
Where is the package hosted?
Looks to me like this is the package magento uses but also in this one the .jpeg seems hardcoded.
https://github.com/pmb0/express-sharp/blob/develop/lib/transform.js
I don't think so. There is no recent change which relates to the last two releases on npmjs.
They forked it and host it under the magento org account.
But still links to the original repo owned by the creator, not any person from the Magento teams.
In terms of the bug i don't think it matters where the repo resides?
In terms of the bug i don't think it matters where the repo resides?
At least if we want to fix it (contributors) ;-)
Would be great if we could contribute to it.
In terms of the bug i don't think it matters where the repo resides?
At least if we want to fix it (contributors) ;-)
Would be great if we could contribute to it.
Agreed.
@zetlen created a PR for this issue see https://github.com/magento-research/express-sharp/pull/1
@Jordaneisenburger Reviewed the PR. Wondering why we can't use URL parameters to override those defaults!
Most helpful comment
@zetlen created a PR for this issue see https://github.com/magento-research/express-sharp/pull/1