AffineTransformOp - ImagingOpException: Unable to transform Image

Hello,
I'm trying to resize a BufferedImage with the AffineTransformOp, in the code to half its size. But the only thing i get is an ImagingOpException.
File f = new File("images/male1.png");
BufferedImage imgA = ImageIO.read(f);
t = new AffineTransform(0.5, 0, 0, 0.5, 0, 0);          
xform = new AffineTransformOp(t, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
fimg = xform.createCompatibleDestImage(imgA, getColorModel());
xform.filter(imgA, fimg);The code throws:
java.awt.image.ImagingOpException: Unable to transform src image
help please :)

Hi
BufferedImage scale(image,horizontal,vertical) {
transform = new AffineTransform();
transform.scale(0.5 ,0 .5); //Note This
op = new AffineTransformOp(transform,AffineTransformOp.TYPE_BILINEAR);
return op.filter(image,null);
Vinoth

Similar Messages

  • ORA-29400: data cartridge error/IMG-00703: unable to read image data error

    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
    ORA-29400: data cartridge error
    IMG-00703: unable to read image data
    ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 75
    ORA-06512: at "ORDSYS.ORDIMERRORCODES", line 65
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 37
    ORA-06512: at "ORDSYS.ORDIMAGE", line 927
    is raised when the following trigger is processing certain JPGs (example). Other JPGs are handled as expected:
    create or replace trigger photo_size_trg
    before insert or update on photos
    for each row
    declare
      photo_width integer;
    begin
      -- Check to see if the new photograph is different from the old one...      --
      if dbms_lob.compare(:old.photo, :new.photo) != 0
      then
        -- ...if so, check to see if it's wider than the desired 250 pixel        --
        -- maximum...                                                             --
        photo_width := to_number(ordImage.getMetadata(:new.photo)(1).extract('/ordImageAttributes/width/text()').getStringVal());
        if photo_width > 250
        then
          -- ...and if so, apply an image transform that will resize to the photo --
          -- to a maximum of 250 pixels wide, keeping the original aspect ratio.  --
          -- There doesn't seem to be an elegant way of specifying a constraint   --
          -- in one dimension like this, so the height is specifed as a large     --
          -- enough value to cover all practical contingencies.                   --
          ordImage.process(:new.photo, 'maxScale=250 10000');
        end if;
      end if;
    end;Any thoughts/suggestions?

    hi,
    I am getting following error,kindly help me out to rectify this ..
    thank you
    ORA-29400: data cartridge error
    ORA-00600: internal error code, arguments: [kokbCollTerminate], [13], [], [], [], [], [], []

  • Unable to create image buffer after RAM preview

    Running into an odd and frustrating error. Built a comp using the new Ray-traced 3D renderer and now I'm regretting being an early adopter big time with all the problems I've been encountering with it. The latest comes whenever I do a longer RAM preview in an attempt to watch the whole duration of my comp. It will get to about 170 frames or so, at which point I've interrupted by pressing spacebar because I don't need to see all the way to the end of my work area (around 220 frames). It'll play the RAM preview back fine, and even loop it, but as soon as I stop playback, I get this error message: "After Effects warning: Unable to create image buffer." There's only one button: "okay" and as soon as I click it the same error pops up again and it will never go away, forcing me to close AE from the task manager. I've taken to saving before every RAM preview like I used to do with Flash before previewing my buggy swfs for fear I'll lose all my work after previewing. Any ideas about what might be causing this?
    Some more details about my comp:
    1920x1080 @ 29.97
    Ray-traced 3D
    About 70 3D layers (I'm guessing this is my downfall - new renderer not designed for this many layers?)
    Running Windows 7 Professional
    i7 2600K
    32GB RAM
    2x GTX 570 video cards running latest driver (301.42, CUDA 4.2.1)
    508GB free on my 2TB internal drive where the project and cache lives
    From my GPU info window in case it's useful:
    Fast Draft:
    Available
    Texture Memory:
    600.00 MB
    Ray-tracing:
    GPU
    OpenGL
    Vendor:
    NVIDIA Corporation
    Device:
    GeForce GTX 570/PCIe/SSE2
    Version:
    3.0.0
    Total Memory:
    1.20 GB
    Shader Model:
    4.0 or later
    CUDA
    Driver Version:
    4.2
    Devices:
    2 (GeForce GTX 570, GeForce GTX 570)
    Current Usable Memory:
    1.04 GB (at application launch)
    Maximum Usable Memory:
    1.25 GB

    Yeah, some buffer is very likely not flushing when you interrupt the preview and then there is no more memory on the graphics hardware. Consider setting the work area and your preview options to use only the work area. if it finishes the preview "correctly", it may not suffer the issue. Beyond that - raytracing doesn't/ shouldn't care about the number of items. The math is such, that it makes no difference whether you render a million polygons or just one. Of course there are still limitations due to the GPU dependency, but I doubt you ever truly exhaust the cards' geometry buffers. Compared to pixel data that is a small amount...
    Mylenium

  • Unable to open image in camera raw in CS3

    I have CS3 and I'm unable to open images in camera raw.  I updated to 4.6 but it hasn't helped, and I've tried suggestions such as "open as" and then "formats" and choosing "camera raw"...still doesn't work.  Adobe is not able to help me over the phone due to the older version of Photoshop...any thoughts or help?  Thanks so much.

    A critical piece of information would be what camera model the RAW images you're trying to open are from.
    Each model camera must be supported specifically in Camera RAW.  If your camera is newer than the latest ACR version available for your Photoshop version then you'll be unable to open the RAW files in ACR.
    Three solutions are:
    Use the latest version of the free DNG Converter from Adobe Updates < http://www.adobe.com/downloads/updates > to convert each RAW file to a DNG and then that DNG will be openable in the older ACR version.  You may need to change the ACR-version compatibility setting in the DNG Converter.  This solution is free but doubles your storage space if you keep your original RAW plus the DNGs.
    Buy Lightroom (which is less than half the price of Photoshop) and continue to use your older Photoshop with it.  The adjustments you do in LR are the same as you'd be able to do in ACR (actually more because the newest version of LR and ACR have more adjustments)
    Upgrade to or buy the latest version of Photoshop, depending on your upgrade availability.
    I personally have both Lightroom and Photoshop and use LR 90% of the time.

  • Unable to upload images

    As of a few days ago I am unable to upload images online. First I noticed it with a Mixbooks and then with Ebay. In some cases it starts to load it and then starts over and over without any success. On Ebay it just sits there preparing to upload. I tried uploading it from iPhoto and then from my desktop with the same results. The internet connection is good and firewall isn't an issue. I'm running the latest Snow Leopard version on a 6 month old 27" iMac. Any suggestions?
    Thanks

    Hi
    On the WIKI there is a place to report performance issues:
    https://lab.msdn.microsoft.com/mailform/contactus.aspx?refurl=http://technet.microsoft.com/wiki
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • We are trying to transfer files from PS Elements 13 to our web builder.  We are getting a '?' in the top left hand corners of some of the image boxes. It seems that we are unable to transfer images with this ? on the image.  We have spent a long time taki

    We are trying to 'reconnect' files.  we seem incapable to do so, for some reason.  Try as we might, we aren't able to do it.  can anyone help?

    Please see other thread
    Re: We are trying to transfer files from PS Elements 13 to our web builder.  We are getting a '?' in the top left hand corners of some of the image boxes. It seems that we are unable to transfer images with this ? on the image.  We have spent a long time

  • Unable to import images to iMovie, or copy and paste images.

    As the title states, I am unable to import images from either iPhoto, the iMovie photo selector, or finder. Furthermore I cannot copy the rest of my timelapse from a second project into the origional, it just pastes one image in a different size and quality many times over. I was able to make a time lapse not more than five days ago before the update, so what gives? I am very frustrated. Everything is slow, it eats up all of my ram, and will freeze when I attempt to import images. I have all the updates, new retina pro, reinstalled iMovie; all the basic steps.. These are all images from a GoPro camera, and the first timelapse used all of the same files, I know it isn't a .jpeg problem or anything like that. So far it seems like a complete software failure and it is beyond my hands now but I would greatly appreciate some input.
    Thanks.
    Jake.

    So if you select a protion of a clip, it gets outlined in yellow, and then when you mouse over it the cursor should be a little hand icon.
    If you're not seeing that, you've got a problem.
    Do you have another user account on your computer so you can try to see if you have the same issues? Maybe even create a new one for testing purposes.
    Are you near an Apple Store you could drop by?
    I'm not sure what else to suggest.
    Matt

  • Unable to insert images in this forum using Mac OS

    I was unable to insert images using safari or firefox. I can navigate to the desired image but cannot choose it (its grayed out).
    Tried files with different extensions such as  .png .jpg .jpeg .tiff .bmp but to no avail.
    Any ideas?

    Hi guys,
    I'm testing this with my Mac.
    Cheers!
    KarlaDJR
    Attachments:
    hp-envy-17-3d.jpg ‏50 KB

  • Unable to SEND images in BBM and What's App

    I am unable to send images in BB Messanger and What's App. The SEND oprion does not appear when i try to forward an image to bbm contact. In What's App it shows 'Upload Failed'. Apprears to be some common setting problem on the Blackberry. Any ideas of how to resolve

    Could you explain how you're going about to send an image via BBM?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Unable to view images in my document in the new Maverick Pages!

    Unable to view images in my document in the new Maverick Pages!
    Opened an old doc which had about a hundred placed jpegs in it and when I opened it, Pages said that it wasn't including the background color nor the placed images. Why?

    Hi Suresh,
    Please check that you have crystalreportviewers11 (for version XI) or crystalreportviewers115 ( for version XI R2) folder in your BO installation and your web.xml has correct reference to it. You can copy this folder over in your web application and
    Add an entry in web.xml as follows ( if it doesn't exist)
    <context-param>
      <param-name>crystal_image_uri</param-name>
      <param-value>/<your application name>/crystalreportviewers115</param-value>
    </context-param>
    crystalreportviewers11\115 have images folder which contain all the images for Logo and toolbar. Check the images folder in viewers and make sure that they exist.
    -Aasavari

  • Unable to export image from Webi to  excel.

    Hi,
    Can any one provide solution for export image from webi to excel( 3.1 & 4.0).
    Thanks,
    Praveen

    given link(https://service.sap.com/sap/support/notes/1299111) is not working.
    the above link contain
    Symptom
    Unable to Export images from a Web Intelligence report to Microsoft Excel.
    A Web Intelligence report is created using images to denote alerts. The report works OK in Web Intelligence but when exported to Microsoft Excel, the images do not display.
      Environment  
    Business Objects Enterprise XI Release 2
    Business Objects Enterprise XI 3.1
      Reproducing the Issue  
    Create a simple Web Intelligence document.
    Add a blank cell and within that cell link it to an image. (Either set as background for the cell or Image URL.)
    Save and export to Excel. The image will not be displayed.
    Cause
    Web Intelligence export engine does not support the export of images to excel.
    Resolution
    In BI4.0, Web Intelligence export engine does support the export of images to excel.
    Workaround 1 :
    Most image formats are supported in PDF export. Users may be able to use that as an alternative.
    Workaround 2 :
    If images are required in the final Excel document, the user would need to recreate those image links manually in Excel.
    Keywords
    Export , image , excel , WRC, Webi ,XIR2, XI3.1 , BI4.0
    Header Data
    Released On
    21.10.2011 14:43:35   
    Release Status
    Released to Customer   
    Component
    BI Business intelligence solutions  
    Priority
      Normal  
    Category
      Problem  
    Product
    Product
    Product Version
    SAP BusinessObjects Business Intelligence platform
    SAP BusinessObjects Enterprise XI 3.0

  • Transforms image between Java 2 and Visual J++6.0.

    Hello experts,
    Where describe that transforms image in Java 2
    to image in microsoft Visual J++6.0.
    Please help me ,thank you.
    BCH Oct 14,2004

    Eh, what?
    /Kaj

  • I am unable to export images from Aperture without crashing the app.

    Having just upgraded to Mavericks and the current version of Aperture, I am unable to export images or videos without Aperture crashing.  I'm reinstalled Aperture and done a fresh reinstall of Mavericks with no change in condition.  Any suggestions?

    Hi there mapboys,
    You may find the troubleshooting steps in the article below helpful.
    Aperture 3: Troubleshooting Basics
    http://support.apple.com/kb/ht3805
    -Griff W. 

  • Unable to transform my object

    Hi All,
    When I create rectangle box and choose selection tool, I'm unable to transform my object. I can just move my object. I've also tried view bounding box option from View menu, but it haven't resolved my issue. Please help.

    dr death,
    This is the dreaded Live Rectangle bug which is limited to the MAC versions starting with 10.7 and 10.8, but not 10.9 (Mavericks) or 10.10 (Yosemite). Hopefully, the bug will be fixed soon.
    So a switch to Mavericks or Yosemite with a reinstallation might be the way to solve it here and now.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool or the Free Transform Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Unable to remove image from photoshop

    unable to remove image from photoshop

    in the top line under adobe photoshop cs6
    the data of the 2 images appears if  i check the x it goes away  only to return the next time I close photo and reopen cs6
    same thing happens  if I close individually  or close all    seems that any I way close it  or empty  the data bar
    then close photo shop and reopen it  the 2 images are back   open photo shop from application in the application folder same thing
    cut clear grayed out under edit

Maybe you are looking for

  • CS4 error 150:30

    My Mac had to be replaced and I used my backup hard drive to load the new one.  Nothing in CS4 will boot, giving me this message about licensing. I tried to follow the instructions to repair this -- cannot locate the folders they say are buried in my

  • Cannot Change Video Resolution in Youtube

    When I try to change the video resolution in YouTube, the screen goes black and it automatically goes to 240p regardless of the resolution that I choose. It will play the video so long as it remains in its default resolution i.e. 360p or 240p. I also

  • NWDS encountered error when launching workspace

    When I launched my NWDS, the studio automatically closed after encountered error. Here is the error messages I got form the workspace /metadata/ .log: !MESSAGE Found and created an extension for Web Dynpro Metamodel: [email protected]d !ENTRY org.ecl

  • Vendor's bank account number has 19 digits.

    Dear Friends, The user has run the proposal run (T.CodeF110). The  vendor's bank account number didn't captured in full because it contains 19 digits. The SAP Note has 96624 has been implemented.As I know, all the 19 digits are not captured in F110.

  • Is the sample rate half with the snd read waveform.vi?

    Hi Guys, I plan to use the PC soundcard for data acquiring with the standard LV "snd read waveform" vi. During programming  I found that the sample rate is the half of the adjusted value. For example when I set   - the format to 8bit mono   - the buf