Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    
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
add comment

migrated from stackoverflow.com May 31 '11 at 14:51

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

1 Answer

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
1  
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.