2

I'm a programmer, not a graphic designer. I'm writing a custom View for Android that requires the ability to apply an alpha mask to an image. I want to make it easy for graphic designers (specifically, those who specialize in UI widgets like buttons and icons) to produce media for this software.

Is there any standard or conventional file format for an alpha mask? In other words, if I were to ask a UI designer to give me an alpha mask, what would it look like? The most common example I find on the web is a bitmap with black indicating complete transparency and white indicating complete opacity. Is that a format that graphic designers would be familiar with?

If the answer differs by application, I'm most interested in what would be familiar to a designer using Photoshop.

  • Graphics designers dont usually think about channels thisway. Th GFX crowd in video and 3d graphics whoever do If they do you'd better be able to parse a psd file – joojaa Feb 10 '15 at 20:05
  • @joojaa Even my specialized target audience? (See my edit.) – Kevin Krumwiede Feb 11 '15 at 0:55
  • I dont think so, whenever I asked for a plain alpha mask from a person other than vfx industry i allways got blank stares. Others just tought i wanted a image with alpha. Any common nonlossy image format will do. Altough some people clearly do know of channel manipulation its still rare. The reason why vfx industry would understand you better is because they are all about mass production – joojaa Feb 11 '15 at 8:03
2

For universal use and since the mask is all about transparency, a standard greyscale PNG32 image would be one of the best formats to work properly.

You could use PNG8 if the mask doesn't need to be "soft" in any areas.

Beyond this, one gets into application-specific formats.

| improve this answer | |
0

An alpha mask is just a grayscale image. Yes you have the black and the white, but the interesting part is that you can have any grey to have any level of transparency.

There are some specific points on using a png file, for example small file size and it does not generate compression artifacts like a jpg file. You could also use a tif format or a psd file... But a simple png file will do.

In the case you need transparencies for a logo, yo need to use a losless file. but actually, it can be fun to use any image or photo (from a cell phone for example), that most likley will be full color and a 24 bit compressed jpg.

It would be nice if the aplication informs that the mask:

1) Is not the same size or proportion of the target image, but in general terms you can just strech it to fit it.

2) Is a color image, and it will be converted into grayscale.

3) A warning that a png file with transparencies can not be used. That transparency will be discarded and unpredictable results may occur. (If you put a mask you can just hide the background. If you remove this mask you can either just make it white, or black or reveal the original background)

4) Is a compressed jpg and some artifacts can occur.

5) If an 8 bit file is being used inform that it probably contain dithered patterns.

In general. A png or jpg file would be great.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.