Problem Printing Images Using JAI

I'm using JAI in an application that prints images. My program works fine on my development machine (Windows XP), but when I put it on my Windows Server 2008 r2-64 bit, it crashes for certain images (these are large images of land plats) that go to a particular printer (OCE PlotWave 300) It prints my smaller images that are printing on a variety of printers just fine (images of Mortgages etc..) and it prints everything just fine on my development machine. What could possibly be causing this?
Edited by: LongStranjeTrip on Feb 2, 2011 4:34 PM
Edited by: LongStranjeTrip on Feb 4, 2011 8:11 AM

I'm using JAI in an application that prints images. My program works fine on my development machine (Windows XP), but when I put it on my Windows Server 2008 r2-64 bit, it crashes for certain images (these are large images of land plats) that go to a particular printer (OCE PlotWave 300) It prints my smaller images that are printing on a variety of printers just fine (images of Mortgages etc..) and it prints everything just fine on my development machine. What could possibly be causing this?
Edited by: LongStranjeTrip on Feb 2, 2011 4:34 PM
Edited by: LongStranjeTrip on Feb 4, 2011 8:11 AM

Similar Messages

  • Print Images using FOP

    Can we print images using FOP by taking it from the database ? Iam using the FOP and outputing to a PDF. However, I have an image that I would like to print. The image is stored in the database as a BLOB. How can I print this image in the PDF document ?
    (b) Alternatively, if this is not possible, do we need to move the image to a physical file system and use <img src> and print ? If so, how can we move the image to the file system ? I found only UTL_FILE can do this ? But Iam not sure if it can work properly for Image file. When I tested this using utl_file, my image file got corrupted.

    Hi there, from what type of device are you trying to print the images from e.g. a smartphone/tablet or a PC/laptop?
    Best
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

  • Saving a Gif image using JAI (Java Advanced Imaging)

    I'm trying to read in and save out a bunch of gif images in JAI. I'm reading them in, resizing them, and then saving them back out, all in gif format.
    For some reason some of my gif images work fine, and some don't throw any errors, but save as 0k size.
    When I do img.getColorModel().toString(); I get the following output for images that do work:
    IndexColorModel: #pixelBits = 8 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@1bbf1ca transparency = 1 transIndex = -1 has alpha = false isAlphaPre = false
    And the following output for images that don't work:
    ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@1bbf1ca transparency = 1 has alpha = false isAlphaPre = false
    If I try to save the images that don't work out as jpg's they work fine, but if I try to save them out as gif's, I get 0k files.
    Any insight on how to correct this problem?
    I assume it has something to do with the 24 numComponents in the non-working gifs, but I'm really not sure.
    Please help.
    Thanks.

    Can you post your image property?
    Try using this for image compression:
    int pixelSize = img.getColorModel().getPixelSize();
    if (1 == pixelSize) {
    tiffEncodeParam.setCompression(TIFFEncodeParam.COMPRESSION_GROUP3_2D);
    } else if (8 == pixelSize) {
    tiffEncodeParam.setCompression(TIFFEncodeParam.COMPRESSION_DEFLATE);
    } else if (24 == pixelSize) {
    tiffEncodeParam.setCompression(TIFFEncodeParam.COMPRESSION_JPEG_TTN2);
    Thanks,

  • For those of you having problems printing images/pdf

    I spent awhile figuring this out as my Samsung ML-1630 printed text from TextEdit fine via Time Capsule USB, but I kept getting either errors or nothing at all when I attempted to print a PDF, web page, or image. Here is how I got it to work (I have only tested it on a Samsung ML-160 printer, but it should work for others having similar problems)
    1. Open "Print & Fax" in System Prefs
    2. Add a new printer.
    3. (important!) Choose IP at the top.
    4. For "Protocol" choose "HP Jetdirect - Socket"
    5. For "Address" use the local IP address of your Time Capsule - you can find this by opening the AirPort Utility -- mine was 10.0.1.1 by default.
    6. For "Print Using" select your printer driver
    7. Click "Add" and you should be able to print anything now
    This workaround is probably due to a driver issue, but I am not for certain.

    Thanks,
    This worked for printing images, but it is PAINFULLY slow. took 3 minutes or more to print a simple graphic file
    Message was edited by: AceMT

  • Problem seeing images using Firefox

    I have a problem seeing images when using Firefox. I can see them at first, but when i scroll down they dissappear until I get to a certain point on the screen (like when the images are at the top of the firefox screen) then I can see them. Was wondering if anyone knew what the problem could be?

    from the system details you've submitted it appears that you have the foxit reader pdf plugin on your system - it's known to cause problems with hotmail since firefox 12. disable it in firefox > addons > plugins until there's an update by foxit which fixes the issue

  • I'm having a problem printing envelopes using OS 10.10.1 Yosemite.  Can I download an earlier version that HP thinks will work?

    I'm having trouble printing envelopes using OS 10.10.1 Yosemite.  Can I download an earlier version as HP support  (my printer) advises?

    Open System Preferences, choose Printers and Scanners, and you can change the default paper size, which includes different Envelope sizes. My HP printer has the image for the direction of the envelope. I have the OfficeJet 4630, and am currently using the Yosemite defaulted drivers after updating.
    an after note here:
    I had issues with my printer at first as well after installing Yosemite but deleted my old HP utilities, then allowed Apple default HP driver in, then re-downloaded HP drivers, and this worked for me in all formats, including printing envelopes.

  • How to retain the same resolution while croping a tiff image using jai api

    Hi all,
    I have designed a program to crop a tiff image.But after croping the tiff,the resultant file resolution is not the same as the original source file.
    In the program,the source file Nadeshiko_v1_02.tif has the resolution(X) of 1200 DPI and resolution(Y) has 1200 DPI pixels.
    But after croping the resolution of output file is 100 DPI.
    Please give me some idea on how to retain the same resolution.
    <code>
    package jai;
    import java.awt.Frame;
    import java.awt.image.RenderedImage;
    import java.awt.image.renderable.ParameterBlock;
    import java.awt.image.renderable.RenderableImage;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import javax.imageio.*;
    import javax.imageio.stream.ImageOutputStream;
    import javax.media.jai.Interpolation;
    import javax.media.*;
    import javax.media.jai.JAI;
    import javax.media.jai.PlanarImage;
    import javax.media.jai.RenderedOp;
    import javax.media.jai.widget.ScrollingImagePanel;
    import com.sun.media.jai.codec.FileSeekableStream;
    import com.sun.media.jai.codec.SeekableStream;
    import com.sun.media.jai.codec.TIFFEncodeParam;
    import javax.media.jai.OperationDescriptorImpl;
    import java.io.*;
    import java.util.Iterator;
    import javax.media.jai.operator.*;
    // import javax.media.jai.widget.ScrollingImagePanel;
    public class crop {
              /** The main method. */
    public static void main(String[] args) {
    /* Validate input. */
    /* if (args.length != 1) {
    System.out.println("Usage: java JAISampleProgram " +
    "input_image_filename");
    // System.exit(-1);
    float a=(float) 70.3;
    float b=(float) 70.4;
    float c=(float) 3100.3;
    float d=(float) 5522.4;
    * Create an input stream from the specified file name
    * to be used with the file decoding operator.
    String TIFF="TIFF";
    FileSeekableStream stream = null;
    try {
         stream = new FileSeekableStream("D:\\tif images\\Nadeshiko_v1_02.tif");
    // stream = new FileSeekableStream("D:\\tif images\\Nadeshiko_v1_01.jpg");
    } catch (IOException e) {
    e.printStackTrace();
    System.exit(0);
    // Load the source image from a Stream.
    RenderedImage im = JAI.create("stream", stream);
    RenderedImage image2= CropDescriptor.create(im, a, b, c, d, null);
    ScrollingImagePanel panel = new ScrollingImagePanel(image2, 100, 100);
    // Create a frame to contain the panel.
    Frame window = new Frame("JAI Image Cropping");
    window.add(panel);
    window.pack();
    // window.show();
    // Define the source and destination file names.
    // String inputFile = "D:\\tif images\\Nadeshiko_v1_05.tif";
    String outputFile = "D:\\tif images\\Nadeshiko_v1_04.tif";
    // Save the image on a file. We cannot just store it, we must set the image encoding parameters
    // to ensure that it will be stored as a tiled image.
    TIFFEncodeParam tep = new TIFFEncodeParam();
    tep.setWriteTiled(true);
    tep.setTileSize(80,80);
    JAI.create("filestore",image2,outputFile,"TIFF",null);
    try {
                   stream.close();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    </code>
    Thanks,
    Sanat Meher

    Try the following,
    TIFFEncodeParam tep = new TIFFEncodeParam();
    // Create {X,Y}Resolution fields.
    TIFFField fieldXRes = new TIFFField(0x11A, TIFFField.TIFF_RATIONAL,
                                        1, new long[][] {{DPI_X, 1}});
    TIFFField fieldYRes = new TIFFField(0x11B, TIFFField.TIFF_RATIONAL,
                                        1, new long[][] {{DPI_Y, 1}});
    tep.setExtraFields(new TIFFField[] {fieldXRes, fieldYRes});

  • Unable to print images using ENVY 4500 - a red x appears

    I am unable to print certain images and instead see a red x where the image should be.
    This worked fine for a similar image a month ago.
    How can this be resolved?

    Hi there, from what type of device are you trying to print the images from e.g. a smartphone/tablet or a PC/laptop?
    Best
    If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
    If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
    I am an HP employee.

  • How to display large image using JAI

    dear all,
    could anyone tell me how do i display an image which is around
    5000x5000 pixels in JAI. I try to use BufferImage to store the image
    but JVM throws" out of memory " error while program is running.
    thanx a lot!

    just a rough estimate, but a 5000x5000 image would require at least 24MB assuming each byte is one pixal, I believe they are 4 bytes per pixel in RBGA format. (5000*5000) = 25,000,000 pixals /1024/1024 = 23.8MB for 1 byte pixals, *4 for 4 byte = 95.3MB. I'm pretty sure that this is how it stores it. Maybe I'm wrong but it certainly explains the situation. assuming you have at least 256MB ramm, run java with -Xmx200M and see what happens.
    java -Xmx200M app
    or if you have more ramm, like 512, use 450 or 500.

  • Windows 98 problem printing Images?

    I am able to print an Image from file at work on NT. However, when I develop at home on Windows 98 the printer job just spools and never prints.
    I have a HP Deskjet 932C printer at home. Any chance HP software is overriding ability to print from DOS java application? I shut down several background tasks, Nortan AV(as I've heard this slows down resources).
    I really don't know what else to try. Any help would be awesome.
    (what's weird is it will print everything else (drawString(), drawRect(), on 98 but not drawImage()?
    thanks ahead of time,
    jmschrei

    Was a HP Deskjet driver problem.
    Figured it out.
    jmschrei

  • Problem grabbing image using libdc on ubuntu 12.10,build on new firewire-stack unibrain fire-i camera

    i am new to digital camera softwares.i am using unibrain fire-i camera on ubuntu 12.10 .firewire stack is new,i am using libdc1394 for grabbing images.i try to execute the example program grab-gray-image.the output image file is not giving result what i expected . i try to grab a human face image.i am adding this as an attachment. the camera parameters are as follows.
    Brightness:
    RC MC (active is: AUTO) AC (active is: AUTO)
    min: 128 max 383
    current value is: 304
    Exposure:
    RC MC (active is: AUTO) AC (active is: AUTO)
    min: 0 max 511
    current value is: 511
    Sharpness:
    RC MC (active is: MAN)
    min: 0 max 255
    current value is: 80
    White Balance:
    RC MC (active is: AUTO) AC (active is: AUTO)
    min: 0 max 255
    B/U value: 95 R/V value: 87
    Hue:
    NOT AVAILABLE
    Saturation:
    RC MC (active is: MAN)
    min: 0 max 255
    current value is: 90
    Gamma:
    RC MC (active is: MAN)
    min: 0 max 1
    current value is: 1
    Shutter:
    RC MC (active is: MAN)
    min: 0 max 7
    current value is: 6
    Gain:
    RC MC (active is: MAN)
    min: 0 max 255
    current value is: 87
    Iris:
    NOT AVAILABLE
    Focus:
    NOT AVAILABLE
    Temperature:
    NOT AVAILABLE
    Trigger:
    NOT AVAILABLE
    Trigger Delay:
    NOT AVAILABLE
    White Shading:
    NOT AVAILABLE
    Frame Rate:
    NOT AVAILABLE
    Zoom:
    NOT AVAILABLE
    Pan:
    NOT AVAILABLE
    Tilt:
    NOT AVAILABLE
    Optical Filter:
    NOT AVAILABLE
    Capture Size:
    NOT AVAILABLE
    Capture Quality:
    NOT AVAILABLE
    i am unable to identify the problem .please anyone help me.
    Thanks in advance.

    Excellent Blog. Thank You
    Small clarification on Step **6) Oracle Home Directory, ...a) Resize the Root Partition**
    Ubuntu 11.10 has Gparted available as a Ubuntu software download, DONT use that while trying the above step, instead download the ISO file from http://sourceforge.net/projects/gparted/files/gparted-live-stable/ gparted-live-0.12.0-5.iso (124.6 MB)
    Burn that ISO file on a Blank DVD, reboot the Ubuntu , during startup select Boot from DVD Option if not already selected. this will take to Boot Menu Options of Gparted Live then select the first menu option, and this allows to do further action such as Re-sizing .
    and once you have chosen and executed step a) . do NOT run step b) also that is "Setup External Storage"
    I hope this minor clarification can avoid some confusion
    Regards
    Madhusudhan Rao
    Edited by: MadhusudhanRao on Mar 24, 2012 11:30 PM

  • Problem sharing images using Photoshop Album Starter Edition 3.2

    Just installed this program and can't seem to email an image. It goes through the processes and the email box pops up with the attachment and when I click on send, it saves and closes. Where does it save and close to and why isn't it sent immediately. Thank you for your help. I am beginning to feel like a dunce.

    Hi Mattie,
    The role of this program while mailing ends with the popping up of the email box.Any error that occurs afterwards must be due to the mail client.Which mail client are you using?You have mentioned that it saves and closes, so is there any message that is popped about it being saved?
    Cheers,
    Chhaya

  • Print image using java

    Dear All,
    Can any one help me, how to print the image in java.
    Thanks in Advance.

    [http://java.sun.com/products/java-media/2D/index.jsp|http://java.sun.com/products/java-media/2D/index.jsp] will help you . Java 2d also have print api.
    you look at this
    [http://java.sun.com/javase/technologies/desktop/printing/|http://java.sun.com/javase/technologies/desktop/printing/]

  • Problem printing Report with Image in BI Publisher 11g

    I am working with BI publisher *11g* but I have problem printing images. Everything works fine if I do not include any images however when I add a image I get following problems.
    When I tried printing PDF in output I get
    Type /Xobject
    subtype /Image
    Filter /DTDDecode .......
    When I tried printing HTML output I get
    Type /Xobject
    <html...
    ....>
    When I tried printing RTF I get
    { \fontb1 }
    { \f0 Arial;}
    { \f1 Times:}
    I think I am missing some BI publisher configuration. Can you help me in this regard.
    Thanks,
    Santosh
    Edited by: user4956795 on Jan 16, 2012 2:08 PM
    Edited by: user4956795 on Jan 16, 2012 2:18 PM

    Isn't there a way for you to do this via a Package/Procedure versus having multiple queries?
    Per the BI Publisher guide,
    Following are recommended guidelines for building data models:
    Reduce the number of data sets or queries in your data model as much as possible. In general, the fewer data sets and queries you have, the faster your data model will run. While multiquery data models are often easier to understand, single-query data models tend to execute more quickly. It is important to understand that in parent-child queries, for every parent, the child query is executed.
    You should only use multiquery data models in the following scenarios:
    To perform functions that the query type, such as a SQL query, does not support directly.
    To support complex views (for example, distributed queries or GROUP BY queries).
    To simulate a view when you do not have or want to use a view.
    Thanks,
    Bipuser

  • Anyone having problems printing with aps?

    Any one having problems printing while using an ap?

    you need the drivers...
    win 7 32 bit:
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=439154&p...
    win 7 64 bit:
    http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=439154&p...
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

Maybe you are looking for

  • [DBNETLIB][ConnectionOpen (ParseConnectParams().]Invalid connection on server 2008 R2

    I am getting the above error when trying to instal the WSUS role on a Windows Server 2008 R2. I put in the ServerName\Instance just like the wizard asks but I get the Invalid Connection error above. I can make an ODBC connection to the server just fi

  • Sorting Article Attribute

    hi How do we control the sorting of article attributes in a web template? At the moment we can choose to add any of the article attributes to the report, but they are not sorted in any decent manner, which makes scrolling them to find the required at

  • OS X accessing iTunes Library inside Parallels-Windows

    Hello, over the last year I have built up quite a big iTunes library with content from the iTunes store (950GB, + approx. 25GB each month). (Its a family library, no addicts at work here ) Now I need a way to securely store my files, since they have

  • Indepth information about Solaris Installation

    Hi, where can I find in-depth information about the installation process for Solaris (6, 7 and 8) on Sparc machines? for example I need to know: There seems to be a limit for the length of the parameter of the (OBP) boot command. How long can the par

  • Number of Services

    As a newbie to OS X server, I am proceeding with extreme caution. Right now we are running DHCP, DNS, OD (not using yet), and SMB. Is there any problem adding AFP with some share points to the server workload? We serve 50-60 client computers. norm