Sun.image.codec.jpeg package

where do i get
com.sun.image.codec.jpeg package from???
Thanks,
Dimple.

It is avalable with jdk1.2.2/1.3
http://java.sun.com/products/java-media/jai/index.html

Similar Messages

  • Com.sun.image.codec.jpeg package

    I need some help. My predecessor created an application that calls the "com.sun.image.codec.jpeg" package. The client's java installation is the standard install and does not include this package. How do I find, download and install this in the client's environment? Also the client is running NT 4.0 Workstation. Thanks!

    I need some help. My predecessor created an
    application that calls the "com.sun.image.codec.jpeg"
    package. The client's java installation is the
    standard install and does not include this package.
    How do I find, download and install this in the
    client's environment? Also the client is running NT
    4.0 Workstation. Thanks!What does "standard install" mean? What version of the jre are they using? You can find out by typing:
    java -version
    Packages that begin com.sun... aren't part of the standard API, and aren't guaranteed to be supported -- as you are painfully aware. This particular package was for doing jpeg image I/O. If your client is using jre version 1.4, you can use javax.imageio.ImageIO to do this. If your predecessor was doing some straightforward I/O, the changes could only be a few lines -- more easily done than trying to install non-standard packages...

  • Com.sun.image.codec.jpeg package license?

    Does Sun's regular Java license cover the package in question? Meaning, can it be used in commercial products and delivered to the customer with the product?
    Does it come with every JDK/JRE 1.2 ->?

    It's part of the jdk, so my guess would be yesYep. I guessed the same, but would like to have concrete info of it.:)
    I think that package is in the rt.jar in versions 1.2
    / 1.3 / 1.4. However it's a non-standard package and
    if you're using 1.4 you should use the standard
    ImageIO class.I'm using 1.3, so it should be fine. The licensing just puzzles me, because I have to know for certain if it can be freely used in commercial products (within Java license terms).

  • Com.sun.image.codec.jpeg package and different platforms?

    I heard that this package is SunOS specific. Is that true? What platforms does it support for real?
    I have been trying to find more info than just the API documentation and haven't succeeded so far. Anybody know where I can retrieve more info on that package?

    Java is platform independent right? .. bundle the packages you use (that's not in the JDK) and it will work on *nix as well.
    You can usa tool like JDeploy (use google) to find out class dependencies etc. when you bundle your JAR (although this won't work if you use class.forName() etc.);
    - bjorn

  • Com.sun.image.codec.jpeg output

    Dear developers, I must capture the message
    "Not a JPEG file: starts with"
    and the message
    "Corrupt JPEG data: premature end of data segment"
    This message does not raise none exception.
    Have you any idea?
    Thanks.

    I need some help. My predecessor created an
    application that calls the "com.sun.image.codec.jpeg"
    package. The client's java installation is the
    standard install and does not include this package.
    How do I find, download and install this in the
    client's environment? Also the client is running NT
    4.0 Workstation. Thanks!What does "standard install" mean? What version of the jre are they using? You can find out by typing:
    java -version
    Packages that begin com.sun... aren't part of the standard API, and aren't guaranteed to be supported -- as you are painfully aware. This particular package was for doing jpeg image I/O. If your client is using jre version 1.4, you can use javax.imageio.ImageIO to do this. If your predecessor was doing some straightforward I/O, the changes could only be a few lines -- more easily done than trying to install non-standard packages...

  • Package  com.sun.image.codec.jpeg

    i believe package com.sun.image.codec.jpeg does not come with the JDK...right ? where from i can download it ?
    However , i was surprised to see that JSP in tomcat is able to import
    <%@ page import="com.sun.image.codec.jpeg.*" %> // No ERROR !!

    thanks .....
    strange ......
    C:\tomcat\common\lib
    AND
    C:\tomcat\webapps\myapps\WEB-INF\lib
    No rt.jar is there .
    Anyway, where from it is downloaded if i want to use that pack ?

  • How to get import com.sun.image.codec.jpeg.*;..Help..

    I’m doing a research for video compression n I need to compress the frame as image, I want to use com.sun.image.codec.jpeg.* , but I can’t download the plugin every where. I use JDK 1.5.0 to do my java program. Does any one have a suggestion about my problem? What should I do, so I can use com.sun.image.codec.jpeg.*?
    thanks

    That is part of the following:
    [http://java.sun.com/javase/technologies/desktop/media/2D/]

  • Com.sun.image.codec.jpeg

    i'm looking for this package to include it in my webobject environement.
    I dont know were to find it exacly. (I speak french and i'm a little lost on the sun website.
    thanks

    You probably already have it. I know it comes bundled with java 1.3 and 1.4 (it might come with earlier versions too)

  • Where to download  "sun.awt.image.codec.JPEGImageDecoderImpl"/Windows

    Hello,
    I bought some Java API. These API uses com/sun/image/codec/jpeg/JPEGCodec.
    I found these clases in src.zip in java install directory.
    Then, this code has a source line
    "import sun.awt.image.codec.JPEGImageDecoderImpl;"
    Where can I find/downlad this class?
    (I work on Windows platform)

    This class is in rt.jar package
    which is in ur jre directory/lib
    Hope u got it!!
    Pradhip

  • How can i convert an image into gif file as jpeg by using com.sun.image.*

    please help me to convert an image into gif format. i have used sun's impl com.sun.image.code.jpeg package to convert a buffered image into a jpeg file. is there any implementatioln available from sun to handle gif files.

    Many. Try for instance google with 'java image encoders'. Go to the URL http://www.google.com/search?q=java+image+encoders and be amazed of the wonders of modern web search tools.

  • Image to jpeg

    From an object java.awt.Image I must obtain an object byte[] type that have to
    contain an jpeg imaging type. For doing that I am using the attached code but it
    is very slow when it is in execution and it use a lot of energy from the
    system. How can i do in order to obtain the same result most quickly?
    Thank for you help.
    javax.media.Buffer buffergrabber= frameGrabber.grabFrame();
    java.awt.Image image= (new javax.media.util.BufferToImage((javax.media.format.VideoFormat)buffergrabber.getFormat()).createImage(buffergrabber));
    int pix[]= new int[image.getWidth(null) * image.getHeight(null)];
    java.awt.image.PixelGrabber pg= new java.awt.image.PixelGrabber(image, 0, 0, image.getWidth(null), image.getHeight(null), pix, 0, image.getWidth(null));
    pg.grabPixels();
    java.awt.image.BufferedImage bufferedimage= new java.awt.image.BufferedImage(image.getWidth(null), image.getHeight(null), java.awt.image.BufferedImage.TYPE_INT_RGB);
    for (int count= 0; count< image.getHeight(null); count++) {
        for (int count_2= 0; count_2< image.getWidth(null); count_2++) {
            bufferedimage.setRGB(count_2, count, pix[count * image.getWidth(null)+ count_2]);
    try {
        java.io.ByteArrayOutputStream bytearrayoutputstream= new java.io.ByteArrayOutputStream();
        com.sun.image.codec.jpeg.JPEGImageEncoder imageencoder= com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(bytearrayoutputstream);
        com.sun.image.codec.jpeg.JPEGEncodeParam encoderparam= imageencoder.getDefaultJPEGEncodeParam(bufferedimage);
        imageencoder.setJPEGEncodeParam(encoderparam);
        encoderparam.setQuality(1.0F, true);
        imageencoder.encode(bufferedimage);
        byte MyJPEGImage[]= bytearrayoutputstream.toByteArray();
    catch(java.io.IOException e) {
        System.out.println(e);
    }

    Best to use the original.
    If youv lost it, remove any other objects over the image and size the image to fill the slide, then use export.

  • HOW do you use "com.sun.media.codec.video.jpeg.NativeEncoder"???

    Hi!! I want to know if I can use this encoder (NativeEncoder) for encoding to MJPG.
    If I do: PlugInManager.getPlugInList(new VideoFormat( VideoFormat.RGB),
                        new VideoFormat(VideoFormat.MJPG), PlugInManager.CODEC);
    I obtain only one codec:com.sun.media.codec.video.jpeg.NativeEncoder
    BUT, then, I do: codec.setInputFormat(new VideoFormat( VideoFormat.RGB))-->It returns me:NULL. why????!!!
    Regards!

    The input format may have to be more specific and suitable; eg for Windows :-
    RGBFormat(new Dimension(w,h), w*h*3, Format.byteArray, -1.0F, 24, 3, 2, 1, 3, w*3,-1,-1)

  • How to save applet in image(gif/jpeg) format

    Hi there !
    how to save applet in image (gif/jpeg) format. i have just gone through JIMI package where serilization is there ,WHERE U CAN SORE in image format ...........can anybudy help me out.........if possible then pleeez provide me some example.
    Thanks in advan...........

    I think that is possible because i have seen some commercial applets that do that.
    -http://www.izhuk.com/painter/
    -http://www.lawrencegoetz.com/programs/signature/
    Thses two saves the image in the server since applets cant write in the host they are running. Maybe it would be possible whit JFS, i don't know.
    For now I am trying to store an image draw in the applet on my server.
    My idea now is copying the image to a buffer or something, open a connection to the server and receive the image with a perl CGI.
    There is an example with text:
    -http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
    I want to do something similar but with an image.

  • Error saving TIF image with JPEG compression (IndexColorModel)

    Hi all,
    i recently came upon the following error:
    javax.imageio.IIOException: Metadata components != number of destination bands
         at com.sun.imageio.plugins.jpeg.JPEGImageWriter.checkSOFBands(JPEGImageWriter.java:1279)
         at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:694)
         at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:339)
         at com.sun.media.imageioimpl.plugins.tiff.TIFFBaseJPEGCompressor.encode(TIFFBaseJPEGCompressor.java:489)
         at com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.writeTile(TIFFImageWriter.java:1835)
         at com.sun.media.imageioimpl.plugins.tiff.TIFFImageWriter.write(TIFFImageWriter.java:2686)trying to save a tif file with jpeg compression. The code used is this:
      public static void main(String[] args) throws Exception{
        String s = "c:/sample images/gray_bug/graybug.tif";
        BufferedImage bi = ImageIO.read(new File(s));
        File outFile = new File(s + "-out.tif");
        ImageWriter writer = (ImageWriter)ImageIO.getImageWritersByFormatName("TIF").next();
        ImageOutputStream ios = ImageIO.createImageOutputStream(outFile);
        ios.setByteOrder(ByteOrder.LITTLE_ENDIAN);
        writer.setOutput(ios);
        TIFFImageWriteParam writeParam = new TIFFImageWriteParam(Locale.ENGLISH);
        writeParam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
        writeParam.setCompressionType("JPEG");
        writeParam.setCompressionQuality(1f);
        IIOImage iioImage = new IIOImage(bi, null, null);
        writer.write(null, iioImage, writeParam);     
        writer.reset();
        writer.dispose();
        ios.flush();
        ios.close();
      }The test image that creates the problem can be found here:
    http://s11.postimage.org/7wl195w8z/graybug.png
    Any ideas what might be wrong?
    I am using imageio 1.2-pre-dr-b04 and JDK 1.6.
    TIA,
    Costas

    I can't help you but here's an exercise for you. When you get an exception you can't explain yourself, try posting it in Google. With a catch: remove anything from the error message that is specific to you like a classname or a specific value.
    In this case there is nothing specific in the error message so try a search for "javax.imageio.IIOException: Metadata components != number of destination bands". One thing is for sure: you're not the first to run into this error.

  • Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    If you think you're insane now, try maintaining those pop up menus.
    As far as I know, these menus have not been updated since FW 8, so 
    they are at least two versions old.
    Save yourself a lot of grief by avoiding those menus. There are many 
    other products on the market which do a much better job of creating 
    and maintaining this type of navigation structure.
    Read this link before you climb any higher on this slippery slope:
    http://apptools.com/rants/jsmenu.php
    There was another blog post by the fellow who originally wrote the pop 
    up menu feature, but I can't seem to locate it. Even he says stay away 
    from them.
    Not the answer you probably want, but I hope it helps, nonetheless.
    Jim Babbage

Maybe you are looking for

  • BootCamp drivers crash Windows 7, slow startup, boot order?, backup drive

    I have 3 issues that may be related or possibly not related to each other. I use an iMac (currently with Leopard 10.5.8 on a completely clean installation of both Leopard and Windows 7 on a freshly formatted and partitioned drive). Issues: 1. Before

  • I can't import my Mp3 files

    I'm coming from a PC over to Mac. I have a whole bunch of MP3 that I played on my PC but when I try to import them into iTunes on my Mac nothing happens. No errors or anything, just nothing happens. Here is what I've tried. I took a thumb drive and c

  • Weird problems with ipod classic 80gb, hdd's gone?

    Hi, hope u could help me. Excuse my not fluent english, I'm not british/american so I will try to make myself as clear as possible. Thanks First of all, got iPod classic 80gb, systems Vista/XP, was trying to cope with this problem on both computers,

  • Changing the size of images displayed when a thumbnail is clicked

    In an Aperture gallery, how do I change the size an image is displayed when a thumbnail is clicked. There are sliders for changing the size of the thumbnail; I can't find an adjustment anywhere for the size an image is displayed when the curved arrow

  • Inconsistent volume levels

    I have an 80gig classic and playback of mp3's are usually very quiet compared to other ipods (previous gen 30gig) and the volume levels are all over the place. I have normalized all my files and I have no problems with itunes playback, also the volum