Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparent PNGs saved incorrectly #223

Open
jkorchok opened this issue Mar 28, 2023 · 3 comments
Open

Transparent PNGs saved incorrectly #223

jkorchok opened this issue Mar 28, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jkorchok
Copy link

Describe the bug
PNG icons with transparent areas are often (but not always) saved incorrectly. The transparent areas become black.

To Reproduce
Steps to reproduce the behavior:
In Adobe PhotoShop, edit a PNG icon and use the Save for Web feature. Set a single color as the transparent color and save with a new name. Import that PNG to an Office file using the RibbonX Editor. The icon appears normally. Click on the Save button. Close the file and re-open in the RibbonX Editor or in an Office program. The transparent areas are now black. This happens with about 80% of the icons and is not predictable as to which icons will have the transparent areas recolored.

Expected behavior
Icons should be saved as imported.

Screenshots
See icons circled in red: https://www.brandwares.com/images/PNGSaveBug.png

Additional context
Version 1.9.0.1056, under Windows 10.0.19044

@jkorchok jkorchok added the bug Something isn't working label Mar 28, 2023
@Eric51284
Copy link

FWIW, I discovered that the problematic icons could be fixed by opening them in Photoshop, and changing the Image Mode from "Indexed Color" to "RGB Color".

@jkorchok
Copy link
Author

Yes, but then you lose the ability to set a transparent color, which is the reason for saving to indexed color in the first place.

@Eric51284
Copy link

My backgrounds have remained transparent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants