Sifrelon Posted June 24, 2018 Posted June 24, 2018 Hello everyone, this is my first topic on this forum. First of all, I used the search form and did not find any solution to my problem. If I missed it, well I'm sorry... probably used wrong key words. I would like to know if there is a simple and easy way to remove all transparent pixels and make them opaque in an intelligent way. Here are some pictures so you could easily understand what I mean : https://imgur.com/a/zWorqsu On this image (resized by 1000% for better view, real size was 150px). You can clearly see (if not click on imgur direct link) that borders between each color is blurred with what I call transparent pixels. I want to remove/color them all. The result would be something like this : https://imgur.com/UWNUGRu On this image there is only three colors, and that's exactly what I need. I actually did this manually but it's very laborious. I used alternatively magic stick with adjusted % trolerance and fill tool... it takes 10 steps, more or less. Yellowest transparent pixels became strong yellow, brownest transparent pixels became strong brown etc. What I'm looking for is a plugin/tool/solution to go from first image to second image in one click... or at least an easiest way that the manual one i currently use. I said intelligent way because the hypothetic plugin or tool needs to color transparent pixels smartly with one of the two neighboring colors of each border, like I did. In fact this image is a small part of a huge 10k pixels world map where each color is a country and blue is water. If I start doing this manually it will take 1 month, if not more... because there are also extra steps precisely caused by these transparent pixels (I currently isolate each country, make copy/paste of each border etc...). If this simple solution exists, I could convert the entire map in 1 minute ! So better ask now before starting pointless work. Thank you all for reading or answering. Have a nice day. Quote
AndrewDavid Posted June 24, 2018 Posted June 24, 2018 Hi @Sifrelon Welcome to the Forum Sounds like this will solve your issue Without making a selection - adjust transparency to 100% and see if it works to solve your needs. Quote
toe_head2001 Posted June 24, 2018 Posted June 24, 2018 Those are not transparent pixels; they are blended pixels. Therefore, adjusting the opacity will not solve your issue. (I've edited the title of this topic to reflect it's about blending) One way you can reduce the colors in the image with the Selective Palette plugin. Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab
AndrewDavid Posted June 24, 2018 Posted June 24, 2018 (edited) I concur with @toe_head2001 Without downloading the pic I assumed you were dealing with transparency. The plugin of choice for me though would be . It allows you to reduce the image to 3 colors very easily and you do not have to install a whole pack just for 1 plugin. Hope this helps. Took about 10 minutes. Edited June 24, 2018 by AndrewDavid Added Pic Quote
Sifrelon Posted June 24, 2018 Author Posted June 24, 2018 Thank you for your replies. I tested BoltBait's transparency plugin earlier this week but it did not change anything. TR's Color Reducer and Selective Palette are exactly what I needed, espacially Selective Palette. Just tested it on the yellow/brown image and it works perfectly. However TRCR annoyingly change the 3 main colors and in ~15 minutes of test I have not been able to acheive the desired result like you did AndrewDavid. But it's usefull to easily reduce image weight which is also a problem in my project so I keep it. Thank you guys you saved me a lot of time ! Quote
LWChris Posted June 30, 2018 Posted June 30, 2018 If you are not too worried about making the absolutely best possible decision between which eventual color a blended pixel becomes, the method I'd use is: Select the color picker. Select a pixel from the middle of a color plane, say, the yellow one. Select the magic wand selection tool. Select a pixel in the middle of the color plane again. Adjust the Tolerance level, until you feel satisfied with which pixels will become yellow and which should remain for the adjacent colors. Press Backspace to fill all selected pixels with the primary color. You can also use the color separation (Ctrl+Shift+P) for a first reduction, too. You will probably not find a setting that immediately splits the blended edges perfectly, because if you have three colors, you'll have to allow 3 different values for red, green and blue, and therefore allow 9 colors overall, but it's quite a reduction from the original set of possible colors. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.