Problem rotating a large image

Application description:
A JFrame with a control panel at the bottom, which contains a couple of JSlider's which controls the scaling, translation and rotation of a BufferedImage using an AffineTransform.
JDK used:
1.5.0_04
Problem description:
The application works fine when using a "normal" sized image. But when I use a large image (1600x1200) the application seems to freeze. The GUI isn't drawn, just the infamous grey rectangle. I've narrowed it down to the rotation. If I comment out the AffineTransform.rotate call, the application works fine and the very large image is displayed in all it's glory, with translate and scale still applied.
Is this due to some limitation of AffineTransform?

Scale and translate would be less intensive than
rotate.possibly, but my guess is probably not.
If you have a world matrix that everything gets multiplied through, rotate, tranlate and scale all should be pretty fast.
To rotate such a large image would be very cpu
intensive and probably require a substantial amount
of memory. You may want to check your computerAgain maybe, but IMO very unlikely. If Java uses a world matrix (and I've got no idea how else it could do things like scale or rotate) then there should be no or almost no penalty for transformations. And you certainly wouldn't need any more memory.
performance during the operation to determine if your
computer is being bogged down.Would be difficult to test for individual graphics operations, but you could check as to whether the CPU gets pinned while painting.

Similar Messages

  • Animation in illustrator cs4: pan & rotate across large image while animating text?

    Hi there -
    I have a fairly large circular starmap image - it's a fantasy piece simulating an ancient painted star map with stars, ancient constellation figures, and calligraphic text. Basically a bitmap background from PShop, vector layers with stars, constellations and text. I want to export from Illustrator to Flash a number of short 'movies' of different views of this artwork panning from one point to another with possible zoom and rotation around the image as it pans. I also want to animate one or more of the constellation shapes as the movie pans, as well as adding momentary effects to some of the text.
    I'm familiar with setting up a non-panning animation in illustrator using layers as animation 'cells' and exporting to Flash. But is it possible to do this while moving across a large piece of artwork? How can I capture and export a specific 'view' which moves across the larger image and/or zooms in or out, while also animating a shape or text glow for example? Would this be accomplished with a mask set to the aspect ratio of the final movie which is moved/resized/rotated from layer to layer?
    Is this even possible in Illustrator CS4? I'm not familiar with Premier or AE, hoping to stay within Illy and Flash.
    Thanks!

    Thanks Monica,
    After researching, it looks like Sony Vegas can be used to create a freeflowing video 'fly-over' of the artwork. And then at specific points I can import and animate the Illustrator vector pieces with After Effects - just a 'bit' of a learning curve now...

  • Loading large images

    Hi there,
    I'm facing lot of problem while loading large image (25+ MB JPG/TIFF) in editor pane using ImageIO. I always get OuofMemory exception or my machine (p4 2.4ghz/512 ddr) get hangs. Is there any way to load large images within a moment in Java? I have seen one s/w (written in vc++) that do the same. I'm trying to replicate that s/w.
    Is there any 3rd party Java API to do the same? Have you guys develop similar s/w before?
    I've tried many ways: by changing heap size, using ImageMagick, spliting the image, etc. but never get satisfactory results.
    Any help would be appreciated.
    Thanks in advance.
    -tamal

    You can use Java Advanced Image
    http://java.sun.com/products/java-media/jai/downloads/download-1_1_2.html
    this will avoid the out of memory error.
    I use it to read and show 20K*20K pixel images.
    the loading is immadiate.
    If you use javax.media.jai.widget.ScrollingImagePanel (deprecated) class to visulize the image is quite quick.
    Obviouse that if you want to visualize the entire image you will need to wait an approprite time for rescaling it.

  • Read large images fast?

    Hello all,
    I'm not sure if this is the appropriate place to post this but here goes. I am working on creating an image viewer application and so far its going great. But i've noticed one problem when reading large images typically over 1 megabyte in size. These images using <tt> ImageIO.read() </tt> takes anywhere from 1 to two seconds to finish loading. I've searched all over the web for faster methods of reading large images but I haven't had any luck. Here is an example of what code i'm using to read an image.
    try {
         BufferedImage b = ImageIO.read(someLargeImageFile); // this is slow for images over 1MB in size.
    } catch(Exception err) {
    }So my question is does anyone have any tips or tricks I could use to read large images faster. I see programs like iPhoto reading images up to 5MB in size in under one second. Just wondering what I could do to read these kind of images just as fast.
    Thank you for your help :)
    Nathan D.

    user5287726 wrote:
    What version of the JVM are you using? How much RAM is available? What OS are you running? What kind of storage are the images on? How many other users and how many other processes are fighting over that storage?
    And if the JVM is recent and has a lot of RAM available, and you have eliminated any storage bottlenecks, have you tried Java Advanced Imaging?
    http://java.sun.com/javase/technologies/desktop/media/jai/
    I've used it to process image files in the hundreds of MB size range, and while I don't have any benchmarks handy I'd be surprised if those files were processed much if any slower than the processing speed you're getting with your much smaller files.I'm using the most current JVM, lots of RAM is available the application i'm developing can use up to 1.5 GB of RAM on the current machine. I'm using Mac OS 10.6 but the problem occurs on all operating systems i've tested it on including, Windows XP, Windows Vista, Windows 7, Mac OS 10.4, 10.5, 10.6, and Linux. I develop the software on an iMac which I just recently reformatted to factory settings so there are little to no other processes fighting over that storage.
    I've heard of JAI and just really never gave it a second thought cause I never really needed any more features then ImageIO gave me. However does Java Advanced Imaging read images in a different way then ImageIO would? I'm beginning to think that it isn't so much the actual size of the file but the dimensions. Even small files in the 100kilobyte range load slow because there dimensions are large for example 3000x3000. Though i'm assuming those 100 megabyte images you processed with speed also had large dimensions?
    Now for a moment I was thinking it was something in the BufferedImage class that was taking a long time to process and not the ImageIO class. However the following proves that wrong.
    try {
         ImageIO.read(someLargeImageFile);
    } catch(Exception err) {
    }The above code doesn't even use a buffered image so I guess its down to something in the ImageIO class. I'll see if I have better luck with JAI but can someone explain why this might be faster then using ImageIO.read() or if there are any other tips or ticks to reading large images such as these faster?
    Thank you for your help :)
    Edited by: neptune692 on Jan 6, 2011 8:35 AM

  • Troubles with Large Images in CS4

    I am having a problem with importing larger images in InDesign CS4.  I need to be able to put a full page image in my product.  Smaller images are not a problem at all.  Actually, I am having a couple issues. 
    First, my ID doc is 1024x768.  When I resize an image in Photoshop to those dimensions and then import it into ID, all I get is a little tiny box.  What am I doing wrong?  I have tried mixing the image size up a bit with several different configurations, but then all I get is a little bit bigger box. 
    My main problem is when I do get an image that is large enough, it is very blurry, almost pixelated.  I have no idea what is the cause of this and would greatly appreciate a response.  Thanks in advance.

    Well, your resolution in Photoshop has only some relation to the size of your document in InDesign. Perhaps CS4 has something new that CS3 doesn't, but I can't set an Indy doc to 1027 x 768 pixels; the only measurements I get are things like picas, inches, and other non-screen measurements.
    When working in Photoshop (really not my strong point), you have control over both the image size and the canvas size, right? And one of the values you're working with is going to be pixels per inch, no? I'm guessing that a Photoshop image with a size of 1024 x 768 pixels at 72 ppi (screen resolution) is what you are placing in an InDesign document, which is simply not going to display that information at 72 ppi. It'll probably display it at 300 ppi, or something similar, no?
    This just shows you my basic ignorance of Photoshop. However, even someone as PS-impaired as myself knows that you can set the image size and canvas size in Photoshop, and this will control your number of pixels per inch. If you save a PSD or a TIFF out of PS, and you have your canvas and image settings correct, then you'll get a good idea onscreen of how large your image is inside your ID document, and what your resolution will be. In fact, InDesign will merrily let you place PSDs at whatever resolution you set up in PS. So, to sum up:
    1) Your image is being placed at a print-level resolution, which is why it's so small
    2) You determine the resolution of your image in Photoshop
    3) Bob's question bears repeating: 1024 whats?

  • Large Images + MPE Hardware = Decreased Performance?

    I have been enjoying the performance gain of using the GPU on my graphics card (GTS 250) even though it is not officially supported. I have found that some timelines that take the CPU to 95% in software mode play back using only 25% using the GPU.
    I have found only one anomaly so far and I am not sure if it is specific to the mercury playback engine using hardware, using an unsupported card, or just my card/system in particular.  If I place large (over 4,320 pixels alone the long edge) Jpeg pictures on the timeline (DSLR 1080p @29.97), animated the position and scale using the standard motion effect and apply a cross dissolve, the MPE using hardware will crash during export or bring it to a very slow grind.  It is the only case that I have found where exporting in software mode is much faster.
    However, if I reduce all the images so that the longest edge is below 4,000 pixels, the speed of the MPE using hardware returns and exports work fine.  I am curious to here if others have noticed any performance lag/problems from using large images?
    PPRO CS5 5.0
    Nvidia GTS 250
    Nvidia Driver Version 197.?

    Found it...it was on Karle Soule's website.  Here is what he says about CS5 and maximum resolutions.
    " In the Adobe Mercury Engine, the maximum timeline resolution is 10240 pixels by 8192 pixels, more than enough for any mastering resolution we'll see in the near future. The maximum resolution for clips dropped in any timeline will be limited to 256 megapixels in any direction. So, for example, footage from a 32000 by 8000 pixel sensor could be imported and dropped onto a timeline."
    From the bottom of this page: http://blogs.adobe.com/VideoRoad/mercury/
    I am sure that Photoshop does a better job scaling images, but for projects with a lot of images, it just does not seem very practical to crop/scale each image base on how much panning will be done.  My project is not slowing down due to larger images and playback on the timeline is great, I was just wondering why MPE using hardware bogs down.
    My today's standards, an image of 4,300 pixels along the long edge is not that big....
    I have found that the problem is related to the cross dissolve.  If I remove the cross dissolve the sequence will export with all the GPU goodness speed.  Make me wonder if both images have to be loaded by the GPU to calculate the dissolve.  If that is the case, then two images over 4096 would put my card over the 8192 maximum image texture...however, the GTX 285 has the same maximum image texture, so I wonder if the problem still occurs on my card/system or all GPU rendering?

  • Problem converting XPS document with large images

    Hi,
    When I try to convert XPS documents to PDF in Acrobat 9.0 Pro, I have problems with "large images". They are either truncated or scaled down. The only images that convert correctly are small images that are not stretched to fill a large area. Attached to this message is a simple example. Does anyone know a way to correct this problem? By the way, the page is slightly larger than the standard Letter size.
    Thanks!

    Thanks for your suggestion! In fact, I am the programmer who creates the XPS files from a .NET document. Our company used the method "Postscript + PDF" during a few months and it worked quite well. Recently, we introduced semi-transparent objects and fonts in our documents and the resulting PS prints look really bad. Since I can create a perfect XPS document, and since Acrobat can convert it to PDF, I gave it a try. It solved all the problems that I had with PS printing but there is that thing with images... Anyway, since Acrobat converts XPS to PDF, I guess they should try to solve the bug with the images. As for me, I will see if I can get a component to create PDF documents directly from our application.

  • Web Flash Gallery: Problem setting Large Images size

    When using the Lightroom Flash Gallery I am not able to change the size of the Large Images (Web | Appearance | Large Images | Size). When I set the size to Medium or Small, the large images always ends up with the same size as when set to Large. Only when setting the size to Extra Large there is a slight change in size.
    How can I change the Large Images size to Medium and Small?
    Jørgen Johanson

    jools2005 wrote:
    Adobe please address this issue.
    This is a User to User forum not official Adobe support. Yes, Adobe staff may participate from time to time, but not often enough that you can depend on them reading your post. Therefore, I suggest that you support a bug report using the facilities provided at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Editing very large images

    I have several very large images that require minor editing. The tasks that I require are only basic rotation, cropping, and maybe minor color adjustments.
    The problem is that the images range from 20780 x 15000 px down to 11150 x 2600 px.
    With images this size, when I try to perform any operation on the entire image, like a 3 deg rotation, fireworks simply times out. Maybe it is because it can't generate the preview image at that size, maybe it simply can't calculate the image at that size. If it is just the preview image, is there a way to lower the quality (say, jpeg quality of 5%) of the preview image only but when I export the image, I can keep it at 100%?
    Thank you,
    -Adam
    (Yes, I did search, but the forums search seemed mildly useless and engine results consistently returned nothing)

    Fireworks is not designed to work with images of this size. It's a screen graphics application. Photoshop would be a better option here, or other software designed for working with high resolution files.
    Jim Babbage

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Open Dialog box: disable image preview (For large images, it's SLOOOWWWW)

    Open Dialog box in column view:
    Can I disable image preview?
    For large images, it's SLOOOWWWW !!!!!
    ( I often work with 8000 x 3500 panoramic images )

    William
    Mostly this is a problem in PhotoshopOK, my Photoshop is still a Classic version. I was looking at one or two others, like GraphicConverter, but the only pref there seems to be to generate a Preview if one doesn't exist.
    I'll look some more—it's irritating me now

  • How to load a large image for display on the Palm PDA

    Hello:
    I have a large image I would like to display on LV for Palm PDA. The documentation states there should be a 64K chunk limitation for VIs to compile on the Palm. Therefore, I decided to break this image up into 2D arrays of less than 64K per subVI. My 3.2 Meg image therefore has about 224 2D array subVIs. My motivation is to somehow use the build array function (with concatenate inputs) to reconstruct the image at runtime. I can compile each 2D array subVI as a test, but my attempt to reassemble and compile is futile. When I try to use the build array with only 8 of these subVIs in a top level VI the compiler complains its still too big of a VI. Using get info, memory for this top level states total ~2
    3K of memory usage.
    So can someone help me with this problem. Is there another way to load this size of an image into memory so I can display it on a picture control?
    BTW, this can build on LV for PocketPC.
    Thank you
    Robert

    Hi Robert,
    You are correct in that one of the limitations of the Palm OS is that files cannot be larger than 64 KB in size (as stated on page 5-3 of the LabVIEW PDA Module User Manual). The suggested workaround is indeed to have a top-level PDA VI that calls subVIs, and this top-level VI can then have a total file size larger than 64 KB.
    My suspicion is that with the picture control on the Palm OS, even if you are breaking up the image into smaller subVIs, the process of building the array to reassemble the picture is still forcing the Palm to allocate memory for each of those 2D array subVIs to place on the top-level VI's picture control
    and thus causing the Palm to complain about not having enough memory. The LabVIEW PDA User Manual also states that "There is a total limit of 64 KB on all front panel array data". Thus, when you are trying to use the build array on the top-level VI, the 64 KB limit on front panel array data is still being exceeded -- even with only 8 of these subVIs.
    The following KnowledgeBase article KB 38EJRHFQ: How Do I Put a Picture or Image on My LabVIEW PDA for Palm Front Panel? states that as a workaround, you can shrink the size of your image by using 4-bit or 1-bit data instead of the standard 8-bit pixmap representation.
    This is really just a limitation of the Palm OS and the fact that there is simply no way of displaying that much front panel information for your picture. Either way, you would need to build up the array of pixels for your bitmap, and for a 3.2 MB image, I don
    't believe there is any way for the Palm OS PDA to display the image in its entire at once.
    Sorry about that...
    Kileen C.
    National Instruments

  • Unable to create large image file in iphoto

    I make a lot of panoramic images by stitching together overlapping images with hugin in TIFF format, then edit them in iphoto and use it to export them in jpeg format for greater versitality of use. So far I haven't had any trouble, even with large images as big as ~25,000x2000 pixels and ~90MB file size.
    However, I have come across a problem recently trying to export an edited version of a particularly large one - 38,062x1799 136MB file size. I can export an unedited version to jpeg without trouble, but when I tried to export an edited version it gave me an error saying it couldn't create the file. I looked around here for solutions and found the suggestion to check the file size in finder, it was zero. After experimenting I've found that the file size goes to zero as soon as any changes are made to the file, the edited image can still be viewed in iphoto, but does not display if you try to zoom in. I have tried making the TIFF file again with hugin to see if it is a problem with the file, but I also experience the same problem with the newly made file.
    I am working on a Macbook air (1.7 GHz Intel Core i5, 4 GB 1333 MHz DDR3 Memory, Intel HD Graphics 3000 384 MB, Version 10.7.5 OS X) in iphoto '11 version 9.2.2 (629.40). Any suggestions for getting round this issue?

    I thought of something that might help with working out what's going on.
    After I make any edits to the image, if I move on to the info tab the image initially goes a bit blurry as it often does with large images, but instead of coming up as a clear image after a few seconds like normal, I get the image I've attached here and the file size changes to zero. To be able to see the thumbnail of the edited image I need to come back out to the library again, but the file size is still zero. If I revert to original the file size is restored.

  • Is it possible to downsize a large image on the server side (before serving it to the user)?

    One of the banes of my existence is resizing the same image several times because of the various contexts it appears in. For example, the main image in an article will appear bigger than it will on the index page, where many article teasers are placed. Then there's the image that goes in the Facebook "share" og. Then there's... you get the idea.
    Same image, different contexts, lots of Photoshop resizing, lots of files to keep track of... but I save on bandwidth.
    On the flip side, I can target the same (large) image and simply downsize via traditional HTML (width/height) on the browser end, but that will mean downloading a file that is 50-75% larger than what is actually needed. If the front page teaser displays a 1280px image at 500px, that's a huge (and potentially costly) waste of bandwidth.
    HOWEVER...
    If I could do the same thing on the SERVER side... in other words, tell the server to take only the pixels it needs from the (large) image and serve only THOSE to the end user... then the same image could be used in each and every context, and only the necessary bandwidth is used.
    Is this do-able? If so, what is the process formally called, and where would I begin to learn how to do it?
    Thanks!

    That's amazing. I didn't think it was possible without saving files on the server first.
    This will suit my needs just fine, but allow me to push my luck even further with the following "hail mary" question : would it be possible for the server to serve the PNG with a width of 100% of the container? In other words, the behavior would mimic width=100% but the server would still only serve as many bytes as are needed to fill that space.
    Not only would I not have to create separate files for every resize (we fixed that problem with your suggestion) but I wouldn't even have to customize every link to a specific size.
    I'm not expecting an affirmative on this one, but it was worth asking. =)

  • How to increase performance speed of Photoshop CS6 v13.0.6 with trasformations in LARGE image files (25,000 X 50,000 pixels) on IMac3.4 GHz Intel Core i7, 16 GB memory, Mac OS 10.7.5?   Should I purchase a MacPro?

    I have hundreds of these large image files to process.  I frequently use SKEW, WARP, IMAGE ROTATION features in Photoshop.  I process the files ONE AT A TIME and have only Photoshop running on my IMac.  Most of the time I am watching SLOW progress bars to complete the transformations.
    I have allocated as much memory as I have (about 14GB) exclusively to Photoshop using the performance preferences panel.  Does anyone have a trick for speeding up the processing of these files--or is my only solution to buy a faster Mac--like the new Mac Pro?

    I have hundreds of these large image files to process.  I frequently use SKEW, WARP, IMAGE ROTATION features in Photoshop.  I process the files ONE AT A TIME and have only Photoshop running on my IMac.  Most of the time I am watching SLOW progress bars to complete the transformations.
    I have allocated as much memory as I have (about 14GB) exclusively to Photoshop using the performance preferences panel.  Does anyone have a trick for speeding up the processing of these files--or is my only solution to buy a faster Mac--like the new Mac Pro?

Maybe you are looking for

  • Question about selecting only one tree at a time...Please help

    Hi , guys does anybody know how to make only one tree selected in an application which shows three trees simultaniously. Untill now I can select both trees at a time (the third one is not implemented yet ) This is probably so because the trees are sh

  • Can we plugin Signed applet inside JSP

    HI, Can we use an applet jar file that has written to save a file inside the JSP page.If we plugin will it provide the security options.Any way is to solve this particular problem .pls give me solution. thnx, login

  • From Cover Flow repeat / play album only?

    Is there a way to have iTunes play/repeat just an album when selected via Cover Flow? (It's probably just me not seeing the option.) When one selects an album via 'Grid View -> Albums' only that album and its songs get selected. That's exactly what I

  • Jrickit 8.1 not running in SuSE Pro v8.1

    Hello: When trying to execute java -version in my just installed JRockit 8.1 on SuSE 8.1 Pro, I receive an error messaging related to a missing libbfd.so shared file, mentioning that there is no suuport for pthreads on this distribution. What can I d

  • How can I start the week on Monday?

    I would like to edit the calendar to begin the week on Monday.  How can  do that?