GIMP: Transparente Pixel nach 8-Bit wandeln

Donnerstag, 11.9.2014, 14:29 > daMax

Wieder was gelernt: wer in die Verlegenheit kommt, in GIMP ein GIF erstellen zu müssen, der hat schnell das Problem, dass GIMP halbtransparente Pixel die nicht "mal so eben" nach 8 Bit Farbtiefe umwandeln kann. Statt dessen werden die immer nach volldeckend gewandelt und das Ergebnis sieht dementsprechend furchtbar aus. Es gibt aber ein gutes Workaround namens "Semi-Flatten" und die Anleitung dazu gibt es hier.

The Semi-flatten filter helps those in need of a solution to anti-aliasing indexed images with transparency. The GIF indexed format supports complete transparency (0 or 255 alpha value), but not semi-transparency (1 - 254): semi-transparent pixels will be transformed to no transparency or complete transparency, ruining anti-aliasing you applied to the logo you want to put onto your Web page.

Before applying the filter, it's essential that you should know the background color of your Web page. Use the color-picker to determine the exact color which pops up as the Foreground color of the Toolbox. Invert FG/BG colors so that BG color is the same as Web background color.

Semi-flatten process will combine FG color to layer (logo) color, proportionally to corresponding alpha values, and will rebuild correct anti-aliasing. Completely transparent pixels will not take the color. Very transparent pixels will take a few color and weakly transparent will take much color.