How to convert EPS(image file) file in to other image format e.g NIGMAS

Hi friends,
I want to make a tool which will help to convert the EPS image file into other image format BY USING JAVA TECHNOLOGY. I havent done this type of file conversion before, so any body please explain it to me from the basic how can i go for it, what r the require things, where should i get the help of it, which java API should i use etc. i ll be vry thankful.
My actual requirement is i want to convert the EPS file into the NIGMAS(Nihon computer graphic mapping System) file format.
Thank you in anticiption.

The easiest, but not necesarily the best, way is to use ImageMagick's convert utility. From Java you can use Runtime.exec to invoke convert.exe ... ImageMagick is opensource and supports many different formats ( www.ImageMagick.com )
     * Converts an eps file to a graphic that is suitable for the web.
     * We use ImageMagick's 'convert' utility to convert .eps files into either gif or png format.
     * The output format is determine by the extension that you set for the output file.
     * Sample command:
     * convert -density 208x208 /export/home/kpmg/tomcattest/jsp/1.eps
     *                                    /export/home/kpmg/tomcattest/jsp/1.png
     * Although convert supports about 100 different parameters, we are only using 1:
     * -density     (sets the vertical and horizontal resolution in pixels of the image)
     * Density sets the vertical and horizontal resolution in pixels of the image.
     * It should be changed based on the resolution of the user's monitor
     * (e.g. if hi-res display settings, then density will need to be greater
     * than if running on a low-res display, which would make the same image look really big )
     * You may want to use other convert parameters, such as -sharpen
     * to make the image look better, or -compress and
     * -quality to change the kb size of the image.
     * For the full list of parameters see:     
     *      http://www.imagemagick.org/www/convert.html
     * @param inFile The absolute path to the eps file to be converted
     * @param outFile The absolute path to the desired output graphic file.
     *                         NOTE: the format of the output file is determined by the
     *                         extension that you give for this parameter (e.g. file.png will
     *                          be written as a png file )
public void eps2www(String inFile, String outFile, String density) throws Exception
          // use ImageMagick's convert program to make the www version ( png or gif, etc)
          String call = convert +
                    " -density " + density +
                              " " + inFile +
                              " " + outFile;
          try
               Process child = rt.exec( call );
               child.waitFor();
               log.debug("Convert process exit code is: " + child.exitValue() );
          catch (Exception e)
               // TO DO: this could probably be more explicit
               throw new Exception(e);     
          // log the command strings for debuggin purposes.
          log.debug( "Convert Successful: call = " + call);
     }

Similar Messages

  • How to convert FLV and F4V files to other media formats

    How to convert FLV and F4V files to other media formats
    Nowadays, every one can download their favorite videos from video sharing websites like YouTube, Hulu, MySpace, Google Video, metacafe, Yahoo! Video, Reuters.com and so on at will. However, these video files we got are usually in the format of FLV, or F4V, which are not workable by most portable devices, or some video players and video editors on our PC. With the intention of solving these problems, this guide will show you how to convert FLV and F4V files to other video and audio formats in detail.
    1. Download, install and run Pavtube FLV Converter
    As soon as you run this program, the following wine red interface will show up:
    2. Add files, set output format and destination folder
    Input FLV and F4V files to this program by clicking on “Add” button, and select a format as the output format in the drop-down list of “Format”, meanwhile, you can press the output folder to specify the destination folder or just use the path set by default. Moreover, “merge into one file” enables you to combine multiple FLV and F4V files to be as a single file, if you have this needs, just tick it.
    3. Set advanced settings
    Click “Settings” button, the following interface will pop up. You can change the parameters like screen size, bit rate, frame rate, sample rate, etc. on it to optimize the output quality or compress file size.
    4. Convert
    After all settings are done, you can press “Convert” button to start transferring, and then the following window will show you the conversion info in detail. According to the info you can manage your time and disk space properly.
    Pavtube FLV Converter can definitely complete the conversion at a swift speed with excellent quality; also it adopts an advanced audio-video sync technology, so that audio and video match very well in the resulted files. Therefore you need not worry about these issues.
    Useful tips:
    Free online FLV downloader:
    www.convertdirect.com
    http://vixy.net/
    http://www.videoconverterdownload.com/online-free-flv-converter.html
    http://www.flv2mp3.com/
    http://www.mediaconverter.org/
    http://2conv.com/
    http://online.movavi.com/
    http://www.youconvertit.com/
    http://www.playtube.com/
    http://www.convert.net/

    Flip4Mac

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

  • How to convert IDOC to flat file in XI

    Hello SDNers
    I have a scenario IDOC --> XI  --> Flat file. My question is how to conver IDOC to flat file. At least there are two ways to do that:
    1) Define a flat structure in PI that reflects the IDOC structure, then using content conversion to convert the flat structure to flat file in hte receiver communication channel.
    2) There is a [document |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a] talking about using a generic ABAP mapping to map any IDOC to flat file.
    For the option 1, I don't want that way, because I would need to define a flat structure in PI for each IDOC which is too much effort. (I would have dozens of IDOC scenarios)
    The second one is very attractive. However the document is not complete to follow. Basically it does not explain how the inbound flat structure looks like. I guess the generic ABAP mapping is used to map any IDOC_XML structure to a flat structure, then in the file receiver communication channel to convert the flat structure to flat file format. But the document does not mention how the flat structure looks like. Has somebody tried this scenario? If yes, can you please let me know the steps to do in ESR (IR) and ID? Basically what structure the IDOC_XML should be mapped to using the generic ABAP mapping class?
    Or somebody has other ideas on how to convert IDOC to flat file?
    Thank you so much
    Eric

    > 1) You are saying that for Java mapping and abap mapping, the target data type (messag type) is just a dummy one, the real (XML) message the receiver will recieve is the one (stream) produced by the java or abap mapping. Is that correct?
    Definitely yes!
    >
    > 2) For the abap mapping option, I would define a dummy target data type. Do I need to do any content conversion in the receiver adapter (communication channel)?
    None wat so ever.The output of your Java Mapping will be the Native Idoc Format.
    >
    > 3) I tried with a dummy target data type as mentioned in my second post, can you see any clue in the error message what is wrong?
    Dats one thing I cant help much. Just make sure that the ABAP report is valid and take the help of a ABAP'er to debug what is going wrong. Not much of a ABAP guy, can read ABAP code, but cant write one myself
    Try to test the program standalone to see how it works. Maybe take some Idoc XML file as input and then dump the output to a .txt file and so on.
    Regards
    Bhavesh
    PS : All this is from what I have read of this guide. I have not convert Idoc XML to Native Idoc but have used this guide to convert Native Idoc to Idoc XML .

  • How To Convert IDOC to FLAT File ?

    Dear Expert,
            My requirement is to convert the IDOC to FLAT File using XI. How can i do this. I have gone thru the Guide How to convert IDOC to Flat file using ABAP mapping but it does not talk about what are all the stpes i need to do in IR & ID.
    I am ready to use ABAP mapping since i am an ABAPER.
             Is it recommended to use ABAP mapping since we expect daily 500 IDOCs to be converted to a flat file & transfer this flat file to some FTP location.
             Can anybody tell me the stpes how to do this in XI. The steps i am expecting like how to define the Data Type / Message type / Mapping etc & how to configure the channel ?
             The Flat file i want to convert should look like the way IDOC file gets created in FILE FTP port in SAP.
    Regards,
    Umesh

    I think there is some confusion... Let me explian my problem once again.
    I want to convert the Shipment IDOC as it is the moment the shipment documents gets created in R/3. I dont want to collect many IDOCs & make as single file. For each IDOC it should create a Flat File.
    Secondly if i have to MAP the whole IDOC the graphical mapping is too difficult.
    So instead of that can i use ABAP/XSLT/JAVA whichever is easy. ?
    Since i am ABAPER i can use ABAP mapping.
    The Output file should look like as below.
    EDI_DC40  9000000000011785526620 3012  OILSHI01                                                    OILSH1                                           SAPP01    LS  SAPCLNT900                                                                                A000000018LS  WBIMQSI                                                                                20071031161506                                                                                20071031161506     
    E2OILSH001                    90000000000117855260000010000000250 1011537344 1101                1 300X1 TRKGMKG 0202KG KG X        ZTLF  X XX 000   BLX X        X60002200710310000002007103100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000        E2OILSA                       9000000000011785526000002000001031011537344000001SP          0000201496000000000000000000                                           00                                        00 V                                                                                E2OILSA                       9000000000011785526000003000001031011537344000002SP          0000201496000000000000000000                                           00                                        00 S
    E2OILSV                       900000000001178552600000400000103MH04CG6052        LPBW50D62401033       000020149601KG KGM   35200.00000             17200.00000             18000.00000                               0.000          0.000          0.000          DLLPGB220071031000000 00000000000000000000000000000000000                    0000XX    6000AAAA0.00000                 0.00000                 17200.00000             35200.00000             18000.00000             MH04CG6052 new bulk tender approved rs                                          LPG Bulk Lorry - WR                     Refinery TPP                                                                                BABA TRANSLINES                     kg        kg        0.000             0.00           0.00                                                                                E2OILSC                       9000000000011785526000005000004041  001                                                 18000.000000           18000.000000           35200.000000           0.000000               0.000000                  KG                                                                                E2OILSQ001                    9000000000011785526000006000005050011  MH04CG6052MH04CG60521J          05041089055000                        00000118000.0000000  KG 18000.000000           18000.000000           6000V04 18000.000      KGM18000.000      KGM00000000  V        0.000000                  0.000000               0.000000                  0.000000                           0.000000               0.000000               0.000000               0.000000                          0001                                                                                E2OILS2                       9000000000011785526000007000004040001000001000200020000.000000               0.000000               0.000000               0.000000               0.000000               0.000000               0.000000               0.000000               0.000000               XX0000000000000000000000000000 XX0504108905J5000              PUNE LPG BOTTLING PLANT            START     0001 1END       0001 10.000000               0.000000               0.000000               0.000000               0.000000               0.000000
    Pl. Help me its Urgent.
    Regards,
    Umesh

  • How to convert Ms Word (.doc) file to Protected pdf

    Hi all,
    Is anybody out there could help me on how to convert Ms Word (.doc) file to protected pdf file using java? May be there are some jar file I need to download or any tools you used before? Thanks in advance... =)

    Hi all,
    Is anybody out there could help me on how to convert
    Ms Word (.doc) file to protected pdf file using java?
    May be there are some jar file I need to download or
    any tools you used before? Thanks in advance... =)Hi All,
    Thanks for your replies..I think i almost find the solution. I found 2 options to do this. They are :
    1. Get Adobe Acrobat and it's SDK (has to buy)
    2. Get OpenOffice 2.0.4 and it's SDK (opensource)
    So, i do option 2. I install them in my system.then i call them from my ide. Then i follow the code from this link..
    http://weblogs.java.net/blog/tchangu/archive/2005/12/open_office_jav_1.html
    Thanx.. =)

  • How to convert bytes[] into multipage File object

    Hi,
    How to convert bytes[] into multipage File object??
    I used the java.io.SequenceInputStream to concatenate two input streams (basically .pdf files) into a single input stream. I need to create a single multipage pdf file using this input stream.
    Thanks for you help in advance..

    Only text format allows you to concatenate two files together to get a longer files.
    Most formats have a header and a footer and so you cannot simply add one to the other.
    You need to use a PDF API which will allow you to build the new document (if one exists)

  • How do I create a photo in jpg or other photo format from a frame within iMovie11.  The suggestion I have found from earlier versions of iMovie does not create a jpg file that can be revealed in Finder. Help please.

    How do I create a photo in jpg or other photo format from a frame in iMovie. The previous suggestions on here do not create a jpg file when you chose reveal in finder when using iMovie11 and OS X

    First, get an app called MPEG Streamclip, which is free. (google MPEG Streamclip from Squared 5)
    Open MPEG Streamclip.
    In iMovie, select the clip you need. Then, right-click/Reveal in Finder.
    Drag this clip into MPEG Streamclip
    In MPEG Streamclip, move the playhead to the frame you want.
    In MPEG Streamclip, click FILE/EXPORT FRAME.
    Choose JPEG, TIFF, or PNG and give it a name.
    You can then drag this photo into iPhoto.
    Here is a video I made that steps through this...
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How to convert jpeg to AI files

    I need to convert jpeg to AI files...

    And why do you need to do this? JPG images are used by every operating system and every image editing cataloging program made. Even Adobe Illustrator. Just put the JPG images in an illustrator project.
    I suggest you brush up on how to use Illustrator over at the Adobe website.

  • How to convert .class into .jar file

    Hi,
    How to convert .class into .jar file

    jsf_VWP5.5.1 wrote:
    Hi,
    How to convert .class into .jar fileFrom a command prompt, cd to the location of your .class file(s).
    If you want to create a simple jar, use: jar -cf Whatever.jar Whatever.class
    If you want to compile all .class files in a directory into a jar, use *.class instead.
    Now, I'm going to assume you want to create an executable jar... here's how to do that:
    1) Create a blank text file; for this example, lets call it main.txt.
    2) In the first line of main.txt, type: Main-class: Whatever ('Whatever' should be the name of the class in your program where the main() method is located)
    3) Press enter to go to the next line (someone please correct me if I'm wrong, but if you don't insert the line break/CR after the Main-class: statement, this will not work... in my experience, this is true)
    4) Make sure you save this file in the same directory as your .class file(s).
    5) Type: jar -cmf Whatever.jar main.txt Whatever.class
    ...and that's about it. For more information on the usage of the jar command and to understand the switches (such as -cmf), try jar --help.
    Hope that helps.

  • How to convert VHDX to VHD file format on windows 8 / Windows server 2012?

    Here is an article to describe how to convert virtual hard disk VHDX file format to VHD 
    http://anuraggawande.blogspot.in/2012/10/vhdx-to-vhd-conversion.html

    Hi,
    Thanks for sharing the web link!
    You help other community members who facing similar problems.
    Thanks for your contribution to Windows Server Forum!
    To convert VHD format, you can also use Convert-VHD comlet. The Convert-VHD cmdlet converts a virtual hard disk file by copying the data from a source virtual hard disk file to a new virtual hard disk file of a specified format and version type. The format
    is determined by the file extension of the specified files, either .vhdx or .vhd. Conversion is an offline operation; the virtual hard disk must not be attached when the operation is started.
    For more information please refer to following MS articles:
    Convert-VHD
    http://technet.microsoft.com/en-us/library/hh848454.aspx
    Windows Server 2012: Convert VHD to VHDX using Hyper-V Manager
    http://blogs.technet.com/b/aviraj/archive/2012/05/06/windows-server-2012-convert-vhd-to-vhdx-using-hyper-v-manager.aspx
    Using PowerShell to Convert a VHD to a VHDX
    http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/10/03/using-powershell-to-convert-a-vhd-to-a-vhdx.aspx
    PS - Convert VHD
    http://gallery.technet.microsoft.com/scriptcenter/1dd3c524-e4e6-44cd-9573-406151237139
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Lawrence
    TechNet Community Support

  • How to convert Fla or SWF file in to 70 mm theatricla movie.(cinema)

    this is Manoj.from Hyderabad. i attended for adobe seminar in
    Hyderabad. i have doubt regarding how to convert flash movie or swf
    file to 70 mm cinema. is it possible to make 2d animation as cinema
    using with flash.?? is it possible?? if possible then please tell
    me the process. and which is the best software for making 2d
    animation. i am very much comfortable in 2d animation using with
    flash software. can you tell me flash is suitable for 2d animation
    or not. if we make entire animation in flash then how to convert
    that animation in to cinema 70 mm theater. is it possible or not
    can you please tell me .
    if not possible then please suggest me which software is the
    best for making 2d animation for cinema.
    please give me reply.
    i am waiting for your reply. please give me reply all to
    bellow ids too.
    [email protected]
    [email protected]
    [email protected]
    thanx and regards
    Manoj

    Print the reviewer the original document the course content
    was initially built from if they want it in print format. To expect
    a flash SWF to print the same way as a Microsoft Word document way
    is just stupid, think of the SWF's timeline and number of
    movieclips (and movieclips within movieclips) and how much
    information can be contained within it and how it might not always
    be in a linear format (eg. like a Word Doc) = your answer which is
    Flash is designed for online delivery of rich media content, where
    Microsoft Word is designed for printing.

  • How to convert Fla or SWF file in to 70 MM movie(cinema)

    this is Manoj.from Hyderabad. i attended for adobe seminar in
    Hyderabad. i have doubt regarding how to convert flash movie or swf
    file to 70 mm cinema. is it possible to make 2d animation as cinema
    using with flash.?? is it possible?? if possible then please tell
    me the process. and which is the best software for making 2d
    animation. i am very much comfortable in 2d animation using with
    flash software. can you tell me flash is suitable for 2d animation
    or not. if we make entire animation in flash then how to convert
    that animation in to cinema 70 mm theater. is it possible or not
    can you please tell me .
    if not possible then please suggest me which software is the
    best for making 2d animation for cinema.
    please give me reply.
    i am waiting for your reply. please give me reply all to
    bellow ids too.
    [email protected]
    [email protected]
    [email protected]
    thanx and regards
    Manoj

    Print the reviewer the original document the course content
    was initially built from if they want it in print format. To expect
    a flash SWF to print the same way as a Microsoft Word document way
    is just stupid, think of the SWF's timeline and number of
    movieclips (and movieclips within movieclips) and how much
    information can be contained within it and how it might not always
    be in a linear format (eg. like a Word Doc) = your answer which is
    Flash is designed for online delivery of rich media content, where
    Microsoft Word is designed for printing.

  • How To: Convert *.mpp (MS Project) files into PDF in order to share with people who do not have MS Project but need to provide input on schedule?

    I was told that the MPP is unsupported, but I know for a fact that I have converted MPP to PDF.  My question is what is needed to make this happen?

    You can try printing to the Adobe PDF Printer.
    Another option would be to export the MS Project file as a graphic (JPG, PNG, EPS, etc...) and then just import it into Acrobat via File>Create PDF>Combine

  • How to Convert standalone .OVF\VMDK file to VHD, without having a VMWare server. We have a .OVF file on USB drive

    How do I Convert standalone .OVF\VMDK file to VHD, without having a VMWare server.  We have an .OVF file on USB drive.  Running Hyper V 2012 SP1 and need to convert this to run on our system.  Basically a vender of ours has decided
    not to house our servers that they used to support one of our environments.  They used VMware and we are a Hyper V shop.  Now they are sending it back in an OVF format and telling us to convert it to VHD.  Only tool I found was Microsoft converter
    tool and you need a VMware server to do that.  The exporter tool is another but doesn't actually do any conversion.  Can anyone help?
    Thanks
    Eric

    If the Java application must be stand-alone you must not deploy it on WebLogic, then WebLogic will manage its lifecycle.
    In this case you can use the CommonJ API and use the timermanager if it must run on a certain time. More information
    of how to do this can be found here: http://middlewaremagic.com/weblogic/?p=5569
    If you keep the Java application stand-only and want to use a cron job you can follow the example presented here: http://middlewaremagic.com/weblogic/?p=7065
    Note that the example runs a WLST script, but you can follow the same steps to run your Java application.

Maybe you are looking for

  • Can't scan with Epson Stylus DX4450

    Hi everybody. I'm trying to configure my Epson Stylus DX4450. Printing works like a charm, but scanner is not. I tried to configure it as it was suggested on various websites. I've installed sane, xsane, iscan (from http://repo.archlinux.fr/i686) als

  • How to fix exclamation mark problem

    Basically since I updated to iTunes 11 and I went to make a new cd to listen to in the car a lot of my songs have got an exclamation mark next to them and says it can't find the original file so since I HATE the new iTunes i decided to downgrade back

  • Using JDBC to connect all database

    i want to create a DB layer through which i should be able to connect to the database specified at run time.how do i understand for databases like Mysql which OS-specific Driver to load at runtime.i want to make the Db layer platform independant and

  • Hyper-V NIC Team Load Balancing Algorithm: TranportPorts vs Hyper-VPorts

    Hi,  I'm going to need to configure a NIC team for the LAN traffic for a Hyper-V 2012 R2 environment. What is the recommended load balancing algorithm?  Some background: - The NIC team will deal with LAN traffic (NOT iSCSI storage traffic) - I'll set

  • Report and Form - Nothing in Session - Creating an onChange Event

    Version 2.0 In my HTML Header section: function compute_total_cost() document.getElementById('P2_TOTAL_COST').value = parseInt (document.getElementById('P2_DATA_COLLECT_FORM_PREP').value) + parseInt (document.getElementById('P2_PRINT_COST').value) +