To Convert GIF to BMP

Hello,
Plz can anyone tell me how do i programatically convert GIF image to BITMAP image.
Thanks,
Rathish
Moderator message: not related to ABAP development.
locked by: Thomas Zloch on Aug 12, 2010 12:04 AM

Hi,
Firstly why you want to convert the GIF to BITMAP pragramatically. If the requirement is to display the Image in the Forms then just convert the GIF image to BITMAP using Paint (Open the image in Paint and then save as BITMAP) and then upload BITMAP image  in SAP and then use the same in the forms.
Regards,
Shakeel.

Similar Messages

  • Java Code to Convert GIF to BMP

    Hi,
    Could anyone please tell me the Java Code to convert the GIF image to BMP image.
    Thanks,
    Rathish

    Here is a sample code for reading an Excel file. It uses JExcel API:
    package com.quicklyjava;
    import jxl.*;
    import jxl.read.biff.BiffException;
    import java.io.File;
    import java.io.IOException;
    public class JavaExcelRead {
    * @param args
    public static void main(String[] args) {
    try {
    //Create a workbook object from the file at specified location.
    //Change the path of the file as per the location on your computer.
    Workbook wrk1 = Workbook.getWorkbook(new File("C:/test.xls"));
    //Obtain the reference to the first sheet in the workbook
    Sheet sheet1 = wrk1.getSheet(0);
    //Obtain reference to the Cell using getCell(int col, int row) method of sheet
    Cell colArow1 = sheet1.getCell(0, 0);
    Cell colBrow1 = sheet1.getCell(1, 0);
    Cell colArow2 = sheet1.getCell(0, 1);
    //Read the contents of the Cell using getContents() method, which will return
    //it as a String
    String str_colArow1 = colArow1.getContents();
    String str_colBrow1 = colBrow1.getContents();
    String str_colArow2 = colArow2.getContents();
    //Display the cell contents
    System.out.println("Contents of cell Col A Row 1: \""+str_colArow1 + "\"");
    System.out.println("Contents of cell Col B Row 1: \""+str_colBrow1 + "\"");
    System.out.println("Contents of cell Col A Row 2: \""+str_colArow2 + "\"");
    } catch (BiffException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    You can further process this to convert the data extracted into XML. Hope this helps!

  • Anomalous conversion chart IGS from GIF to BMP

    I created a graph using the class CL_IGS_CHART and I converted the format to GIF to BMP through the class CL_IGS_IMAGE_CONVERTER: the operation is successful but the background color is turned into purple I think because it is seen as a transparent color. How can I overcome this problem?

    Hi Mylenium,
    The program just loads useless to use your words when I try to pass a file from Illustrator to Photoshop and when I click anywhere in Illustrator I get Program "Not responding" it doesn't crashes (stops) it stais opened but it doesn't do anything so I need to close it by force from task manager because I can't do anything with it.... Once I left it over night to save an important file and just in the morning I managed to do that so after a while it comes round but all the time there are different periouds of pending. Anyway this is not normal and I should be able to use the program in normal parameters with a powerful system. 
    I don't have any processor over load in the task manager I don't have anything unusual that indicates an over load of information, that's my problem. My guess is that I have a system incompatibility but I don't know where so that's why I asked for Adobe's help. Again I didn't had this problem using the same pack (CS5) with a less powerful system...
    If there are any creash logs pelase tell me where can I find them ?

  • Converting GIF images to JPG - display problems in browser

    I am currently writing a program that uses the ImageIO package (javax.imageio.*) to take GIF and PNG images and convert them to JPG images. The program seems to convert them correctly, especially for the PNG images, but the converted GIF images don't open in a browser. They open just fine in Windows Picture and Fax viewer, but when I try to open them in IE or Firefox, it only diplays the little red 'x'.
    Is anyone familiar enough with Images and the ImageIO package in Java that they may have some insight on why these converted GIF files won't display in a browser.

    Bonjour,
    In my [website|http://iweb.debutersurmac.com>, all the images are JPG files,
    By default iWeb '09 converts images to JPG (yes, it's true)...
    ...unless you use masked images*
    !http://i32.servimg.com/u/f32/09/02/44/99/masked10.jpg!
    Crop your images (with Preview) before you paste them in iWeb. Don't use mask, Unmask an image if it's masked. That's the trick!
    !http://i32.servimg.com/u/f32/09/02/44/99/unmask10.jpg!
    (* images with transparency areas (ex : some PNG and GIF), rotation and shapes in iWeb make also PNG files in your website.)

  • Convert JPG to BMP using XI

    Hi
    I would like to transfer the Image file from one Legacy System to SAP R/3 server which then ABAPers can utilize using TCode: <b>SE78</b>.
    But here are the constraints -->
    *) The Legacy System is providing the Image file in JPEG format <u>Only</u>.
    *) SAP R/3 TCode : SE78, can <u>only</u> take the files in BMP format.
    *) Even if you simply change the extension of JPEG file to BMP, then SAP R/3 is <u>not accepting</u> that file which suggest it needs typical BMP file only.
    I referred this thread also
    Error while uploading *.BMP file using SE78
    In this thread user actually resolves his problem after using a tool which explicitly converted a JPG to BMP but they are not using XI.
    Now is their any way with which JPG can be converted to BMP. I found couple of tools but they require the file first ( using browse option ) & then they will convert it, mean you can't call them using XI & provide that file as an argument.
    I just need to know what you all think, is it possible to convert the JPG to BMP using XI or not. Also are you aware of any Java/.NET which can actually take the Image file ( JPG format ) & convert it & provide it back.
    Regards
    - Lalit -

    Hi Lalit,
      I've made a quick search and in my opinion the better thing you can do, is to create a Java routine to convert JPG to BMP.
    you can use JAI (Java Advanced imaging) to read input stream (JPG format), and convert into a BMP format.
    <a href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide.pdf">This PDF</a> contains the JAI documentation and some examples.
    I hope it will help.
    Best regards
    Manuel

  • PDF into Smartforms or Convert PDF into BMP

    Hello,
    we have an 4.6c System. I have an PDF Document. The Content is a signature.
    Now i want import the PDF document into a Smartforms.
    How can i import this automatically? => Not on dialog.
    Background: the man to sign on a touchpad. it create a pdf document with the signature. Now i catch me the document and would like insert the signature into the smartforms "shipping ticket".
    can anybody help me? Is it better convert the pdf into bmp? And then yes, how can i convert pdf into bmp.
    Thanks !!!!
    Message was edited by:
            DDC

    ABBY RE
    I'm not one to spend money when it is not necessary.
    Try deskUNPDF for Mac as suggested. As I said you can do a few trials per document. You won't know if you don't try. If it is only text then it probably would do fine. However you need to look at the different things you want to convert, try it out and see if it does the job. Warning: The limit in the trial is 4 single and separate pages per document so you may need to divide you document into smaller documents. If it is not doing what you want then maybe Adobe Writer is what you need, particularly if you do a lot of PDF conversions.
    As a basic document converter I would certainly use it again. I have to say I have come across a lot of useful freebie info and good software sites in this forum.
    dcm18

  • I'm using OSX 10.7.4 how do I convert gif files to jpeg? Preview does not have a "save as" choice.

    I'm using OSX 10.7.4 how do I convert gif files to jpeg? Preview does not have a "save as" choice.

    GraphicConverter (the best shareware ever devised for the Mac) will do this for you:
    http://www.lemkesoft.com/

  • Convert SVG to BMP

    Greetings,
    Generous helper can you please help me to convert the SVG file to BMP/JPEG format.
    I am using C# as of now , wondering how much feasible to convert SVG to bmp .
    Is it possible to do so.
    Thanks,

    Nikkiee,
    Options depend of version.
    You should be able to open the file in Illy and then export to BMP or JPEG, using Crop Marks (up to 10) or Crop Area (up to CS3) or the Artboard Area Tool in CS4 to set the borders of the image; Help will help you how. You may also state version and get specific instructions here.

  • Is it possible to convert JPG to BMP within SAP ?

    Hi SAP Friends,
    We would like to know if it possible to convert JPG to BMP within SAP ? Our users upload jpg file in custom Z transaction and we store that JPG file in Custom Cluster table. Now, we need to get this JPG file, convert it into BMP and store it in SE78. You may ask, why dont we ask users to upload directly in SE78 ?  Our Custom Z transaction does other things, so we cannot ask users to use SE78 and also they get jpg files and not BMP files. So, we need to do conversion internally.
    Any ideas ?
    Niranjan

    Hi Niranjan,
    Unfortunately we cannot.
    Regards
    Aneesh.

  • Converting JPEG to BMP 1 bit depth

    Hi
    I need to convert JPEG to BMP 1 bit depth (monochromatic)
    I've used this code, but the result is always a 24 bit depth BMP...
    How can I do?
    JPEGDecodeParam param = JPEGCodec.getDefaultJPEGEncodeParam(1, JPEGDecodeParam.COLOR_ID_GRAY);
    JPEGImageDecoder jd = JPEGCodec.createJPEGDecoder(myByteArrayInputStream, param );
    BufferedImage bufferedImage = jd.decodeAsBufferedImage();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    ImageIO.write(bufferedImage, "bmp", baos);
    Thanks

    An application that you already have that can do the job is Preview. Open the file in Preview and do a Save As, seleting PICT as the end format.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Can anyone post me a solution for converting gif containing text to a .txt

    Can anyone post me a solution for converting gif containing text to a .txt file using Java

    wow!!!
    not gonna put a full solution (since its huge!!!)
    but heres how you would do it
    open the gif in a bufferd image, then do some image recognition on it
    easy (hehe) case is if the gif only contains text (black on white of a standard font)
    then i would scan down the image until i find a raster line that isnt all white (top of a text line), then find the next raster line that is all white (bottom of text line.
    half(ish) way between these lines scan from the left until you find a black pixel (start <maybe> of next character) (be careful you dont aim for the gap in "i"
    from that point (x, y) test a set of pixels (x+n1, y+m1) to (x+nt, x+mt) where t should only have to be ~8 or 10 such that for each character in the font these test points return a unique combination, you then know what character is next, add it to a string and repeat along the line, then down the page
    tahh dahh there ya go
    you can write a program to learn the required test points by giving it a line of the full character set
    good piggin luck is what i say :-)

  • How can i convert .gif/.bmp/.jpeg file to labview code(vi)?

    Hi,
    I am having a .gif file which consists of vi code. I want to convert that .gif file into vi & complile it. I am using LV 6.1 & 7 express. Is is possible?
    Reverse is surely possible like we can convert the vi diagram into .gif/.bmp file? But above i dont know?
    Your help will really appreciated.
    Best Regards,
    Nirmal

    If I understand your desire, it's to be able to convert a graphical image (bit map or screen photo, for example) into a functional block of LabView code, with all of the wire work done, etc. This is a task approximately equivalent to performing optical character recognition.
    In the case of a non-system subvi, unless that subvi is loaded, so that it's graphical representation can be recognized by comparing the bit-map image for the subvi on the photo with the available vi's.
    Another difficult problem to solve is when the bit-map has been scaled up or down, such that there's a pixel count mismatch between the VI iconic bitmap and the photographic bitmap you wish to import into your code diagram.
    And if you try to do recognition on objects that have h
    ad their RGB color representations changed, as can happen when JPG compression or other compression forms are used that reduce to total number of colors saved, that challenges the object recognition further.
    Also, what you're interested in having is only of value to Labview programmers, so there's not a very large market for such a tool to be sold to - unlike bitmaps of scanned text to ASCII or wordprocessor applications - traditional OCR software.
    All this ins't to say it can't be done, but that it's difficult, and for the person or company that undertakes it, the sales potential is limited.
    Regards,
    Bob Donnell

  • Problems converting images(gif,tif,bmp,jpg) to PDF

    Hi,<br />I installed PDF Generator Elements 7.2.2 using the turnkey installation JBoss,MySql and the JDK 1.4.2_04 included) in Windows Server 2003 R2 Enterprise Edition with SP1 ENU (evaluation edition) with the same credentials with the one that installed MS Office 2003,but the deployment of the Configuration Manager failed to start the Java service of JBoss..I changed the logon credentials for the JBoss for Adobe Livecycle(Local System Account) and run again the configuration Manager..This time Java Service did start and the database was initialised but I could not convert anything  to PDF..So I changed back the logon credentials(of the JBoss for Adobe LiveCycle service) to the one that installed Office,I waited for the JavaService to start and run again the configuration Manager...This time everything worked out(with the deployment)and seemed to go well..I can convert doc,txt,rtf,xls and so on to PDF..The file types I cannot convert though are the following:<br />bmp,gif,jpg,tif and everything related to Acrobat due to:<br /><br />(JBoss log file)<br />2007-03-13 05:53:05,031 INFO  [STDOUT] Command line '"C:\Adobe\LiveCycle\jboss\j2re1.4.2_04_compiler\bin\javaw.exe"'<br />2007-03-13 05:53:05,406 INFO  [STDOUT] java.lang.NoSuchMethodError: com.adobe.logging.AdobeLogManagerImpl.init(Ljava/lang/Class;Lcom/adobe/service/Manager;)V <br />2007-03-13 05:53:05,406 INFO  [STDOUT]      at com.adobe.service.bslj.Controller.<init>(Controller.java:109)<br />2007-03-13 05:53:05,406 INFO  [STDOUT]      at com.adobe.service.bslj.BslJ.initController(BslJ.java:51)<br />2007-03-13 05:53:05,406 INFO  [STDOUT]      at<br />com.adobe.native2pdf.bmc.AcrobatConverterServer.main(AcrobatConverterServer.java:67)<br />Any suggestion will be appreciated either on the installation walkthrough or everything in this post..<br />Thanks in advance,<br />Katerina

    In the Filetype Settings for Adobe Acrobat I can see only the :
    Specify the file extensions for file types accepted for this application, separated by commas.
    Filename Extensions : bmp,gif,e.t.c.
    Is this setting available in PDF Generator Elements?
    If so,then everything went wrong with the installation...
    Thanks,though...

  • Animated Gif to BMP

    *tl;dr- Easy way to take the frames of a GIF and change them to a BMP (there are about 40 frames per Action)
    So- My friend was learning Java to build a game on Android while I would create the graphical resources. It will be a fighting game- so I went ahead and made animations for the moves and all the characters.
    He needed help understanding the language so I thought I would go ahead and teach myself as well.
    I read faster than him- and I got to a point where I find out that graphical resources have to be in BMP (or so the author tells me) and that each frame in gif is a seperate BMP.
    So- is there an *
    Photoshop CS6
    Willing to get on the cloud or something for the other CS programs.

    Yes, Ps CS6 can do that. An animated GIF will be opened as a document with each frame on a separate layer. Then the "Export Layers to Files" script can export a folder of BMPs.

  • Unable to convert an image (.bmp) to PDF

    I have a written servlet that uses Adobe LiveCycle API to convert files to PDF. This works. I have a problem with one image (.BMP) for which the PDF conversion fails. I then tried converting the image to PDF using Adobe Acrobat. I see the following error:
    I am able to open the image file without any issues. Why does Acrobat think the file is corrupt? Is there a way to find out if an image is OK for PDF conversion, either manually or programmatically? Attaching the image file for reference.

    Hi ,
    For this issue, it looks like your SharePoint server(s) have been patched with MS13-052. 
    Please try to uninstall it and reboot your machine.
    Here is a similar post for you to take a look at:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/eec6e515-6a0a-42f2-963d-51fde59be9c4/sharepoint-server-20102-abnormal-issues-please-help
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for