В области графического дизайна , прозрачность относится к степени , в которой материал ниже или сзади данного изображения проходит через фон , но не на переднем плане.
Для большинства людей, которые не являются графическими дизайнерами или профессиональными фотографами, когда они думают, что прозрачность, они думают, что или целое изображение, или часть изображения, являются прозрачными. Хотя оба идей руководствуются подобными мыслями, прозрачность изображения и прозрачность слоя требуют различных подходов к принести.
Прозрачность изображения
Файлы изображений всегда прямоугольные, даже если содержимое не является. Например, если у вас была сделана профессиональная фотография, которую вы хотели бы использовать на своем веб-сайте, если вы разместите эту фотографию где-либо, цвет фона — даже если он белый — все еще окружает вашу голову. Чтобы избавиться от этих цветов, большинство программ для редактирования фотографий поддерживают функцию «экспорт в Интернет», которая позволяет выбирать прозрачный цвет для типов изображений, включая TIFF и PNG . Любой соответствующий цвет на изображении сделан прозрачным.
Сохранение прозрачным цветом работает только в том случае, если фон изображения является сплошным. Если это не так, вам придется использовать более сложную программу управления фотографиями, такую как Adobe Photoshop, чтобы разделить части фотографии на слои, а затем удалить слои для достижения желаемого эффекта.
The best use case for this kind of one-click, save-for-web transparency comes not with photos but with computer-generated objects like logos. A logo rendered in Microsoft Word, for example, may appear with a white background when you save it as an image file. Re-saving it and marking the color white as transparent will make the rest of the logo transparent.
Layer Transparency
When you’re fine-tuning a more complex image, though, sometimes parts of that composite image ought to be transparent. Either a complex background must go away so just a part of the foreground shines through, or different parts of the image include smaller components that overlay it.
That’s where layers come in. Think of an image as having one or more distinct layers stacked on top of one another, like old-school transparency films for overhead projectors. When you stack all these layers, you obtain a composite image. But each layer may be independently edited to achieve the final result.
To work with layers, you’ll need a program that can manage them. The gold standard is Adobe Photoshop, although free, open-source programs like Gimp work as well.
Transparency is not the same thing as opacity. Transparent objects are see-through; opaque images are not. An image that’s been faded — i.e., its opacity is less than 100 percent but more than 0 percent — is translucent. Translucency is controlled by a tool usually called opacity.
Layer Transparency With Gimp
To make a part of an image transparent in Gimp, load that part as a separate layer, add an alpha channel, then select the background:
-
Select the layer from the Layers palette, then click Layer > Transparency > Add Alpha Channel. This step adds an alpha channel, which will serve as the background (i.e., the transparency) for the image.
-
With the layer selected, press U to activate the Fuzzy Select tool, which looks like a wand. Click the color (or click-and-drag an area, if it’s not a uniform color) to select the parts that should be transparent. Gimp shows outlines of what it thinks the Fuzzy Select tool intends to remove; if it’s not right, press Esc and try again. When you’re satisfied that you’ve correctly grabbed everything, press Del to delete what the Fuzzy Select tool picked.
-
Repeat as necessary with the Fuzzy Select tool to fine-tune especially challenging images.
-
Modify the layer (move, resize, etc.) as necessary.
When your image is ready, export it as you normally would.