-
Notifications
You must be signed in to change notification settings - Fork 49
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
Is it possible to use ResizeMoode = CropScaleMode.Pad and MatteColor = Color.Transparent? #59
Comments
That should work. It doesn't look like I have any test cases for Pad with transparent images, though, so I may have something broken. I'll give it a look in a bit. |
On review, I do actually have test cases for this, and it does work as intended if the source image has transparency. For non-transparent sources, the alpha channel in the It seems reasonable to expect that a transparent or semi-transparent matte color should work when padding an image of any format, so I'm going to go ahead and change that behavior. |
Thanks so much for your support on this @saucecontrol really appreciated you looking into this so quickly |
No problem! Thanks for bringing that to my attention. New release is up with the fix. |
Tested and all works! Thanks again for your time on this. Hugely appreciated |
I'm looking to make a number of PNGs the same size, padding the images either horizontally or vertically.
I thought this was working great with the following code
The issue I am having is that where it has padded the height or width the background isn't transparent and is actually white. Am I doing something wrong, or does this not work how I expect?
Thanks for any support you can provide
The text was updated successfully, but these errors were encountered: