Sign in to follow this  
Illnab1024

Alpha Mask Import Plugin (2.0)

Recommended Posts

41 minutes ago, The Wayward Wolf said:

With the latest PDN update (4.2), this plugin no longer works

 

Seems to work fine for me. What issue are you seeing specifically?

Share this post


Link to post
Share on other sites
9 minutes ago, The Wayward Wolf said:

... trying to mask an icon to a gradient ...

 

Are you using an Alpha Gradient or a Color Gradient?

Can you post your gradient image?

Share this post


Link to post
Share on other sites

See, that's your problem right there.

 

None of the alpha mask plugins are designed to work with color gradients.  It is best to work with black and white gradients.

 

You could try the following plugin, assuming you have my plugin pack installed:

 

Effects > Object > Paste Alpha

  • Like 1

Share this post


Link to post
Share on other sites
13 hours ago, BoltBait said:

Effects > Object > Paste Alpha

 

Thanks BoltBait.  That helped me out too.  Works a charm +1 owed

The most recent update has made Alpha Mask jaggier for some reason.  

Share this post


Link to post
Share on other sites
8 minutes ago, vaaski said:

can confirm that it seems broken in 4.2

 

"confirm" and "seems" are working against each other here.

 

9 minutes ago, vaaski said:

should I upload a sample file?

 

You mean the image you're using for a mask? Sure, if you think it will help.

Share this post


Link to post
Share on other sites
On 7/22/2019 at 8:53 PM, toe_head2001 said:

 

"confirm" and "seems" are working against each other here.

 

 

You mean the image you're using for a mask? Sure, if you think it will help.

 

Well I confirm that something is not working and it seems like it isn't my fault ;)

Here is an Imgur album showing my problem and here is the .pdn file for it.

 

I hope someone can reproduce it, I'd hate to downgrade paint.net. I really use alphamask a lot and would be more than happy to give a little tip over paypal if someone can resolve the issue. Also if you need any more system info or something I'm happy to help.

Share this post


Link to post
Share on other sites

@vaaski There is nothing wrong with Alpha Mask. The problem is on your side. The left side of the layer you copied to the clipboard has something. You can check it by using the color picker. :) 

  • Upvote 1

Share this post


Link to post
Share on other sites
7 hours ago, vaaski said:

 

Well I confirm that something is not working and it seems like it isn't my fault

 

Your problem is actually simple as you did the step halfway.  Here is a rule of thumb: black "erase" while white "keep." 

 

Go to @BoltBait plugin pack and install Switch Alpha to Gray, then watch the video below.  

 

 

Edited by TrevorOutlaw

Share this post


Link to post
Share on other sites

I appreciate the effort you guys are going through to help me and I really don't want to sound rude but I still think that there is a bug.
I've made a video to better show it:
 

 

I am 98% sure that this isn't the expected behavior, but please correct me if I'm wrong. I could also try an older version of Paint.net if you want.
Thanks again for all the help.

Share this post


Link to post
Share on other sites

Hello @vaaski,

I have looked into this, and yes, a change did happen in v4.2 that affects this plugin.

 

This plugin uses a programming function from Paint.NET called Surface.CopyFromBitmap().

In older version of Paint.NET under certain circumstances, all transparent pixels were incorrectly converted to Transparent White (RGBA value of 255, 255, 255, 0). This programming function was corrected in Paint.NET v4.2, and transparent pixels now retain their RGB values.

 

The Alpha Mask plugin relied on this incorrect behavior. That is, it assumed that if a pixel is transparent, then it will be Transparent White.

 

As @Eli pointed out, you have Transparent Black on the left and top edges of your mask image. To correct this, you can use the Transparent to Transparent White plugin to ensure all Transparent pixels are Transparent White.

Share this post


Link to post
Share on other sites

...or, you could simply switch to a plugin in my pack called Effects > Object > Paste Alpha...

  • Upvote 1

Share this post


Link to post
Share on other sites

Alright thanks again for everything, @BoltBait's Paste Alpha seems to do the thing. I'm glad there was some change in 4.2 and it wasn't just me going crazy.

I wish all you fine folks a wonderful day.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this