TIFF generated with JAI won't fax

I have tried to generate some simple black/white TIFF files with JAI, which I have then sent to a fax via a tool on an IBM AS/400. The TIFF files look fine on my computer, and the faxing tool also sends them without problems, but the result when the fax machine prints them is just some random pixels in the top of the page.
I have tried all the fax compatible encodings - COMPRESSION_GROUP3_1D, COMPRESSION_GROUP3_2D and COMPRESSION_GROUP4, with the same result.
The funny thing is, that if I open one of the generated TIFFs in IrfanView and save it again with the same encoding, the fax machine is able to print it perfectly. So there must be some settings that are changed, which also can be seen by inspecting it with a tool I found called AsTiffTagViewer.
My original file:
ImageWidth (1 Long): 300
ImageLength (1 Long): 300
BitsPerSample (1 Short): 1
Compression (1 Short): Group 3 Fax (aka CCITT FAX3)
Photometric (1 Short): MinIsBlack
FillOrder (1 Short): Msb2Lsb
StripOffsets (38 Long): 450, 490, 530, 570, 610, 650, 690, 730, 770,...
SamplesPerPixel (1 Short): 1
RowsPerStrip (1 Long): 8
StripByteCounts (38 Long): 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,...
Group3Options (1 Long): 1
After being through IrfanView:
ImageWidth (1 Short): 300
ImageLength (1 Short): 300
BitsPerSample (1 Short): 1
Compression (1 Short): Group 3 Fax (aka CCITT FAX3)
Photometric (1 Short): MinIsWhite
FillOrder (1 Short): Msb2Lsb
StripOffsets (1 Long): 8
Orientation (1 Short): TopLeft
SamplesPerPixel (1 Short): 1
RowsPerStrip (1 Short): 300
StripByteCounts (1 Long): 1101
XResolution (1 Rational): 0
YResolution (1 Rational): 0
PlanarConfig (1 Short): Contig
ResolutionUnit (1 Short): Inch
Software (10 ASCII): IrfanView
So the question is, whether someone knows which of the tags that are relevant for making it fax-able, as well as how to set them with JAI, which I haven't figured out yet.
My code:
//Read PNG file, save as TIFF
String sourceFile = "jaitest.png";
PlanarImage image = JAI.create("fileload", sourceFile);
BufferedImage bi = image.getAsBufferedImage();
OutputStream os = new FileOutputStream("jaitest.tif");
TIFFEncodeParam param = new TIFFEncodeParam();
param.setCompression(TIFFEncodeParam.COMPRESSION_GROUP3_2D);
ImageEncoder enc = ImageCodec.createImageEncoder("TIFF", os, param);
enc.encode(bi);
os.close();

Problem solved by experimenting. Don't ask me why, but it works when I do this:
param.setWriteTiled(false);
param.setTileSize(IMG_WIDTH, IMG_HEIGHT);

Similar Messages

  • An installer created with LV2011SP1 won't install on a machine with LV2013 installed

    I'm currently working on several FPGA drivers generated with Labview 2011SP1, which include a dll interface and a test program to test functionality of the dll. I used an installation pacakge to install 1) the dll to system32
                                                                   2) the .dll/.lib/.h to an absolute path on the target PC.
                                                                   3) the .exe test program to an absolute path on the target PC.
                                                                   4) the necessary NI components (The NI Labview Run-Time Engine 2011 SP1 f5 and NI R series RIO 13.1),
                                                                       via the additional installers section of the Installer dialog.
    This has been working fine, up until the customer installed Labview 2013 on his system. When I then gave him the next release of the package, it fails to install, with the message <files> "Incompatible with products already installed". Via trial and error I removed various of the 4 items listed above and the problem only disappears when 4), the NI components are removed. I then uninstalled LV2013, and retried my installation and it works. The customer doesn't need LV2013 on the machine so this fix is ok for now, but I am now concerned that all these similar packages I'm producing, delivered to several different customers, could be prevented from working if a target PC contains a later version of Labview than the one it was developed on.
    Can someone confirm this issue and how it can be rectified?
    I've found the following http://digital.ni.com/public.nsf/allkb/F41A941BE2AFAC47862574B100736584 issue which is possibly the same issue, but with a much older version of LV (I'd have expected it to have been fixed by LV2011SP1!). The fix for the above issue is to uninstall the runtime engines, however they don't appear on the list of installed NI products, and to unsintall them I apparently need to use an unsupported tool called msiblaster? Even if this worked, if the customer wanted to use LV2013 in the future, how could I support that?
    I'm getting increasingly frustrated that I spend more of my time trawling the forums finding fixes for LV bugs than trawling my own code fixing my own bugs... 

    redfrank wrote:
    I'm getting increasingly frustrated that I spend more of my time trawling the forums finding fixes for LV bugs than trawling my own code fixing my own bugs... 
    There's an easy solution to that problem.
    Write more buggy code.....
    This joke was brought to you by increasing levels of frustration during a day of non-reproducible  Real-Time benchmarking.....
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • How to get spool along with e-mail or FAX

    Hi,
    I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
    I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
    Could any one suggest me how to get spool along with e-mail or FAX option.
    Thanks in advance.

    Hi,
    check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
    hope u'll get some idea.
    Regards,
    Sneha.

  • Radio button on a from generated with PL/SQL procedure

    Hi,
    I have a form generated with PL/SQL procedure. This procedure calls another procedure on 'Submit'. If I select value for the radio button, it works fine. But if no value is given to the radio button on the form, it gives error. Is the radio button mandatory field by nature? or do I need to give default value some how? How do I make the radio button optional? so that I can call the next procedure without passing the param.
    Create or Replace PROCEDURE OBM_PROCEDURE
    htp.formOpen(OWA_UTIL.GET_OWA_SERVICE_PATH || 'process_obm');
    htp.Print('Admin ');
    htp.FormRadio('p_access_level','A');
    htp.Print('Doc ');
    htp.FormRadio('p_access_level','D');
    htp.formSubmit(cname=>'p_button', cvalue=> 'Submit');
    =================================================================
    Create or Replace PROCEDURE PROCESS_OBM
    (p_access_level VARCHAR2,
    p_button VARCHAR2)
    htp.Print('p_access_level ');
    Thanks!

    Hi
    The parameters of the called procedure should have defualt values like this
    create or Replace PROCEDURE PROCESS_OBM
    (p_access_level VARCHAR2 default 1,
    p_button VARCHAR2 default null
    htp.Print('p_access_level ');
    Thanks,
    sharmila

  • How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files?

    How can I quickly view pdf files like I can do with Windows Picture and Fax viewer for jpg files? I need to look at several thousand PDF files. It takes too long to open each one individually. The only thing I could think of is combining them into large groups and then using the Navigation index. But I like the way windows Picture and Fax Viewer does it because you can keep the files separate. Combining PDFs causes loss of individual file names. That would be a problem since I do need to have the individual file names.

    Windows Picture and Fax Viewer is a DLL and is started via a rundll32.exe call and can't be set as an application to handle images in Firefox 3 and later versions.
    Try to set Windows Picture and Fax Viewer as the default viewer in Windows, then it should be listed automatically in the Mozilla Firefox Browse dialog.
    *http://www.winhelponline.com/articles/115/1/Windows-Picture-and-Fax-Viewer-as-the-default-viewer-in-Mozilla-Firefox.html
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • My macbook pro with ret. won't send text messages!

    my macbook pro with ret. won't send text messages ever since i got the new iPad air 2 i entered the verification code and allowed it to send and receive and it still won't work both are allowed to send and receive i even tried just putting one but still won't work on my laptop...

    my macbook pro with ret. won't send text messages ever since i got the new iPad air 2 i entered the verification code and allowed it to send and receive and it still won't work both are allowed to send and receive i even tried just putting one but still won't work on my laptop...

  • Conversion program generated with errors

    in lsmw idoc method at the step 11 convert data iam getting error as conversion program generated with errors can some body help me .i assigned port ,partnertype and partner number and activated inbound processing but still getting this error.somebody pls help me its urgent.

    Hi Mamidi,
    Go to the LSMW you have choosen and if it is Recording Method you are getting this error.
    Select Goto-->Recordings.
    Select the Recording you have choosen in the Edit Mode.
    Click on the Defaults All Button and save the recording.
    Now go to the option Convert Data and check .
    You will receive a message ..Conversion program successfully generated.
    Thanks,
    Sri

  • If pdf generated with Bullzip, opens with problems in text (missing, weird characters, etc...)

    pdf opening in new tab shows problems with text. If pdf was generated with Adobe acrobat, works fine. If pdf generated with Bullzip, opens in new tab, but with problems.

    hello lwhitman, the pdf preview in firefox is still under very active development. if you find any issues please report them at https://github.com/mozilla/pdf.js/issues & provide a sample pdf-file which shows the problem.

  • .avi animations made with Flash won't work on my mac laptop (version 10.6.8) ...

    .avi animations made with Flash won't work on my mac laptop (version 10.6.8) but they used to. What is the problem?

    let me be more specific, the .avi animations will not play in Quicktime on this laptop, but they used to. When I import them into final cut express they won't show up there either. What should I do to fix this?

  • Exception obtained when invoking a web service generated with JDeveloper

    Hello,
    I tried to create a synchronous BPEL process that invokes synchronously a Java Web Service created with the JDeveloper. The web service is wrapped around a regular Java class. The new created BPEL process is successfully compiled and deployed on the server. But when I try to initiate a test instance of the process in the BPEL console, after I fill the input parameter for then process and push the "Post XML Message" button, I obtain the following error:
    Your test request generated the following exception/fault:
    BPEL Fault: {http://oracle.com/cde/util/Top300DAO.wsdl}org.apache.wsif.soap.fault{org.apache.wsif.soap.fault.object=java.net.ConnectException: Connection refused: connect}
    I looked at flow and it throws the exception when it tries to invokes the web service generated with JDeveloper.
    Do you have any hints, ideas? Thanks a lot in advance for your help.
    I want to also say that the proxy settings for the BPEL server and designer are filled. I think that they are ok because I succeeded to start an instance of another process that calls synchronously an external Web Service.
    Regards,
    Marinel

    My guess is that this is caused by the WSDL of your service having an invalid service address. Can you please take a look at the WSDL of your service make sure that the location of the address is valid? (we have seen a couple of instances in the past where the generated url did not have the right port information).
    Update that WSDL, restart the BPEL server or from the BPEL console clear the WSDL cache and re-initiate your flow.
    Best,
    Edwin

  • TOC Does Not Open in WebHelp Generated with RoboHelp 11

    The TOC does not open in WebHelp Generated with RoboHelp 11. I tried other solutions posted on this forum but no success. Any ideas? Thanks in advance for your assistance.

    Hi Jeff,
    Thanks for responding! I uninstalled and reinstalled RoboHelp 11 and the WeHelp appears to display OK now. BUT, I have graphics in my project that are not displaying, only the empty placeholder for the graphics. This was displaying fine in WebHelp generated with RoboHelp 9 but not now. I see the graphics when I do “Preview Topic” but not in the generated WebHelp. Any clues what is causing this behavior? How can I correct it?
    My tables appear very strange too. They are the default table in RoboHelp with the raised gray/silver border. However, in WebHelp, the tables appear as double solid black lines for the border. The tables appear fine in the topic but when viewed via “Preview Topic” and WebHelp output, they are double black likes. Help!
    Another thing is that I also get an occasional message about a topic that says “The reference to the file  contains illegal characters and will not be shown in Project Manager. How can this be? My css is valid and I use it in numerous help projects.
    Once again, thanks so much for your willingness to help. It is much appreciated.

  • Created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE

    Hi Experts!
    Please, anyone has already created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE??
    Could anyone help me with this requirement?
    Thanks in advance,
    Best regards

    Hi,
    I searched and found another solution, because with the code from the link above I got everytime a short dump, maybe I did something wrong.
    The solution works with Adobe Form
    1. I used the class cl_igs_chart_engine to create a chart with my data and customizing to get the binary data of the image.
    2. Convert the binary tab to xstring.
    3. You can use this xstring on the Adobe Form to display the image.
    Maybe the following tips are useful.
    *How to get the data of chart you can see in the class
    CL_TIME_CHART_SIMPLE (use cl_gui_chart_engine for the chart but  class cl_igs_chart_engine for saving the image)
    *How to bind the image to the importing parameter (xstring)
    /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
    Regards

  • Any way to convert PDF document in to Tiff format with inbuilt IBR features

    Is there any way to convert PDF document in to Tiff format with inbuilt IBR features?
    In our Webcenter Portal app, we create the PDF document with the content of ADF pages and check it in UCM using RIDC api.
    There will some batch job which will retrieve the documents from UCM and send them to client internal Document management system. The client / batch job will only process TIFF files. So we need a way to convert the PDF into TIFF. We are okie to have both PDF and TIFF stored in UCM.
    When i have done research, i could only see components like PDFexport or TIFFConverter which only converts the other formats into PDF. But i am expecting a reverse conversion. Is it possible ? Thanks

    949767 wrote:
    Is there any way to convert PDF document in to Tiff format with inbuilt IBR features?
    In our Webcenter Portal app, we create the PDF document with the content of ADF pages and check it in UCM using RIDC api.
    There will some batch job which will retrieve the documents from UCM and send them to client internal Document management system. The client / batch job will only process TIFF files. So we need a way to convert the PDF into TIFF. We are okie to have both PDF and TIFF stored in UCM.
    When i have done research, i could only see components like PDFexport or TIFFConverter which only converts the other formats into PDF. But i am expecting a reverse conversion. Is it possible ? ThanksYa actually I got a tool that could [convert pdf | http://www.allbestapp.com/products/pdf-converter.html] to other formats, including jpg and tiff. that may fit your need.
    You could take a shot through the link above.
    Edited by: user13548958 on 2012-8-23 上午10:49
    Edited by: user13548958 on 2012-8-23 上午10:52

  • REM Planned Orders being generated with Order type LA instead of PE

    Hi All,
    I'm running the Repetitive Manufacturing scenario and when I execute the MRP run for my Planned Independent Requirements, Planned orders are automatically generated with the order type LA. I understand that for repetitive manuf., planned orders should have the order typ PE.
    Is there something missing in config? How can I get the orders to be generated with the Order type PE??

    HI,
    Check the following settings which is required for REM
    1. Master Data -
    - Create Material master - MM01
    -Create BOM - CS01
    -Create rate Routing - CA21
    Create Rem profile - SPRO ->Production planning -> Rem.Manuf->Control data or use existing one
    Assign Bom seelction method = 2 & 3 (Prod version) in MRP view
    Rem MFG indicator - mrp view in MM01.
    Assign the REM profile to a material - MRP view in MM01.
    create Valid Production version - MRP view in MM01 & Check Rem mfg ind
    Assign the BOM and routings in Prod. Version
    2.For Preliminary Cost Estimate:
    Create version specific product cost collecter for Header material and preiminary cost estimate - KKF6N as per the settings in Rem profile. -
    3 For standard cat Estimate.
    create std Cost estimation(CK11n)
    std cost Estimation Mark & release(CK24)
    Thanks
    Hrishi

  • DME file, is generated with # after every word.

    Dear All~
    When I'm generating DME file, I see the file is generated with # after every word.
    Infact it should generate without #.
    Do I need to maintain any settings?
    Please share your experience.
    Thanks and regards
    Sri

    Can you please elaborate your answer.
    Please assist me understanding why are we converting LAP from Lightweight mode to Autonomous mode?
    The issue is LAP is not able to discover Controller.

Maybe you are looking for

  • How can I get Adobe Media Gallery for Bridge CS3

    I want to create an online photo gallery for 3rd party client proofing. I am using a reference book byScott Kelby (the editor of 'Photshop User' magazine) and he refers to Adobe Media Gallery: ( Bridge CS3 / Windows / Workspace / Adobe Media Gallery)

  • Key instead of text in the variable sclection screen

    Hello Experts, please clarify my doubt. My user wants to see the key instead of text in variable selection screen (in portal) for material. Is it possible to do this? Regards Prathap.

  • X.509 Web Service Authentication for ABAP AS Web Service Interaction

    We are trying to use X.509 web service authentication with SAP Web AS ABAP between 2 different SAP installations. Company 1 is trying to consume a web service set up by Company 2. Company 1 has installed Company 2's public key, generated the client p

  • Convert 24FPS NTSC to PAL with 4% time change?

    I have a 24fps HD master and I've produced NTSC SD DVDs from this using Compressor. Now, for submission to a festival in Europe, I need to generate a PAL DVD. I would be very happy to do this as a frame for frame transfer and have the overall speed/r

  • Error Message Classes for Leave Request

    Hi, I've checked every error message class I can think of but can't find the warning message: "Absence cannot be partial-day, so clock times have been removed." which is displayed in Leave Request. Does anyone know which class it is in so I can stop