Converting a JPG into a stationary

Is it possible to take an EPS / JPG / PDF file and convert it into a stationary?
I managed to do that, but without the ability to enter text in this mail. How can I create a kind of "text box" same as in the pre-installed stationaries?

Perhaps you can use the image I/O library (javax.imageio).
It's part of the standard JRE.

Similar Messages

  • How do I convert a JPG into PDF, Adobe converter not available in India yet ?!!!!!

    How do I convert a JPG into PDF, Adobe converter not available in India yet ?!!!!!

    Hi supersude,
    You can use Acrobat XI Pro software for converting jpg into pdf, Here's the download Link (Free 30 Days trial ) : https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    You can buy the full version here : Adobe Store - Adobe Acrobat Professional XI
    Regards,
    Rahul

  • How can i convert CR2 images into jpg format, without iPhoto?

    i just import a lot of images with the format .CR2 to mac through "Image capture" is there an app to convert the frmat into .jpg, app like image capture or something like that?

    If Canons software doesn't work...?
    Try Snap Converter, File Juicer or Contenta Converter

  • How convert to jpg picture into bmp ?

    Hi experts,
    I am trying to convert my jpg picture into bmp. for this i write one report but showing some
    TRANSFER WA_MIME1 TO DSN1.
    HERE IS MY FULL CODE PLZ HELP ME.
    REPORT  ZSE78_7.
    DATA: blob TYPE w3mimetabtype,
           blob_size TYPE w3param-cont_len,
           blob_type TYPE w3param-cont_type  .
    DATA:
         p_color_scheme      TYPE char20  ,
         p_labels_groupid    TYPE igs_label_tab,
         p_labels_category   TYPE igs_label_tab  ,
         p_data     TYPE     igs_data_tab,
         p_charttype     TYPE     char20,
         p_legend     TYPE     char20,
         l_igs_chart TYPE  REF TO cl_igs_chart ,
         l_igs_chart_engine TYPE  REF TO cl_igs_chart_engine,
         i_igs_image_converter TYPE REF TO cl_igs_image_converter,
         mime TYPE  w3mimetabtype,
         html TYPE  w3htmltabtype,
         html_line TYPE  w3html,
         l_msg_text(72) TYPE  c,
         l_url TYPE  w3url,
         l_content_length TYPE  i,
         l_content_type TYPE  w3param-cont_type,
         l_content_subtype TYPE  w3param-cont_type.
    CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         filename                      = 'e:\katoch.jpg'
        filetype                      = 'BIN'
    *      HAS_FIELD_SEPARATOR           = ' '
    *      HEADER_LENGTH                 = 0
    *      READ_BY_LINE                  = 'X'
    *      DAT_MODE                      = ' '
    *      CODEPAGE                      = ' '
    *      IGNORE_CERR                   = ABAP_TRUE
    *      REPLACEMENT                   = '#'
    *      CHECK_BOM                     = ' '
    IMPORTING
        filelength                    = l_content_length
    *      HEADER                        =
       TABLES
         data_tab                      = mime
    EXCEPTIONS
        file_open_error               = 1
        file_read_error               = 2
        no_batch                      = 3
        gui_refuse_filetransfer       = 4
        invalid_type                  = 5
        no_authority                  = 6
        unknown_error                 = 7
        bad_data_format               = 8
        header_not_allowed            = 9
        separator_not_allowed         = 10
        header_too_long               = 11
        unknown_dp_error              = 12
        access_denied                 = 13
        dp_out_of_memory              = 14
        disk_full                     = 15
        dp_timeout                    = 16
        OTHERS                        = 17
    IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT i_igs_image_converter .
    i_igs_image_converter->input = 'image/jpeg'.
    i_igs_image_converter->output = 'image/x-ms-bmp'.
    i_igs_image_converter->width = '100'.
    i_igs_image_converter->height = '100'.
    CALL METHOD i_igs_image_converter->set_image
       EXPORTING
         blob      = mime
         blob_size = l_content_length.
    CALL METHOD i_igs_image_converter->execute
       EXCEPTIONS
         communication_error = 1
         internal_error      = 2
         external_error      = 3
         OTHERS              = 4.
    IF sy-subrc = 0.
       CALL METHOD i_igs_image_converter->get_image
         IMPORTING
           blob      = blob
           blob_size = blob_size
           blob_type = blob_type.
       DATA dsn1(20) TYPE c VALUE 'E:\test.bmp'.
    DATA wa_mime1 TYPE w3mime.
    *DATA wa_mime1 TYPE w3mimetabtype.
       OPEN DATASET  dsn1   FOR OUTPUT IN BINARY MODE.
       LOOP AT blob INTO wa_mime1.
         TRANSFER wa_mime1 TO dsn1.
         CLEAR wa_mime1.
       ENDLOOP.
    MESSAGE ' successfull' TYPE 'I'.
       CLOSE DATASET dsn1.
    ELSE.
       DATA: num TYPE i, message TYPE string.
       CALL METHOD i_igs_image_converter->get_error
         IMPORTING
           number  = num
           MESSAGE = message.
    MESSAGE 'not successfull' TYPE 'I'.
    ENDIF.

    HI
    i already converted it in binary form but when i transferring it to binary mode it generate error.
    the code is like this.
    LOOP AT blob INTO wa_mime1.
         TRANSFER wa_mime1 TO dsn1.
         CLEAR wa_mime1.
       ENDLOOP.
       CLOSE DATASET dsn1.

  • How to batch convert bmp files into jpg by dos command or c# program language?

    How to batch convert bmp files into jpg by dos command or c# program language?
    Many thanks for replying.

    Try
    GraphicsMagick.

  • Convert Windows folder.jpg into OS X custom folder icon

    Hello everyone,
    after months reading numerous post on the Web trying to find a way to convert the Windows "folder.jpg" into an OS X custom folder icon, I've come up with a solution using only the shell. Some users proposed using the Automator, which caused me lots of trouble (Spotlight sometimes wouldn't find the folder, or would return a Privacy error, and so on). Therefore, my solution uses only a Shell script with dependencies on some external libraries (most of them allowing to manipulate images and icons).
    Here's the code on Pastebin.
    I hope this will be as helpful for you as it was for me. It allowed me to apply the custom folder icons to thousands of folders, including the local Mac folders as well as the one on external storage (USB or LAN).
    André L. M. SANTOS

    Hello everyone,
    after months reading numerous post on the Web trying to find a way to convert the Windows "folder.jpg" into an OS X custom folder icon, I've come up with a solution using only the shell. Some users proposed using the Automator, which caused me lots of trouble (Spotlight sometimes wouldn't find the folder, or would return a Privacy error, and so on). Therefore, my solution uses only a Shell script with dependencies on some external libraries (most of them allowing to manipulate images and icons).
    Here's the code on Pastebin.
    I hope this will be as helpful for you as it was for me. It allowed me to apply the custom folder icons to thousands of folders, including the local Mac folders as well as the one on external storage (USB or LAN).
    André L. M. SANTOS

  • Converting raw images into .jpgs.

    I took some pictures with my Canon 5D, using the camera's raw format. They turned out to be about 14MB. However, when I converted them to .jpgs, using Photoshop CC, they were only about 4MB. I needed to have .jpgs about 10 MB. How do I do that? I made them the highest quality, etc. I still could only get about 4MB in size. Do I have to lose all that data just by converting them to .jpg? Thank you for any help!

    file size in MB is a very poor criterion for judging image quality because reduction in file size is very dependent upon the original image content.
    Compare a complex multicolored photo converted to .jpg with an image (same original size) filled with pure white or gray or black; then compare the .jpg sizes.
    As indicated above, use .tif or other uncompressed (lossless) file format to retain image quality....use .png if image needs to keep transparency.
    Consider using camera settings to produce both raw and .jpg images from same shot (too late for images already shot) and compare/use whichever suits your needs best. 
    There are many (many free) progs to convert various raw formats to .jpg; some better than others, all results will be at least slightly different.

  • How do I stop iWeb turning my .jpgs into PNG's ??

    Hi
    No one on a PC can print out my iWeb pages because when I drag a pic into iWeb it auto makes it a PNG. (unreadable from some PC's) How can I stop this from happening so that people can print ok from my site?
    Thank you
    Jim Rhodes
    http://web.mac.com/jimpsky/iWeb/Craiganor/Craiganor.html

    Thnx Mark
    I figured iWeb might be doing this and it seems impossible to fix. Here, as always I optimize all my pics in PS for the web as jpg,s. I've noticed iWeb actually makes some of my pics bigger! after optimizing if I resize the pic in iWeb. It shouldn't do this anti optimization.
    I have another site on a different .mac account that, after growing past a point, now converts all the text to jpg so no text can be copied. http://web.mac.com/hueynrolf/iWeb/BWA/Home.html
    but still here no PNG file conversions.
    The "Craiganor" site in question, was added to an existing iWeb project (Domain) ;
    http://www.rospalmerinteriors.com/RosPalmerInteriors/news.html
    Rospalmerinteriors, published to a .com and mirror on .mac, works well. With a little tweaking i managed to prevent it from converting text to jpeg and no auto jpg to PNG conversions. The Craiganor site does convert the jpgs to PNG!
    1. Is this occurring because Craiganor is the second site ? I suspect so.
    2. Will rebuilding the site (would rather not) in its own iWeb Domain Solve this?
    2. If so and I rebuild the site with it's own Domain, separately publishing Rospalmerinteriors and Craiganor to the same .mac, will I encounter functionality problems with the .mac specific aspect ?
    Many thanks
    Jim

  • Programs to convert multiple jpgs to one Pdf ?

    I need to convert photos (jpgs) (which I take from books with my digital camera) into to a single pdf. file.
    Is there an reasonably priced program for that ? I saw some on Amazon .. and I am not sure which would be the best for me.
    I don't want to pay more than about $100 for this.
    Can anyone recommend a good program that I can purchase (on Amazon ? or elsewhere) to perform this function.
    My IMac 27 In. is 10.9.4. 
    I look forward to hearing from anyone who has experience in this area.
    Don

    Why don't you use Preview?
    Open the first picture with Preview. Export it as PDF.
    Open the new exported PDF file, toggle the thumbnail view. Drag & drop the rest of the pictures you want to add onto the thumbnail.
    You can rearrange the picture sequence as you want.
    Straightforward and free

  • I am having problem in Converting .psd file into HTML site.

    here is the screen shot of the PSD which i converted into HTML. It is done with the help of Slice select too. and i got this kind of error in output. so i want a way by which i can transform my psd designs the same way they look in to working website. the template goes other places

    Just wanted to correct something you said, simply because beginners are reading these forums and may get confused.
    You can not convert any image into an html file. An html file is simply a text file that uses tags that can point to an image file.
    Web browsers normally accept jpg, png, and gif files, so you can convert your psd file into one of those three formats and let the html file point to it.
    Here are some sites for learning about html and css. Its the latter that can help with your positioning issue.
    http://www.htmlbasix.com/
    http://www.htmlgoodies.com/
    http://www.thesitewizard.com/
    http://www.lissaexplains.com/
    http://www.w3.org/MarkUp/html-spec/html-spec_toc.html < - - - The Official source
    http://www.yourhtmlsource.com/
    http://msdn2.microsoft.com/en-us/library/aa286532.aspx Microsoft’s info
    w3.org also has the official specs for css.

  • How do I convert a jpg to a Sprite

    Just want to turn a jpg into a Sprite dynamically.

    When you load an external jpg, your Loader.content is of type flash.display.Bitmap. I don't believe you can convert this Bitmap to a Sprite.
    Why do you need it to be a Sprite? Bitmap is a display object.
    If you definitely need a Sprite, all i can think of is to create a Sprite and add the Bitmap to your sprite using Sprite.addChild.

  • Convert java code into UML

    hello,
    anybody knows a software convert java code into UML? Classes Diagram.
    for example JBuilder do that.
    // i use Netbeans.

    its not a speed issue although sometimes it can be painfully slow (but now slower that sun one). I constantly found myself getting into infinite error message loops (e.g. "incorrect input"... click ok... "incorrect input"... errr click ok.... "incorrec..." etc etc), and also it (relatively) regularly falls over. I tried to export diagrams as GIFs, and when I imported them into Word they looked ok, but when I printed them they printed negative!! I used about 100g of toner before I realised, and had to go thru all diagrams changing them to JPGs. Plus, I think the interface for 6 is a lot less intuitive than 4.2, and it's trying to be too feature rich. Personally I would never use it as a code editor as it's too big and lumbering. For me, it's a diagramming tool, but it doesn't even put pretty pictures as nodes on deployment diagrams!! I want pictures of workstations, PDAs and databases!! Only kidding...

  • Image convert from jpg to BMP (black & white)

    Hi everybody
    here i am converting a jpg file to 2 bit monochrome image.
    Though this program is making the bmp monochrome image of passing jpg image.
    but the program is hanged in between.
    I don't understand the why it is hanging..though it is generating the result.
    please help me to solve the hanging problem.
    =================================================================================
    source output is:
    C:\j2sdk1.4.1_02\bin>java jaiexp.JAISampleProgram6 aish5.jpg
    1
    2
    FarmHouse2.bmp image
    ERROR: it doesn't finish gracefully....!!
    ==================================================================================
    source code
    package jaiexp;
    import java.awt.Frame;
    import java.awt.image.renderable.ParameterBlock;
    import java.io.IOException;
    import javax.media.jai.Interpolation;
    import javax.media.jai.JAI;
    import com.sun.media.jai.codec.BMPEncodeParam;
    import javax.media.jai.RenderedOp;
    import com.sun.media.jai.codec.FileSeekableStream;
    import javax.media.jai.widget.ScrollingImagePanel;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import javax.media.jai.widget.*;
    import com.sun.media.jai.codec.*;
         * This program decodes an image file of any JAI supported
         * formats, such as GIF, JPEG, TIFF, BMP, PNM, PNG, into a
         * convert it to BMP and save it as bmp file
         public class JAISampleProgram6 {
              /** The main method. */
              public static void main(String[] args) {
                   // Define the source and destination file names.
                   String outputFile = "C:\\j2sdk1.4.1_02\\bin\\jaiexp\\FarmHouse2.bmp";
                   Image bwImage = null;
                   /* Validate input. */
                   if (args.length != 1) {
                        System.out.println("Usage: java JAISampleProgram " + "input_image_filename");
                        System.exit(-1);
                   }//if ends
                   * Create an input stream from the specified file name
                   * to be used with the file decoding operator.
                   Image colorImage = null;
                   try {
                        colorImage = Toolkit.getDefaultToolkit().createImage(args[0]);
                   } catch (Exception e) {
                        e.printStackTrace();
                        System.exit(0);
                   }//try catch ends
                   ImageFilter filter = new BlackWhiteFilter();
                   ImageProducer producer = new FilteredImageSource(colorImage.getSource(),filter);
                   bwImage = Toolkit.getDefaultToolkit().createImage(producer);
                   // Create the ParameterBlock.
                   ParameterBlock pb = new ParameterBlock();
                   pb.add(bwImage);
                   // Create the AWTImage operation.
                   //PlanarImage im = (PlanarImage)JAI.create("awtImage", pb);
                   RenderedOp image1 = (RenderedOp)JAI.create("AWTImage", pb);
                   System.out.println("1");
                   try {
                        FileOutputStream stream = new FileOutputStream(outputFile);
                        System.out.println("2");
                        javax.media.jai.operator.EncodeDescriptor.create(image1,stream,"BMP",null,null);
    System.out.println("3");
                        javax.media.jai.operator.FileStoreDescriptor.create(image1,outputFile,"BMP",null,null,null);
                        System.out.println("4");
                        stream.close();
                   }catch(Exception e){
                        System.out.println("Error:"+e);
                   }//try catch ends
                   System.out.println("5");
              }//fun ends
         }//class ends
         class BlackWhiteFilter extends RGBImageFilter{
         public int filterRGB(int x, int y, int rgb){
         int alpha = (rgb >> 24) & 0xff;
         int red = (int)(((rgb >> 16) & 0xff) * 0.3f);
         int green = (int)(((rgb >> 8) & 0xff) * 0.59f);
         int blue = (int)((rgb & 0xff) * 0.11f);
         int bws = ((red+green+blue) > 127) ? 255 : 0;
         return ((alpha & 0xFF) << 24) | ((bws & 0xFF) << 16) | ((bws & 0xFF) << 8) | ((bws & 0xFF) << 0);
         }//class ends
    thanks in advance.
    regards
    - Deepak
    email: [email protected]
         

    Also keep in mind that there are two definitions of bitmap. You want the 2-color version where each bit represents one color or the other. However, thanks to Microsoft, their bitmaps are really just uncompressed strings of RGB values, storing each pixel in multiple bits.

  • Auto converting to jpg files?

    So, I almost always shoot in RAW. I then unload all my pix from my cam into IPhoto. When I go to do anything with the pix, I notice that when I drag them out of IPhoto and into Photoshop (Elements 2 or 6), some of them have magically become JPG files. It seems random though. Some stay RAW, some are converted to JPG by the time I put them in PS. Is there some setting in IPhoto that will cause it to go through and start converting everything into JPG one pic at a time? If so, how do I turn that on/off? I have no idea what is going on here.

    There's nothing magical about it at all. It's all explained in the Help.
    Whenever you import a RAW file iPhoto automatically makes a jpeg preview of the file.
    If you then "drag them out of iPhoto" you'll get the Preview. If you export them (using the File -> Export command, Kind: Original) you'll get the RAW file.
    If you're editing them, then you do neither. Instead you can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    To make sure the RAW is sent to Photoshop for editing, check the box in the iPhoto Preferences -> Advanced pane where it says 'Use RAW when using External Editor'.
    Regards
    TD

  • Convert from jpg to TIFF G4

    I need to convert a jpg image into a TIFF G4 format. I know Java JAI can do it for TIFF with no compression, but I need it to be G4.
    Platforms: WIN, SOLARIS.
    Any Idea.
    Thanks.

    I don't know where I read it but I guess I was wrong. JAI does support TIFF G4 compression. The problem I am facing now is that I get the following error when I try to create the TIFF G4 image from the JPG :
    java.lang.Error: Bilevel encodings are supported for bilevel images only.
         at com.sun.media.jai.codecimpl.TIFFImageEncoder.encode(TIFFImageEncoder.java:388)
         at com.sun.media.jai.codecimpl.TIFFImageEncoder.encode(TIFFImageEncoder.java:161)
         at Imagen.main(Imagen.java:68)
    Note: I get the TIFF with no compression ok.The problem arises when I try G4 compression.
    Any hints?
    Thanks for helping.
    SOURCE CODE:
                   // Pass form Base64 to JPG
                   byte[] b64DecodedJPG =new BASE64Decoder().decodeBuffer("/9j/4AAQSkZJRgABAQEASABIAAD//gAMQXBwbGVNYXJrCv/bAEMACAYGBwYFCAcHBwkJCAoMFA0MCwsMGRITDxQdGh8eHRocHCAkLicgIiwjHBwoNyksMDE0NDQfJzk9ODI8LjM0Mv/bAEMBCQkJDAsMGA0NGDIhHCEyMjI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YFm6lMW6Fwn6wnsKDMj2l4upzeSXqriUdCkH6iKTQsQg12uYncdb9PdbnGEEktLQEg3SU7pAPMxSnQnCyf9682GyEUeTSvNcLzrvvfr4D4RflI8SNnO1+eU7xTSJTMNf8xepuSDv1J08YXmaDxIG/vbxkEhCKnlSkWADSdB8InP8NMEVZrtLxhONlLtamQk8kKy/SFkGICm65Vagf8AF1GZePRx0n6xLk2NJGaaD6aypSjmzg3vrFKxSdIcW22SpKkTCk6XzLRpfpzjS30ZIz6a70a/pj7Q6QzdwpW2pJFwRaLa0Akzcstl1SMtwDoRzjmcTROykJdwKJtaJxZRIGlRVCMltUFAY4ZhUB4tGCgMcA33gxCzBlVHYwYhZluScvygwDILSEtwzxFKBXsB08Y0jGjOTDTLrqW8oUSlW4jSiCXKv+Cr4GGGyU+x5GGyn2BZz24zZUeigrcxDKI+cDBHl8oTAjMAzI2gEYV+sMDYbQwJkbQIRcl/aiyWEmfw+8RRPyNkQWf/2Q==");
                   ByteArrayInputStream baisJPG = new ByteArrayInputStream(b64DecodedJPG);
                   ImageDecodeParam param = null;
                   ImageDecoder dec = ImageCodec.createImageDecoder("JPEG", baisJPG, param);
                   RenderedImage op = dec.decodeAsRenderedImage();
                   // Create the TIFF G4 image
                   FileOutputStream fs = new FileOutputStream("radar.tiff");
                   TIFFEncodeParam tiffparam = new TIFFEncodeParam();               
                   tiffparam.setCompression(TIFFEncodeParam.COMPRESSION_GROUP4);
                   ImageEncoder enc = ImageCodec.createImageEncoder("tiff", fs, tiffparam);
                   ParameterBlock params = new ParameterBlock();
                   params.addSource(op);
                   RenderedOp image2 = JAI.create("scale", params);
                   enc.encode(image2);

Maybe you are looking for