microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.3k stars 6.55k forks source link

[IMAGE RESIZER] Keep RGB channels intact when there is an Alpha Channel (PNG) #27635

Open nicovdd96 opened 1 year ago

nicovdd96 commented 1 year ago

Description of the new feature / enhancement

I would like an option when I resize to PNG, to keep RGB channels intact when there is an Alpha Channel.

Lets take an exemple : I have an image with a flat grey RGB and an alpha channel with a logo. When I resize it when Power Toys Image Resizer, the alpha channel is intact, but the RGB Channels are broken. Here is a visual of what I mean with a Before => After Comparison. You can see than the RGB has been cropped to the alpha shape Exemple01

Scenario when this would be used?

I work in Video Games Industry, where we need to bulk resize PNG textures with or without alpha channel. Now we are using Photoshop with SuperPNG Plugin to export textures with an Alpha channel without touching at the RGB channels. When we want to resize textures (like 4096x4096 from source to 1024x1024 for our game engine), we need to resize them one by one and its very time consuming. Image Resizer let us do it way more faster when we don't have any alpha in the textures, but it broke them when we have alpha. I did Photoshop Actions using SuperPNG to bulk resize but it would be better to have this feature directly in PowerToys Image Resizer

Supporting information

Photoshop free plugin "SuperPNG" has the option to keep the alpha channel without breaking the RGB channels

crutkas commented 1 year ago

can we get a file to repro this with to have a proper test? /needinfo

nicovdd96 commented 1 year ago

can we get a file to repro this with to have a proper test? /needinfo

I don't know if you can repro this without SuperPNG plugin for Photoshop, but here are some files:

Comparison