It is currently Sat Sep 26, 2026 6:41 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: color to alpha
PostPosted: Wed May 07, 2014 4:42 pm  (#1) 
Offline
GimpChat Member

Joined: Nov 09, 2012
Posts: 134
GIMP Version: 2.8.10
Operating System: Windows
GIMP Experience: Beginner Level



So it works for the most part, until i save it out as a .png. it will MOSTLY be transparent but when i im[port it into something like scribus, you can see a square around the image. drives me crazy. its not completely noticeable, but its there. haha..

please help me out. thanks. this is for a professional flyer.

EDIT
The color that gimp picked to make transparent was white. hex = ffffff


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: color to alpha
PostPosted: Wed May 07, 2014 4:51 pm  (#2) 
Offline
GimpChat Member

Joined: Nov 09, 2012
Posts: 134
i found a work around for now but i would like to get it fixed. If after the color to alpha, i do a alpha to selection, copy it and paste it onto a new transparent layer, it works fine, but for some reason the transparent layer after i do color to alpha LOOKS transparent in gimp but it is not fully transparent in other programs


Top
 Post subject: Re: color to alpha
PostPosted: Wed May 07, 2014 5:53 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
When I do that I end up with a semi transparent layer, so to fix that, I make a transparent layer under that layer and paint inside the image with white, then I merge down.
You can go alpha to selection so you don't get white outside the selection.

_________________
Image


Top
 Post subject: Re: color to alpha
PostPosted: Wed May 07, 2014 6:20 pm  (#4) 
Offline
GimpChat Member

Joined: Nov 09, 2012
Posts: 134
So why is it semi transparent for us when we do that? Is it a bug?

thanks


Top
 Post subject: Re: color to alpha
PostPosted: Thu May 08, 2014 6:31 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Color to alpha works. If you get something left around the image, it's because the original color wasn't the one you thought (did you use the color picker?) or wasn't completely uniform. If the original image is a JPEG, even at high quality, there are faint JPEG artifacts near sharp edges which aren't completely white so C2A won't make these completely transparent.

It always useful to check the results against a dark or light background.

In many cases C2A is only important on the edge pixels so:

1) make a fuzzy select on the background
2) grow the selection by 2 pixels so that it includes the edges
3) apply C2A
4) shrink the selection by 4 pixels (ie leave a margin of 2px around the subject)
5) [delete] for a clean backrground.

_________________
Image


Top
 Post subject: Re: color to alpha
PostPosted: Sun May 11, 2014 6:37 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
I am checking transparency on images everyday to moderate them for the site I admin for. I made this little script to make things easier for me. Maybe you can get some use out of it.
It will create a layer group of 5 layers with the following colors and put them at the bottom of your image.

FFFFFF
000000
5C5C5C
00FF00
FF0000

If you don't see any stray pixels against these colors, you are probably pretty safe.
There are of course exacting ways to do this as well, but is usually more trouble than it's worth.

Lastly, another trick I use to remove stray pixels is to use the curves tool and set the channel to alpha. Moving the bottom node to the right will start to fade away anything that isn't full transparency. Inversely, moving the top node to the left will increase the opaqueness. Works pretty good to render hair when it is against a solid contrasting background after a color to alpha.


Attachments:
alpha-check.scm.zip [735 Bytes]
Downloaded 117 times

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Last edited by akovia on Sun May 11, 2014 7:27 pm, edited 1 time in total.
Top
 Post subject: Re: color to alpha
PostPosted: Sun May 11, 2014 7:03 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you akovia,

_________________
Image


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group