Losing Image Information if i save a BufferedImage to TIFF via JAI

Hi!
I have a very big problem! When i try to save a BufferedImage via JAI i lose informations about the Height and Width of the Image
My code:
pb = new ParameterBlock();
pb.addSource(bi);
pb.add("C:\\Programme\\Scan\\" + name + i+ ".tif");                         pb.add("tiff");
pb.add(null);
pb.add(null);
JAI.create("filestore", pb);When i try to read the Image the Height and Width = -1
But the bufferedImage has got the right value?
What did i wrong?
thx

Soory my fault!
The picture wasn�t fully loaded!
SHAME ON ME!!!

Similar Messages

  • Convert RTFD to Doc (without losing images)

    Hello!
    Is it possible to convert RTFD-format files to Microsoft Word (doc) format - without losing images?
    As a longtime Mac user, I have a multitude of RTF and RTFD files. I want to be able to access the contents of these files on platforms other than OS X (eg: Windows).
    RTFD is not supported outside OS X. I'll qualify this by acknowleding that since RTFD files are OS X Packages, they show up in Windows as a folder containing image files and an RTF file; some people conclude that this is acceptable since, strictly speaking, its readable by windows. I disagree because its fiddly and hack-like rather than simple, recognizable and practical like a .doc file.
    Given that I can open an RTFD file, copy/paste it's content (images and text) to a new blank Microsoft Word document and save it as .doc, it seems to me that I should be able to automate those steps using AppleScript or Automator.
    I've Googled for a solution to this but no-one else is talking about it, with the exception of:
    - the command-line 'textutil' converter, but that creates ascii files that are necessarily stripped of all images
    - converting to HTML, but that creates more than a single file (an HTML file plus a folder containing the images)
    Am I missing something really obvious?
    Many thanks!
    Peter

    Hi duncang!
    The command-line 'textutil' app strips out images and so is useless for my purposes. As you pointed out, the solutions suggested by MrHoffman and Etresoft are incorrect.
    A solution for my original post for this thread: use Apple's Pages for Mac (part of the iWork '09 Suite). I have succesfully converted thousands of RTFD files containing images into Microsoft Word (.doc) format.
    If you have a lot of RTFD files to convert, then I recommend using an applescript to automate the process.
    The applescript wizard Yvan Koenig (link) has very kindly provided a useful applescript for Pages '09 to automatically convert batches of RTF and RTFD files into Word or PDF. That guy knows what he's talking about and should be knighted for his efforts and kindness.
    Look on his Box dot net public folder (link) for a file called 'batch_Pages2Doc.zip' (created Jan 31 2013). Here is the path to the file: / for_iWork'09 / for_Pages09 / batch_Pages2Doc.zip
    - open the script in 'AppleScript Editor' on your Mac
    - read the useful instructions he provides in comments within the script
    - save it as an application so you can use it as a droplet onto which you can drag multiple RTFD files
    - you can even edit the script using his instructions so it exports PDF as well as Doc
    - it saves output to a 'wasPages_now_doc' folder on either your desktop or in your Documents folder
    I'm running:
    - Mac OS X 10.8.4
    - iWork 2009 (retail boxed edition, not Mac App Store edition)
    I hope this helps. It took me months to discover the solution to my original post.
    -Peter

  • Save a bufferedimage using 1.4

    I am trying to save the image I have tried to convert, but I am running 1.3.1. I cannot upgrade to 1.4 to use the ImageIO class. Does anyone know of a way to save the bufferedimage on marked line?
    Thanks,
    Scott
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.imageio.ImageIO;
    import java.awt.image.BufferedImage;
    public class testjpg
    public static void main(String[] args)
    File theFile = new File("C:/make_thumbs/highres/4runner.jpg");
    Image img = new ImageIcon(theFile.getAbsolutePath()).getImage();
    int iw = img.getWidth(null);
    int ih = img.getHeight(null);
    System.out.println("Original dimensions height: " + ih + " x " + iw);
    BufferedImage bufferedimage = new BufferedImage(iw, ih, BufferedImage.TYPE_INT_ARGB);
    BufferedImage bufferedimage1 = new BufferedImage(bufferedimage.getWidth() / 2, bufferedimage.getHeight() / 2, 1);
    for(int i = 0; i < bufferedimage1.getWidth(); i++)
    for(int j = 0; j < bufferedimage1.getHeight(); j++)
    bufferedimage1.setRGB(i, j, con(bufferedimage.getRGB(i + i, j + j), bufferedimage.getRGB(i + i + 1, j + j), bufferedimage.getRGB(i + i, j + j + 1), bufferedimage.getRGB(i + i + 1, j + j + 1)));
    // now take the bufferedimage to disk.
    //ImageIO.write(bufferedimage1, "jpg", new File("C:/finalfilename"));
    // can't use the above as it is too new of a api 1.4 and newer.
    static int con(int i, int j, int k, int l)
    return ((i & 0xf0f0f) + (j & 0xf0f0f) + (k & 0xf0f0f) + (l & 0xf0f0f) >> 2 & 0xf0f0f) + ((i & 0xf0f0f0) + (j & 0xf0f0f0) + (k & 0xf0f0f0) + (l & 0xf0f0f0) >> 2) + 0xff000000;

    java.util.regex.* strongly rely upon some since-1.4 core classes outside of this package, so you seem to have no lack with custom compilation (not to say of license issues).
    Use JRegex:
    http://jregex.sourceforge.net
    Regards

  • In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?

    Please don't post the same question multiple times!

  • Save Image size setting in Save for Web

    I'm using Save for Web (CS3) and scaling the file to different sizes with "scale image". I'm wanting to use the same scale settings for many images but when I save the pre-set the image size settings don't get saved. I'm wanting to use it as part of an action but the setting wont stick. Any suggestions? Alternative work flows?

    That's never been saved as part of the S4W presets. Bloody annoying.

  • Recently, I discovered I have two iCloud accounts. Is it possible to change the Apple ID from one account to match the second account, without losing the information on each account?

    Recently, I discovered I have two iCloud accounts. Is it possible to change the Apple ID for one of the accounts to match the other account, without losing the information from either account.
    thanks

    Welcome to the Apple Community.
    It's a little tricky to move data from one iCloud account to another but it can be done. But what makes you think you have 2 iCloud accounts.

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • After downloading IO6, can't capture photos from Facebook. I get "save photo" instead of "save image".  While browsing, save image comes up and photos save to camera roll.  Seems to be a problem only on FB.

    Downloaded IO6 on my iPhone 4s.  Now I can't capture a photo off Facebook to the camera roll.  When I try, I get a "Save Photo" tab rather than a "Save Image" button,  The photo does not save to camera roll.  For email images and Safari images, "save image" comes up and save to camera roll.  Seems only a problem with images on FB.  Any ideas?  Thanks

    You launched iPhoto and from its Preferences you selected Connecting camera opens.....

  • I'm looking for an app that will allow me to upload my contracts and forms to my iPad, fill in a customer's personal information, sign them, save them and email them.

    I'm looking for an app that will allow me to upload my contracts and forms to my iPad, fill in a customer's personal information, sign them, save them and email them.  I looked at easySign, Filemaker, FM Touch, Sign Docs, Zosh, Exzact, Mi-Co

    FormConnect (http://itunes.apple.com/us/app/formconnect/id432653695?mt=8&ls=1) can handle the filling out, signing, saving and emailing the contracts/forms but uploading the contract and the form is going to be a challenge because you’re dealing with paper documents that have to be scanned.  If you can convert the scanned documents into an OCR program, you might be able to copy and paste the contract without having to retype it but the form itself is probably going to have to be recreated.  Alternatively, you could use a document annotation program such as iAnnotate and mark up the contract with ink.

  • Drag an image to the desktop saves as a bmp file

    dragging an image from a webpage to Windows Explorer or compliant program (xplorer2 or Zoner, or FastStone Image or desktop etc) saves as a .bmp file (mostly!). Invariably *.bmp files are large files and since the original format would be jpg or png I have to convert back to these formats.

    It’s the single worst feature of Firefox Mozilla.
    What the point of having private browsing if this is going on.
    You find the files in (user name)/appdata/local/temp
    its a hidden folder. when i looked i 3gigs of bmp files
    that not cool at all!! gerrrrrrrrrrrrrrr

  • Inserting image to jFrame and save it in a sql database

    Hai guys, I have a problem in inseting a image in jfame and save it in database (my sql)
    does any one have an idea about this task reply me pls
    thanks
    bay !

    Use BLOB (Binary Large Object) to save your image to a database.
    As far as displaying a image on Jframe, search the forum.

  • I am trying to make a signature in MS Word (2007) which includes a jpg image, but when I save it as a HTML file and attach it the text appers OK but the image doesn't. I have tried various formats but still no luck. Can anyone help?

    I am trying to make a signature in MS Word (2007) which includes a jpg image, but when I save it as a HTML file and attach it the text appers OK but the image doesn't. I have tried various formats but still no luck. Can anyone help? edit

    C'mon! Anyone???? I'm desperate!

  • Image details lost when save as TIF

    How do you keep all the image details of an image file when you save it as a TIF? I lose half of mine.

    The exact syntax might have changed with CS4, but in the past, it was accessed via File>Browse. Bridge is a very robust file viewer and management utility. Think of Windows Explorer on steroids. It will do so many things that Windows Explorer cannot and likely will never be able to do.
    It is also a free-standing program, and there may be an icon on your desktop. Still, File>Browse (or very similar), should bring it up. It also has a great Metadata viewer and editor.
    Good luck,
    Hunt

  • Image Processor will not save files in CS5

    I use image processor to run actions on a bulk group of image files, always worked fine in CS4.  Now with CS5 the files have the action applied but Image Processor will not close the files.... that becomes a problem when I am working with a couple hundred images!  It seems to save the files fine, into the Jpeg or Tiff folder it creates during the process... it just won't close the files and give me the error: "Sorry, I could not process the following files:" 
    I am sure this is a bug, since it works fine in CS4 and the process is exactly the same in CS5.  Does anyone else have this problem?  Is there anyway to fix this?  It's a pain to go back to CS4 just to use the image processor.
    Thanks!
    Chris Kilkus
    www.kilkus.com

    I looked into it more and found the problem is that when the action runs Photoshop for some reason won't let the file save from the file menu (it's grayed out)... only "Save as" which obviously doesn't work in an action.  Strangely, the file does actually get saved in the folder that is created by Image Processor, but since "save" is grayed out, it won't CLOSE the file. There is no reason for it to gray out "save", when I play the action one file at a time it doesn't do this, only when I use Image Processor in CS5. I really don't understand why it's doing this, I think it's just a bug that needs to get fixed.  Don't have the same problem in CS4.

  • Image information when hovering with mouse?

    Hi,
    would like to display a text box when hovering over different images, showing image information (Image name, photographer etc). I.e. in the likes of the hyperlink text box that appears over hyperlinks.
    Is this possible to do in iWeb?
    Cheers!

    You can do that easily with iWeb SEO. If you're hosting your site at MobileME then launch SEO and click on the Load iDisk Sites button.
    If you're hosting on a 3rd party ftp server you will need to publish your site to a folder on your hard drive and use the Open Website button.  Afterward the site folder will need to be uploaded using a 3rd party ftp client like  Cyberduck. You could use SEO to upload the site but users have reported less than stellar results with it.  Give it a try and if it works OK for you go for it.
    Click to view full size
    OT

Maybe you are looking for

  • I can't turn on my iPOD.

    (i'm sorry for my bad english, but i will try). Okey, I can't turn on my iPod. And: I was connecting my iPod to my computer, and as usual there came a popup about iPod update something, so I thought I could do it. And when the computer were updating

  • How to reset view criteria in transient view object

    Hi, I have a view object with one transient attribute: ViewCriteria vc = null; ViewCriteriaRow vcRow = null; ViewObject vo = am.findViewObject("TestView"); vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS); Row newRow1 = vo.createRow(); newRow1.s

  • Views in query designer

    Hi, can you please tell . In the tcode:RSRT1 we have View What does it mean? Can we create views in query designer? Can we use the dictionary views in query designer? Can you please tell about? Regards Naresh

  • Formatting table cells

    I would like to how to know how to set eg. the background of a cell in table or to set the cell non-editting. I tried to solve this problem like this: for (int i = 0; i < zinsstrukturVec.size(); i++) ((JTextField)((DefaultCellEditor) jTableZinsstrukt

  • CS5 Samples Wrong Color

    I'm having issues with the eyedropper tool in Photoshop. I've found that after I add an adjustment layer, using the eyedropper tool on any given layer in the document will give me the wrong color. A color is sampled, but seems to be shifted in Hue/Sa