How to save 4 bit .bmp file in photoshop

I saved gif file to 4 bit bmp file, but the next time I try doing it I cannot, the photo shop does not support it. If I have to do I have to do it I have to close photoshop and open the application once again to save another gif file to bmp. I need a quick solution because there are 1000's of icon that needs to be saved to 4 bit bmp files. I need help please... Thanks

No, it is not possible.
PNG doesn't support layers.
A few apps stuff their own private data into PNG to hide layer data, but well, it's private undocumented data.

Similar Messages

  • How to write 8-bits BMP file

    Is there any good example for writing 8-bits BMP file?
    Thanks

    hi,
    see http://www.javaworld.com/javatips/jw-javatip60_p.html
    sincerely Michael

  • How to convert a jpeg file into a 1-bit bmp file (2 colors image)

    Hi. I�m having serious problems to convert a jpeg file into a 1-bit bmp file (2 colors image).
    I�m using FileSaver.saveAsBmp(String t) but what i get is a bmp image, but with 16M colors, but what i want is a 2 colors bmp file. A black and white image.
    Does anybody know how to do this? I�m really getting crazy with ths problem.
    Thanks in advance

    Hi opalo,
    this code may help you...
    import java.awt.*;
    import java.io.*;
    import java.awt.image.*;
    import javax.imageio.ImageIO;
    class Write1 extends Component {
    //--- Private constants
    private final static int BITMAPFILEHEADER_SIZE = 14;
    private final static int BITMAPINFOHEADER_SIZE = 40;
    //--- Private variable declaration
    //--- Bitmap file header
    private byte bitmapFileHeader [] = new byte [14];
    private byte bfType [] = {'B', 'M'};
    private int bfSize = 0;
    private int bfReserved1 = 0;
    private int bfReserved2 = 0;
    private int bfOffBits = BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE;
    //--- Bitmap info header
    private byte bitmapInfoHeader [] = new byte [40];
    private int biSize = BITMAPINFOHEADER_SIZE;
    private int biWidth = 50;
    private int biHeight = 70;
    private int biPlanes = 1;
    //private int biBitCount = 24;
    private int biBitCount = 1;
    private int biCompression = 0;
    private int biSizeImage = 0x030000;
    private int biXPelsPerMeter = 0x0;
    private int biYPelsPerMeter = 0x0;
    private int biClrUsed = 0;
    private int biClrImportant = 0;
    //--- Bitmap raw data
    private int bitmap [];
    //--- File section
    private FileOutputStream fo;
    //--- Default constructor
    public Write1() {
    public void saveBitmap (String parFilename, Image parImage, int
    parWidth, int parHeight) {
    try {
    fo = new FileOutputStream (parFilename);
    save (parImage, parWidth, parHeight);
    fo.close ();
    catch (Exception saveEx) {
    saveEx.printStackTrace ();
    * The saveMethod is the main method of the process. This method
    * will call the convertImage method to convert the memory image to
    * a byte array; method writeBitmapFileHeader creates and writes
    * the bitmap file header; writeBitmapInfoHeader creates the
    * information header; and writeBitmap writes the image.
    private void save (Image parImage, int parWidth, int parHeight) {
    try {
    convertImage (parImage, parWidth, parHeight);
    writeBitmapFileHeader ();
    writeBitmapInfoHeader ();
    writeBitmap ();
    catch (Exception saveEx) {
    saveEx.printStackTrace ();
    * convertImage converts the memory image to the bitmap format (BRG).
    * It also computes some information for the bitmap info header.
    private boolean convertImage (Image parImage, int parWidth, int parHeight) {
    int pad;
    bitmap = new int [parWidth * parHeight];
    PixelGrabber pg = new PixelGrabber (parImage, 0, 0, parWidth, parHeight,
    bitmap, 0, parWidth);
    try {
    pg.grabPixels ();
    catch (InterruptedException e) {
    e.printStackTrace ();
    return (false);
    pad = (4 - ((parWidth * 3) % 4)) * parHeight;
    biSizeImage = ((parWidth * parHeight) * 3) + pad;
    bfSize = biSizeImage + BITMAPFILEHEADER_SIZE +
    BITMAPINFOHEADER_SIZE;
    biWidth = parWidth;
    biHeight = parHeight;
    return (true);
    * writeBitmap converts the image returned from the pixel grabber to
    * the format required. Remember: scan lines are inverted in
    * a bitmap file!
    * Each scan line must be padded to an even 4-byte boundary.
    private void writeBitmap () {
    int size;
    int value;
    int j;
    int i;
    int rowCount;
    int rowIndex;
    int lastRowIndex;
    int pad;
    int padCount;
    byte rgb [] = new byte [3];
    size = (biWidth * biHeight) - 1;
    pad = 4 - ((biWidth * 3) % 4);
    if (pad == 4) // <==== Bug correction
    pad = 0; // <==== Bug correction
    rowCount = 1;
    padCount = 0;
    rowIndex = size - biWidth;
    lastRowIndex = rowIndex;
    try {
    for (j = 0; j < size; j++) {
    value = bitmap [rowIndex];
    rgb [0] = (byte) (value & 0xFF);
    rgb [1] = (byte) ((value >> 8) & 0xFF);
    rgb [2] = (byte) ((value >> 16) & 0xFF);
    fo.write (rgb);
    if (rowCount == biWidth) {
    padCount += pad;
    for (i = 1; i <= pad; i++) {
    fo.write (0x00);
    int b = 1200;
    fo.write(b);
    rowCount = 1;
    rowIndex = lastRowIndex - biWidth;
    lastRowIndex = rowIndex;
    else
    rowCount++;
    rowIndex++;
    //--- Update the size of the file
    bfSize += padCount - pad;
    biSizeImage += padCount - pad;
    catch (Exception wb) {
    wb.printStackTrace ();
    * writeBitmapFileHeader writes the bitmap file header to the file.
    private void writeBitmapFileHeader () {
    try {
    fo.write (bfType);
    fo.write (intToDWord (bfSize));
    fo.write (intToWord (bfReserved1));
    fo.write (intToWord (bfReserved2));
    fo.write (intToDWord (bfOffBits));
    catch (Exception wbfh) {
    wbfh.printStackTrace ();
    * writeBitmapInfoHeader writes the bitmap information header
    * to the file.
    private void writeBitmapInfoHeader () {
    try {
    fo.write (intToDWord (biSize));
    fo.write (intToDWord (biWidth));
    fo.write (intToDWord (biHeight));
    fo.write (intToWord (biPlanes));
    fo.write (intToWord (biBitCount));
    fo.write (intToDWord (biCompression));
    fo.write (intToDWord (biSizeImage));
    fo.write (intToDWord (biXPelsPerMeter));
    fo.write (intToDWord (biYPelsPerMeter));
    fo.write (intToDWord (biClrUsed));
    fo.write (intToDWord (biClrImportant));
    // DataOutputStream temp = new DataOutputStream(fo);
    // int m = 32;
    // temp.writeInt(m);
    catch (Exception wbih) {
    wbih.printStackTrace ();
    * intToWord converts an int to a word, where the return
    * value is stored in a 2-byte array.
    private byte [] intToWord (int parValue) {
    byte retValue [] = new byte [2];
    retValue [0] = (byte) (parValue & 0x00FF);
    retValue [1] = (byte) ((parValue >> 8) & 0x00FF);
    return (retValue);
    * intToDWord converts an int to a double word, where the return
    * value is stored in a 4-byte array.
    private byte [] intToDWord (int parValue) {
    byte retValue [] = new byte [4];
    retValue [0] = (byte) (parValue & 0x00FF);
    retValue [1] = (byte) ((parValue >> 8) & 0x000000FF);
    retValue [2] = (byte) ((parValue >> 16) & 0x000000FF);
    retValue [3] = (byte) ((parValue >> 24) & 0x000000FF);
    return (retValue);
    class Writebmp
         public static void main(String args[])
              //Image img = Toolkit.getDefaultToolkit().getImage("jatin.bmp");
              try
              File filename = new File("jatin_test.bmp");
              BufferedImage image = ImageIO.read(filename);
              Graphics graphics = image.getGraphics();
              graphics.drawString("&#2313;&#2332;&#2327;&#2352;",10,30);
              Write1 w = new Write1();
              Image img = Toolkit.getDefaultToolkit().getImage("jatin_test.bmp");
              w.saveBitmap("jatin_test.bmp",img,200,200);
              catch (IOException e)
    System.err.println ("Unable to write to file");
    System.exit(-1);
    }

  • How to display a 16-bit bmp file

    Hi,
    i have a 16 bit BMP file available in a byte[] along with the BITMAPINFO information. how to display this in Java.
    i was able to find the code for displaying the 8-bit/24-bit BMP file in Javaworld :Java Tip 43 .
    Pls provide pointers to sample/example code if available.

    Try JAI it supports 8, 16, and 32 bit image data types.
    http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/index.html

  • Convert a jpeg file into a 1-bit bmp file (2 colors image).

    Hi. I�m having serious problems to convert a jpeg file into a 1-bit bmp file (2 colors image).
    First, i,ve tried to get a 1-bit jpeg. But i think this is not possible, so what i have to do is to get a 1-bit bpm file.
    I�m using FileSaver.saveAsBmp(String destination) and what i get is a bmp image, but with 16M colors, but what i want is a 2 colors bmp file. A black and white image.
    Does anybody know how to do this? I�m really getting crazy with ths problem.
    Thanks in advance

    You better read this at
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=733738

  • How to save a text or file in *doc from Pages?

    How to save a text or file in *doc?

    Igor,
    Use either File > Export, or Share > Export, and choose the Word option.
    Jerry

  • Drag an image to the desktop saves as a bmp file

    dragging an image from a webpage to Windows Explorer or compliant program (xplorer2 or Zoner, or FastStone Image or desktop etc) saves as a .bmp file (mostly!). Invariably *.bmp files are large files and since the original format would be jpg or png I have to convert back to these formats.

    It’s the single worst feature of Firefox Mozilla.
    What the point of having private browsing if this is going on.
    You find the files in (user name)/appdata/local/temp
    its a hidden folder. when i looked i 3gigs of bmp files
    that not cool at all!! gerrrrrrrrrrrrrrr

  • How to save downloaded update installer files

    How can I locate a downloaded update installer file so I can save it and use to install on another mac without having to download all over again?  Today I downloaded updates for OS X and also for Office 2011.  The first is over 2GB and the second around 300MB.  I have installed on my Macbook Pro, but I have another 3 units to update. I live in a 3rd world country with very slow internet and it takes me days to download such files.

    Grateful for you having replied but for some reason I seem unable to open your message "Re: How to save downloaded update installer files".  Waikato99

  • Welcome window problem.  appears every time i save and close a file of photoshop

    How to fix a bug regarding welcome window. this window appears every time i save and close a file of photoshop, its started after the last update 2014.2.0

    See this document: Troubleshoot Welcome Screen in Photoshop
    Scroll all the way down to the bottom. There's a check box "Don't Show Welcome Screen Again"
    You can relaunch the screen at a later date by selecting Help>Welcome Screen...
    ~ Arpit

  • How do I open an illustrator file in photoshop with layers

    How do I open an illustrator file in photoshop with layers

    No I don't. Thanks for your reply. It had come from someone as a Ai file and I need to access the layers
    Sent from my iPhone

  • How do I open my raw files in photoshop elements 12 editor-..my files convert to jpegs

    How do I open my raw files in photoshop elements 12 editor.  I have a MacBook. I use the iPhoto and move the files I want to work on into elements, but it converts the raw files into jpeg files.
    Thanks for your help!!!

    Are you opening the image directly from iPhoto? Right click & choose Edit in >> Photoshop Elements Editor
    This link is old but gives information on set up. It relates to PSE11 but the principle is the same. In iPhoto prefs you navigate to the editor application in the support files folder. Start from Finder by holding down the Alt (Optn key) and choosing Library.
    http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-iphoto-mac-os.html

  • How do I convert a pdf file to photoshop?

    how do I convert a pdf file to photoshop?

    unless you understand what you're doing and why, opening .pdf in Photoshop is a very risky move
    because any vector objects, including fonts, will be pixelized (rastered at the chosen document ppi)
    this really sucks if the designer delivered a professionally packaged PDF with vector elements because the vector will not print vector sharp
    for example
    a moron at a print shop drags PDF business cards or posters into Photoshop and prints pixelized vector objects -- when you ask why the vector didn't print sharp -- they are clueless
    you also may hit profile issues that change the designer's color
    there must be 50 ways to ruin a project (and 25 of them are downstream)...

  • Looking for Help on How To Save Video as Divx File

    Can someone help? I have iMoive 4.0.1 and I need to save video clips as a Divx file. I go to the "share" button and try to compress the clip for Quicktime and choose expert settings. This gives me a list of options including Divx AVI. When I choose this option, the file is turned into an .avi file not a .divx file. ANd there is no other Divx choice available. I have talked to another iMovie user (v4.0.1., too) and--the odd thing--on his option list he has Divx (not Divx AVI). So I need assistance in either finding another way to do this with my existing 4.0.1. or finding a plug-in that will allow me to save as a Divx file. Or--if no one can tell me how to do this--let me ask if anyone out there knows whether iMovie HD 5.0 or iMovie 6.0 would allow me to do what I need to do. Thanks.
    PowerBook G4   Mac OS X (10.3.9)  

    Divx isn't a standard option, so you have downloaded some third party support for Divx. Try the latest version.

  • How to save pictures to a file outside of IPHOTO

    How you do you save photos to another file that isn't in Iphoto? I was trying to upload some photos to a webhosting site and I had the hardest time trying to find the library they were in. I ended up dragging the all to the desktop and renaming them.
    Is there an easier way to this? I did see the export feature..is that what I use and how do I do multiple photos?
    Thanks
    CC

    Not sure if this is what you're looking for but lets see if I cannot give you some idea.
    If you got to \User\yourname\Pictures\iPhoto Library\ Right click iPhoto Library and select Show Package Contents.
    In there, you will probably see 2 folders titled "Modified" and "Original"
    In those folders, you will see your pictures categorized into Years.
    Good luck. Hope thats what you were looking for.

  • How to save "sites" in separate files?

    I am working with three different sites (work, personal, etc.) and would like to save them as separate files, not as part of a single domain package. Is this possible without having to create separate user identities?
    Also, having saved two sites in iWeb, they are put in the domain.sites packages. Looking into the package I can’t distinguish which files belong to which sites. Any ideas,
    Cheers,
    Reb

    You could try this: create a site. Move the domain.site file to a folder named for the site. Start iWeb and create another site. Repeat. When you want to work on a specific site move its domain.site file into the iWeb application support file.
    Yep, a total pain in the neck. However it is either that or use a different user account for each site. My own experimentation has determined that as the total domain.site folder grows the save time grows tremendously.
    It's likely that before long someone will write a little utility to do this automatically.

Maybe you are looking for

  • Switching to Win 7 kills High Quality Display Performance option?

    I recently switched from Windows XP to Windows 7. I am running CS2. The files I work with contain placed PDF pages in InDesign. I have verified all links are good. The placed PDF pages contain some pages that are scans, and some containing live text.

  • Changing Sync options on Windows XP machine

    When I first synced my iPhone, Windows XP popped up a wizard that asked what program I wanted to associate with the photos. I ignored it the first few times and then mistakenly hit Microsoft Word once. So, when I sync my phone it dumps all my picture

  • Transferring from iPod Classic to Second Hard Drive

    My external hard drive crashed last week and I have songs on my iPod Classic.   Can I transfer these songs to another hard drive easily? I'm afraid if I plug it in all my files will be wiped out.

  • Updated Ipod software 1.1

    Hey there, I am on the road for work for a period of time and do not have access to my full library of music which is on my PC at home. ( I have added some more tunes while travelling by manual update) If I install the new software update (ipod 1.1)o

  • Best practices for multiple developers?

    I am currently working on a fairly large application. At this time, I have been the only developer on it, so it hasn't been a problem in keeping all of my files up to date or anything. However, I know in the future some new blood will be brought in t