Convert ico to jpeg in JIMI

Can someone show me somelight what must i do to convert ico file to jpeg file using JIMI ???Thank you

Quick note: An ICO file is just a bitmap. So what you want to do is convert a bitmap image to a jpeg image.
The code below was taken from http://forums.sun.com/thread.jspa?threadID=5343613
import java.awt.image.ImageProducer;
import com.sun.jimi.core.Jimi;
import com.sun.jimi.core.decoder.ico.ICODecoder;
import com.sun.jimi.core.ImageSeriesDecodingController;
import java.io.FileInputStream;
import java.io.FileOutputStream;
public class Testing
public static void main(String[]args)
try
FileInputStream fis=new FileInputStream("Icon8_.ico");
FileOutputStream fos=new FileOutputStream("Icon8_.jpeg");
ICODecoder icod=new ICODecoder();
ImageSeriesDecodingController isdc=icod.initDecoding(Jimi.getFactory(Jimi.ASYNCHRONOUS), fis);
while(isdc.hasMoreImages())
Jimi.putImage(isdc.getNextJimiImage(), "Icon8_.jpeg");
catch(Exception exception)
exception.printStackTrace();
}

Similar Messages

  • I have a new Sony alpha 77ii.  My PS version is 5.0.  When I open the files in Bridge, they are .ARW files.  How do I convert them to JPEG's so I can view and edit them?

    I have a new  Sony alpha 77ii.  My PS version is 5.0.  When I open the files with Bridge they are .ARW files.  How do I convert them to JPEG's or something I can view and edit?

    You can use Adobe's free DNG converter to convert proprietary raws to the universal DNG raw format. Here are the links:
    Adobe - Adobe Camera Raw and DNG Converter : For Windows : Adobe DNG Converter 9.0
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 9.0
    Converting to JPEG will be an extra step afterwards.
    Benjamin

  • Can you edit a TIFF in iPhoto 09 without it converting to a JPEG?

    I am wondering if I can edit photos in the TIFF format in iPhoto 09 without having them automatically converted to the JPEG format? I read that you should never edit a TIFF photo if you want to keep it in that format, because iPhoto will immediately convert it to a JPEG the minute you edit it without any warming.
    I am in the process of scanning thousands of slides and I don't want to scan them as TIFFs only to have iPhoto convert them to JPEGs. I will do most of my editing with Photoshop Elements 6 for Mac, but just in case I ever edit a TIFF in iPhoto 09, I need to know if it will automatically be converted to a JPEG or not.
    Today I tried editing a TIFF in iPhoto 09 and as far as I could tell, it didn't change the format to JPEG, even though I just read in the iPhoto 09 Missing Manual today that it WILL in fact change it. Am I missing something? I just assume if it still shows the TIFF extension, it has NOT been converted to a JPEG! Any help would be appreciated. Thanks, Linda

    Thanks Terence. What a relief. I still don't understand what the book I read was talking about then. Here's a quote from the section I was referring to in "iPhoto 08: The Missing Manual" book, p 91 (ISBN: 0596-516185):
    "Note, however, that the instant you edit a TIFF-format photo (Chapter 7), iPhoto converts it into JPEG.
    That's fine if you plan to order prints or a photo book (Chapter 11) from iPhoto, since JPEG files are required for those purposes. But if you took that once-in-a-lifetime, priceless shot as a TIFF file, don't do any editing in iPhoto-don't even rotate it- if you hope to maintain its perfect, pristine quality."
    After my test results, I thought maybe this was something that had changed from iPhoto 08 to iPhoto 09, so I went to the bookstore yesterday and checked the same book for iPhoto 09, and there it was, the same quote! (on a different page, of course).
    Anyway, thanks once again for your confirmation that my test was indeed correct. Linda

  • Can i open eps file in photoshop element 12 and convert it into jpeg?

    can i open eps file in photoshop element 12 and convert it into jpeg?

    You can open it in Irfanview (free), then save as JPEG.
    Download the program here:
    IrfanView - Official Homepage - one of the most popular viewers worldwide

  • I have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    i have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    Perfectly Clear is a 3rd party commercial plugin for Lightroom.
    http://www.athentech.com/products/plugins/
    Have you ever installed it as a trial in the past?

  • How do I convert a scanned JPEG file to a Word document with Acrobat pro X1?

    How do I convert a scanned JPEG document into a Word document. I have Adobe Acrobat Pro Xl.

    Was it a scan of a page with only text? Text and pictures? Or just a picture?

  • Applescript to convert PDF to JPEG using Preview?

    I know there's an existing script available on the internet that converts PDFs to JPEGs (it's here: http://macscripter.net/viewtopic.php?id=25350) BUT, for whatever reason, the quality, even when set to 600dpi, is crap. I get better results simply opening the PDF in Preview then saving as JPEG... even a 150dpi JPG from Preview is higher quality than a 600dpi file from this script I found...
    So, what I need help with is creating a applescript that converts PDF's to JPEGs using Preview (or whatever, as long as the quality of the JPEG is good). I have very little scripting experience so help is appreciate.
    Ideas?
    Thanks.

    Frank Caggiano wrote:
    Decided to finish this up as an interesting exercise. Hope you find it useful.
    One question for the  Applescripters here. The Automator action run as a shell script seems to return a list of filename aliases but the return value while looking like a list didn't behave as a list. I managed to rip it apart to get to the filepaths and the script works but it seems really kludgey . So my question is given the return of the Automator run as a do shell script what is a more correct way to handle it?
    Convert PDF to JPG
              © 2011 Frank Caggiano
              GNU Public License
              Convert pfd files to jpg images.
              The converted JPG files wil have the name of the original PDF files with the extension changed to JPG.
              The actual conversion uses the Automator action Render PDF Pages as Images.
              The user needs to create an Automator action with Render Pages as Images as the single action.
              Set the parameters for the conversion in the action.
              NOTE: this script assumes you're converting to jpg files If you select another output format in the action this script will
              need to be modified.
    -- choose PDF files
    try
              set sourceFiles to choose file with prompt "Select PDF files" of type {"com.adobe.pdf"} with multiple selections allowed
    on error msg number n
              if n ≠ -128 then
                        error "Unknow error: " & msg & space & n
              else
      quit
              end if
    end try
    -- choose destination folder
    try
              set destFolder to choose folder with prompt "Select Destination Folder"
    on error msg number n
              if n ≠ -128 then
                        error "Unknow error: " & msg & space & n
              else
      quit
              end if
    end try
    set destFolder to quoted form of POSIX path of destFolder
    -- select workflow
    try
              set workFlow to choose file with prompt "Select Work Flow" of type {"com.apple.automator-workflow"}
    on error msg number n
              if n ≠ -128 then
                        error "Unknow error: " & msg & space & n
              else
      quit
              end if
    end try
    set workFlow to POSIX path of workFlow
    repeat with sourceFile in sourceFiles
      -- get base name of the source file
              set bName to do shell script "basename " & quoted form of POSIX path of sourceFile
      -- Strip off the extension
              set text item delimiters to "."
              set bName to text item 1 of bName
              try
                        set res to do shell script "automator -i " & quoted form of POSIX path of sourceFile & space & workFlow
              on error msg number n
                        error msg & space & n
              end try
      -- Seems strange to  do it this way but it works
              set text item delimiters to "\""
              set theList to text items of res
    We go through the list of converted files. If there is more then one then the second and subsequent files
    will get and integer added to the name to avoid conflict.
              set cnt to 0
              repeat with convertedFile in theList
                        if convertedFile does not contain "alias" and convertedFile does not contain "}" then
                                  set fullPath to quoted form of POSIX path of convertedFile
                                  if cnt ≠ 0 then
                                            do shell script "mv " & fullPath & space & destFolder & bName & "_" & cnt & ".JPG"
                                  else
                                            do shell script "mv " & fullPath & space & destFolder & bName & ".JPG"
                                  end if
                                  set cnt to cnt + 1
                        end if
              end repeat
    end repeat
    Hi Frank--
    I tried the script you wrote and created the Automator workflow with the single action as requested, saved it to the desktop then selected it when your script's dialogue requested it. However, at that point your script game me the following error. Ideas? I did save the workflow as a workflow and I selected it directly, so I'm not sure why it thinks that the "workflow file does not exist" ? :
    error "The workflow file does not exist. 255" number -2700 from «script» to item

  • When I import Nikon NEF photos from my D3S, it automatically converts them to jpeg. How can I fix this?

    When I import RAW photos from my D3S, iPhoto automatically converts them to jpeg.  I want to edit my images in a RAW format.  I used to be able to save my images as a NEF in iPhoto and edit them in RAW on Photoshop.   Can this be fixed, or do I have to find a new software to manage my RAW photos?

    RAW files are just sensor dumps of the raw data and can't be viewed unless a jpeg version is created. The jpeg version of the photo is created by iPhoto for display purposes.
    Make sure Photoshop is set as the external editor in iPhoto's Advanced preference pane and that RAW files are edited when using the external editor.
    You do know that when editing a RAW photos with Photoshop from within iPhoto the edited version must be saved to the Desktop and imported into iPhoto as a new file.  

  • Can anyone tell me which product allows me to convert pdf to jpeg?

    can anyone tell me which product converts pdf to jpeg.

    Hi
    You can do this in multiple programs (photoshop, Illustrator & acrobat).
    In Acrobat just open the PDF the go to File>Export>Image>jpeg.
    In photoshop you can open the pdf the just save as .jpeg.
    In Illustrator you can open the PDF then export as a jpeg.
    Hope this helped.

  • How to view/convert IMG to JPEG

    Hi,
    Is it possible to view IMG image file (BLOB) or convert it to JPEG?
    Thank you :)

    you may use irfan-view for this

  • How do i convert raw to jpeg in aperture

    How do I convert raw to jpeg in Aperture 3 ?

    I find all this rather strange! I often convert RAW to Jpeg if I want to keep an image for reference but it doesn't merit or require the 8 to 10MB of the RAW file (on my computer, my external drive, or anywhere else). For example, I take photos of artefacts in museums, and I also photograph the labels/legends beside them, for reference. I can keep those solely as quite small Jpegs since I'm never going to want to print them.
    (No, I don't want to switch settings on the camera while I do this - I'll only forget to switch back, and then have loads of low-res Jpegs that were meant to be glorious RAW).
    In other software I've used, there's a batch convert that makes this very simple. Seems that in Aperture I'm obliged to export and then re-import. Not a big deal, but a slight pain in the arse all the same, and a little odd.
    Anyway, thanks to the above posts, I now know how to do the export-import malarkey. I couldn't find it in the manual.
    cheers,
    Helen

  • Convert RAW to jpeg

    Hello,
    I'm using Aperture to organize my photos and have been shooting in RAW. I'd say that out of 100 pics, I might take advantage of the RAW format to edit 5 of them. I'm new to photography and during the learning process have taken a lot of pics of, for example, my dog that I really don't need in RAW format but don't want to delete altogether. I intend to continue shooting in RAW, but would like to convert my older pics to JPEG as I've filled up my external hard drive that my library is kept on (I'm using a 2006 core duo macbook). I know the usual advice is "never convert raw to jpeg to save space, just buy a new hard drive," but I really don't need 500+ pics of my dog in RAW format, jpeg will be 100% fine, and don't want to shell out the money for a new hard drive right now (although eventually I will.)
    My question is: is there a way to selectively convert my photos or even entire projects from RAW to jpeg and maintain the organization structure? I know I can export to JPEG, but then I have to re-import and re-organize them all, correct? Either way, I then have to go through and delete the RAW versions, right?
    Thanks,
    John

    I have a desktop PC with 4 internal drives that I'm backing up my images to over my wireless network on a (somewhat) regular basis, so if/when the external does crash, i've got the images backed up. The problem is that I've only got a 60Gb in the laptop, and a 320Gb external that is partitioned to allot 90Gb for time machine and the rest shared between music and photos, which has filled up pretty quickly. I'm looking into a 1TB external for the future, but I really like my 320 western digital as it is USB powered and really great for on-the-go. Maybe I'll think about a smaller library on the 320 and the permanent library on the 1TB. In the meantime, I need to free up some space on the external one way or another.
    Thanks,
    John

  • Batch convert png to jpeg with custom background

    How to batch convert pngs to jpegs, but using custom background ? Is there any action or plugin for that ?

    Image Processor in conjunction with an Action (that places and positions a background for example) should suffice.

  • Converting RAW to JPEG without exporting

    Hi all
    I mostly shoot in RAW to gain the extra flexibility this offers during post.
    Once I have finished editing the RAW images in LR3, I would like to convert them to JPEG to save disk space. Is there an easy way of doing this? I currently export the JPEGs, delete the RAW images, then re-importing the JPEGs into Lightroom.
    Many thanks

    Hi gib1983,
    I can only second what dj_paige advised !
    There are opportunities when you scout your images for entirely different purposes: my most sad recent example is a good friend, died suddenly. Among our last meetings was the wedding of mutual friends, for whom I had prepared a photo book. When you deliver such to a happy couple you look for different things than when you try to find the pictures you have of your deceased friend - trying to compile something to help his parents and sisters a tiny bit. Scouting the "raw material" was a real source, especially for different crops using virtual copies.
    I find that I rarely use jpgs now, apart from temporarily while creating photo books.
    Even printing is convenient out of LR directly from the raws. Or use the print module to "print to jpg", but this time with a template that includes a caption for each image, leveraging what you entered as meta data. In former times I had done prints and hand-written such caption-info on the back - the typical content of the *shoe box archives*...
    My friends also appreciate a pdf-format from slideshow to share images with them for viewing on screen - again captions included.
    But full-sized jpgs is the rarest use case for me now. I just get them when scanning shoe-box-content for real archiving, but I would never do with them for my own shots.
    BTW I convert my proprietary raw-formats (NEF, CR2) to DNG and embed xmp-data and LR previews into them - to be on the safe side for future compatibility.

  • Possible to convert Raw to JPEG without exporting and importing?

    I have about 4,500 raw photos that I need to print on contact sheets (or print contact sheets to a PDF). I took the photos all in Raw format. Aperture, or my computer, is not powerful enough to process all of these photos onto contact sheets from the Print Images menu item; it takes several hours. I suspect I need to convert the files to a low-quality JPEG and print the contact sheets from those, which should be fine because the thumbnails are so small.
    Here's the question: I know that I can create JPEGs from these raw files by exporting as JPEG and then reimporting them into Aperture, but this seems overly complicated. Is there a way I can select a number of photos within Aperture, and then select to convert them to JPEG of a particular quality, without leaving the application? Or are the multiple steps - exporting and importing - necessary?
    Next time I'm shooting Raw+JPEG to avoid this, by the way...

    So my workaround actually worked. I exported the photos as low-quality JPEGs, reimported them into a new project, and processed a Contact Sheet off of those. To process a Contact Sheet with the raw files would have taken Aperture about 12 hours or so. To process a Contact Sheet using the low-quality JPEGs took about 10 minutes. I'm glad this worked, though I wish there were a way in Aperture to create JPEGs from the raw files without leaving the application.

Maybe you are looking for

  • GL not appearing in Profit Center Report

    Hello Gurus, A strange error is coming in SAP. I have created a GL with reference to another GL in Same chart of account and have posted few entries in that GL. But the problem is that all GL are coming except that GL in PC Trial Balance Report S_ALR

  • Adding zeros to a character string

    Hello friends, I want to add leading zeros for a field. the field is a character string. for example , data: A(5) type c. now when A  = 'ab' (non-numeric value) i want this to be converted in '000ab' so, is there any standard Function module or any o

  • Reading information from multiple arrays efficiently

    So I'm trying to make a flash application about number of felonies of different trafic violations from different years, example: In 2002 there was 9631 drunk drivers, 13481 driving without a license, 9863 speeders and 18862 who broke other laws In 20

  • Unexplained "function conflict"

    LV2013 SP1,  Win 7 The basic question is... why is this wire broken, and what can I do to fix it? See this JING: < http://www.screencast.com/t/U3h0MMGe > I have a record, called an ADDON CONTROLLER RECORD. The record contains a reference to a VI call

  • My JList does not scroll

    hello forum, my JList (indentifier=PKGList) does not scroll. Can any look at code and tell me what's the problem. Following is the code. To test this code create two files in same directory. No package statement is there in code. 1. javaEditor.java 2