It is currently Sat Jul 20, 2024 5:34 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Semi-Flatten RGB
PostPosted: Sun Jan 27, 2013 6:44 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
I just discovered the semi-flatten filter and wondered if something similar could be made for rgb images, or maybe I've overlooked another filter or technique that does the same.

I just thought this could be incredibly handy when rendering images from a solid colored background.

ie..
1. color pick background
2. color to alpha (picked color)
3. new layer underneath current (picked color)
4. semi-flatten

I understand that any fully transparent areas within the render created from the "color to alpha" filter will need to be filled in manually, but it still seems like a better alternative than some other techniques I've tried.

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


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: Semi-Flatten RGB
PostPosted: Sun Jan 27, 2013 7:34 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
akovia wrote:
I just discovered the semi-flatten filter and wondered if something similar could be made for rgb images, or maybe I've overlooked another filter or technique that does the same.

I just thought this could be incredibly handy when rendering images from a solid colored background.

ie..
1. color pick background
2. color to alpha (picked color)
3. new layer underneath current (picked color)
4. semi-flatten

I understand that any fully transparent areas within the render created from the "color to alpha" filter will need to be filled in manually, but it still seems like a better alternative than some other techniques I've tried.

I don't really understand what problem you are trying to solve. Semi-flatten exists because GIF has no partial transparency, so border pixels that would use partial transparency are created as non transparent but with the right color mix (for the intended background color...). In other formats, either there is partial transparency support, so this isn't needed or there is no transparency at all and this doesn't even make sense.

_________________
Image


Top
 Post subject: Re: Semi-Flatten RGB
PostPosted: Sun Jan 27, 2013 9:25 pm  (#3) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
akovia wrote:
I understand that any fully transparent areas within the render created from the "color to alpha" filter will need to be filled in manually, but it still seems like a better alternative than some other techniques I've tried.
Do not semiflatten an image that you've rendered after getting rid of the color in the bg by using color to alpha if you plan to put a color background behind the rendered image.

If you want the bg colored with a solid color, you can flatten the image rendered and the background will be the color of the BG color in the color tool.

The only time you need to semi-flatten image is if you want to make a gif file and have a transparent background.

You can't have any transparency in a jpg image.

Check my tutorial here about semi-flattening. viewtopic.php?f=10&t=214

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Semi-Flatten RGB
PostPosted: Sun Jan 27, 2013 10:09 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Read your tutorial a couple of months ago. A must know thing, O.


Top
 Post subject: Re: Semi-Flatten RGB
PostPosted: Sun Jan 27, 2013 11:32 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Now I can see why some of my GIF animations looked terrible compared to the PNG animations of the same image I never selected the semi-flatten option because i did not know what it did

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Semi-Flatten RGB
PostPosted: Mon Jan 28, 2013 12:21 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Thanks for the replies.

I don't doubt that I'm missing something obvious, but I'm not sure I explained it properly either. I fully understand that semi-flatten is for the semi transparency problem of a gif file. When I discovered it, I read the manual page of what it does. I was thinking of a different application for the general idea of "Replace partial transparency with current background color".

I'm always looking for quicker ways to render and probably was over simplified in my thinking here. When I hovered over the semi-flatten filter and saw the tooltip "Replace partial transparency with current background color", it made me think I could restore the semi transparent areas in the render with the color that was removed with "color to alpha", without restoring the background as it is now fully transparent.

Unfortunately I didn't give enough thought to the edges. If they contained any of the color I removed, they would be restored with full opacity as well and would give a jagged look. I realized this after trying to manually create the steps by using the "Threshold Alpha" filter.

So I think I jumped the gun a bit and apologize for not thinking it through completely before posting. :oops:

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


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group