Replies: 1 comment 6 replies
-
Do you see the same behavior with the latest version? Version 2.1.9 is fairly old at this point, and only the v3 branch is receiving bugfixes (with some exceptions). |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to apply transparency to an image by using the following code:
Basically, what I'm trying to achieve is to modify the alpha channel of all image's pixels.
The problem is that the mutation has no effect for some images.
Image.PixelType.AlphaRepresentation
returnsnull
even for images in which the Opacity mutation works as expected. If I don't specify pixel format and use the non-genericImage.Load
then the loaded Image has a 24 bit pixel format - I'm just guessing if this might be a clue to the problem. This is the image that is causing the problem:sample_640×426.zip
I need this to work for any (incoming) image of any supported image format. How do I properly make images semi-transparency - for any type of image?
I'm using ImageSharp v2.1.9.
Many thanks,
Jure
Beta Was this translation helpful? Give feedback.
All reactions