After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309762 - Request "Remove alpha channel" menu item
Request "Remove alpha channel" menu item
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
git master
Other All
: Normal enhancement
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-07-07 22:57 UTC by Akkana Peck
Modified: 2005-08-07 16:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Akkana Peck 2005-07-07 22:57:34 UTC
(Filed at Mitch's suggestion after an IRC discussion.)

It's easy to add an alpha channel to the bottom layer in the layer stack, with a
menu item in the layers dialog. But there's no easy way to remove alpha once
it's there. It would be great if this item could be a toggle.

Why? Here's one case: select the sky out of a photograph, using fuzzy or color
select. It's likely feathered at the bottom. Now cut&paste the sky, or just
Float it, and make it a new layer. The combination of the foreground layer plus
the sky layer leaves transparent areas in the image, since alpha is
multiplicative and not additive. Sure, there are workarounds, but removing the
alpha channel on the bottom layer would be simpler than the workarounds.
Comment 1 weskaggs 2005-07-08 15:06:54 UTC
My intuitive expectation, when I first looked at the menus, was that the
Semi-flatten command would do this, by "flatten"-ing the active layer and the
layers below it.  Instead, it does a sort of threshold-alpha thing that is not
easily discoverable and probably not that useful for most people.
Comment 2 Sven Neumann 2005-07-08 16:17:25 UTC
Semiflatten is useful when producing images in the GIF format. It doesn't make
much sense for anything else. Perhaps it should be moved to a Web menu or something.
Comment 3 Michael Schumacher 2005-07-08 22:34:41 UTC
This is related to bug 170608, isn't it?
Comment 4 Sven Neumann 2005-07-21 14:51:35 UTC
I don't see how this is related. But that is probably due to the fact that I
don't really understand bug #170608 and that I think that it should be closed as
WONTFIX.
Comment 5 Sven Neumann 2005-07-26 14:30:04 UTC
Should be easy enough to add even for someone who doesn't know much about the
GIMP code.  Adding the gnome-love keyword.
Comment 6 Michael Natterer 2005-08-07 16:39:14 UTC
Fixed in CVS:

2005-08-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.[ch] (gimp_layer_flatten): new function.

	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]
	* app/widgets/gimphelp-ids.h
	* menus/image-menu.xml.in
	* menus/layers-menu.xml: added "Remove Alpha Channel" action,
	action callback, help ID and menu items. Fixes bug #309762.