Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have .png image which represents relief shadows. I need to save it in Photoshop 1-bit .png. Can someone help me, please?

share|improve this question

migrated from May 31 '11 at 14:51

This question came from our site for professional and enthusiast programmers.

Why MUST it be 1 bit. Most packages are going to want to round it up to some hexadecimal boundary. Your not really going to save any time or storage as with modern drives, a one bit file will still occupy 16 kbytes of disk space. Reading from this file will be min 32 bits read, probably more as disk reads are buffered by the OS. – kingchris May 30 '11 at 19:17
My proffesor asked me to save it that way, it is not my wish :) – boofighter May 30 '11 at 19:30

Do you mean 1-bit as in black & white or single color with an alpha channel?

Just about any imaging app can do both - an image converted to black & white in M$ Paint, is essentially a 1-bit image. In PhotoShop, you can create a regular 8-bit image, File->Save for web, set it to PNG-8, transparency ticked, then set the number of "colors" to 2.

It would be the same as the black & white image, but a color (yes, black counts) & alpha channel (transparency).

share|improve this answer
i thought as black&white. thank you. – boofighter May 30 '11 at 19:37
You're welcome - I've had to do the same thing for a bump map in a game (b&w), then again for a texture that represented randomly generated dust and smoke (color & alpha). Probably not "exactly" what your intended application is, but still a necessary evil at the time. – tahwos May 30 '11 at 19:45

You must log in to answer this question.