After rotate, display of large JPEG images very slow.
I am loading and displaying images using JAI and Java2D.
When I load a large grayscale JPEG image (300 dpi, letter size), it displays fine.
After a rotate, the next display is incredibly slow.
Source is a RenderedImage loaded from a JPEG file using:
FileSeekableStream ss = new FileSeekableStream(file);
ImageDecoder dec = ImageCodec.createImageDecoder("jpeg", ss, null);
RenderedImage source = dec.decodeAsRenderedImage(curPage);
I create a scaled image using:
interp = Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
ParameterBlock params = new ParameterBlock();
params.addSource(source);
params.add(xZoom); // x scale factor
params.add(yZoom); // y scale factor
params.add(0.0F); // x translate
params.add(0.0F); // y translate
params.add(interp); // interpolation method
RenderedOp image3 = JAI.create("scale", params);
And display inside the paintComponent() method of my JPanel-derived class using:
AffineTransform transform = new AffineTransform();
transform.translate(shiftX, shiftY);
Graphics2D G2d = (Graphics2D)g.create(); //copy g
G2d.drawRenderedImage(image3, transform);
If I add a rotate step after the scale:
ParameterBlock paramsR = new ParameterBlock();
paramsR.addSource(source);
paramsR.add(TransposeDescriptor.ROTATE_90);
// Create an operator to turn image.
source = JAI.create("Transpose", paramsR, null);
Then the next display for a 300 dpi 8 bit grayscale JPEG file can take up to 60 seconds.
The bulk of the elapsed time is inside: Graphics2D.drawRenderedImage(image3, transform);
Any ideas what I am doing wrong here?
I am relatively new to using Java Advanced Imaging.
Thanks,
T.J. Brown
Sorry, a correction.
The file is actually JPEG-compressed data inside a TIFF file.
So the decode step uses:
ImageDecoder dec = ImageCodec.createImageDecoder("tiff", ss, null);
JPEG inside a JFIF file is much faster.
Thanks,
T.J. Brown
Similar Messages
-
After installing iOS7 update my WIFI is very slow.
After installing iOS7 update my WIFI is very slow in my iPad 3rd Gen, iPhone 5 and iPhone 4. Is there a fix for this problem? I've reset my modem and AirPort Extreme 3rd gen. Problem still exists. Help
(A) Reset iPad
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected.
(B) Reset Network Settings
Setings>General>Reset>Reset Network Settings -
After installing 6.1 my downloads are very slow
After installing 6.1 my downloads are very slow
(A) Reset iPad
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected.
(B) Reset Network Settings
Setings>General>Reset>Reset Network Settings -
How to print large jpeg image on multiple sheets of paper?
I have aa Photosmart 8250 and I need to print a large jpeg photo of a wiring harness onto multiple sheets of letter size paper for clarity sake. I need the large image printed os say 8 sheets of paper in landscape mode so when you combine the sheets you have a large and accurate image. Can this be done under windows 7 64 bit? I seem to recall under XP with the HP software that you could do this, I need to do this now, under windows 7 64 bit if possible. Thanks in advance.
You can use an alternate driver with the features you want. Download the Officejet 8500 driver from HP here. When the installer prompts you to connect the printer select the checkbox for unable to select the device. After the driver has been installed click Start, Devices and Printers, right click on your Photosmart 8250 and select Printer Properties, Ports and find which port the 8250 is using. Note this for later. Next cancel this and click Add a Printer. Select the same port as you found previously for the Photosmart 8250, Next, then choose HP and the HP Officejet Pro 8500. Print a test page when you are done to verify the printer is working properly with the new driver. You can then print to this instance of printer and select Poster Printing in the main page from 2x2 sheets up to 5x5 sheets.
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
Live Cam Voice on HP DV8305 -- Video image very slow
I installed Live! Cam Voice on my HP DV8305 succussfully, it works, but the video image is very slow. it needs about 30sec to capture a frame, sometime just stucked. I changed the Display Adaptive Driver, used differrent USB IF, checked my CPU and Memery usage, my HD space, use differrent IM -- skype, MSN, .... Any one can help?
As further information, the issue seems to be with the exposure setting. When I turn auto exposure off, then set exposure down as low as it will go, the picture darkens, but the frame rate goes up. I don't have this problem with my Logitech QuickCam Orbit -- I'm not sure if the problem is with the firmware, or if the CMOS sensor in the Live! Cam Voice is just smaller.
-
After installing Mountain lion, macbook air 2011 very slow
After installation of Mountain lion my macbook air 2011 got very slow. There has been a firmware upgrade too. Can you help?
Hi guys! Just installed ML on my early 2009 MBAir (after market upgraded to a 240g SSD, but still just 2g of ram), and I panicked a bit at first when it turned out to be painfully slow and not displaying right (+slow trackpad!).
Bear in mind that the first thing ML will do is index your files for spotlight, which takes a while and is a bit of a resource hog that will slow everything else down and cause your machine to heat up.
I let it work all night, but by morning, my CPU usage was STILL at 100% and everything slow...
Activity monitor showed nothing over 10% CPU usage... First tip was to display ALL processes in Activity monitor, and not just MY processes, to see what exactly was sucking up my CPU!
Then, and it seems to often be the culprit on MBA's, it turned out that the kernel_task process was using up to 170% of my CPU usage (!). Problem is, that process sort of does a million things, so it can be hard to pinpoint the actual issue.
One of the things it does though, is work against overheating...
Given the download+install+indexing, my machine had been working all day and night, and was indeed getting super hot. Turning it off and letting it cool down for a whole fixed it all.
Kernel_task is back to normal, CPU usage is normal, display and trackpad are back to perfect. And in the end, ML is snappier than SL for me, even with the bare minimum in memory!
Good luck! <3 -
After Photoshop CC 2014 update - Photoshop is very slow (Windows 7)
After updating today to the latest photoshop cc2014 Version, Photoshop starts very slow and is not useable.
I updated from V. 2014.1.0 to 2014.2.1 20141014.r.257.
Starting Photoshop Needs 6 minutes (before 1.5 minutes). The menue and button reactiontime is more than slow, you cant work with this Setup.
Is there a Problem with the new release?
And please Adobe, dont tell me, my System has a problem. Did only an update on the CC2014 Suite via creative cloud. Old PS Version (2014.1.0)runs great.
After testing a few time, I recovered my System back to Version 2014.1.0 with Windows recovery and Photoshop works good again.
So whats wrong with the new release?
My PC config:
Adobe Photoshop Version: 2014.2.1 20141014.r.257 2014/10/14:23:59:59 CL 987299 x64
Windows 7 64-Bit
Version: 6.1 Service Pack 1
Intel CPU-Familie:6, Modell:10, Stepping:5mit MMX, SSE (ganze Zahl), SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, Hyper-Threading
Physischer Prozessor: 8
Logischer Prozessor: 16
Prozessor-Taktfrequenz: 2664 MHz
Memory: 20463 MB
Thanks for any tipp!
BR.
WernerThe CC 2014 update 2014.2.1 is a month old and ACR 8.7 is two days old. Something strange is happening to you. First try resetting your Photoshop Preferences. This is a Adobe Photoshop User forum your not dealing with Adobe here. You seem to think you are and your attitude seems like you not open to to possibility that your system may have a problem. I think you may have one..
Adobe CC 2014 Product Updates/Downloads for Windows
Photoshop CC 2014
File Download
Size
Date
Notes
Adobe Photoshop 2014.2.1 Update for CC 2014 (64-bit)
249 MB
10/20/2014
Release 15.2.1
Adobe Photoshop 2014.2.1 Update for CC 2014 (32-bit)
223 MB
10/20/2014
Adobe Photoshop 2014.2.0 Update for CC 2014 (64-bit)
249 MB
10/6/2014
Release 15.2
Adobe Photoshop 2014.2.0 Update for CC 2014 (32-bit)
223 MB
10/6/2014
Adobe Photoshop 2014.1.0 Update for CC 2014 (64-bit)
236 MB
8/5/2014
Release 15.1
Adobe Photoshop 2014.1.0 Update for CC 2014 (32-bit)
210 MB
8/5/2014
Adobe Camera Raw – ACR
Adobe Camera Raw 8.7 Update for CC
122 MB
11/18/2014
Release 8.7
Adobe Camera Raw 8.6 Update for CC
106 MB
7/28/2014
Release 8.6
Adobe Camera Raw 8.5 Update for CC
100 MB
6/18/2014
Release 8.5 -
after installing ios7 on my ipad the keyboard is very slow, delayed. text, email and passcode.
Hi Knackerman, I was racking my brain trying to think how I did this and then I remembered that at the time because of other problems I was having with my iPad and it was under extended warranty, they offered to replace it for me.
When I went to collect new one they asked if I wanted the to download iOS7 and they replied, NO, I did not, well that was enough for me and I told them to please leave it as is.
I just ignore all the reminders I receive to download iOS7 on my phone and iPad.
I am very happy with my 6 version.
I am very sorry I am unable to help, I know how you feel, I hated it, it caused so many glitches to my otherwise perfect iPad before instalment.
Overall though, I think Apple has to shake itself up, they are getting left behind in the Samsung wake. -
kindly look into this issue ASAP
including my friend am the 5th person having issue after upgrade also D pad is timing is slow
<Personal Information Edited by Host>With the URL of the feed one can check it in iTunes and submit it to FeedValidator as a first-line method of locating problems. It's nearly impossible to read right through a long feed's text looking for the one tiny error which may have borked it. With both URLs it's much easier to check things - including whether iTunes is using the feed the originator thinks it is (not always the case).
If you've been getting quick updates in the Store you've been lucky; the Store checks feeds in some sort of rotation and so it depends where you happen to be in the cycle when you upload a change. -
After update my macbook takes lot of time to start and shut down , its kind of annoying and suddenly it also changed the system date n time .
Try:
Mac Mini (Core i5)is very slow, not very responsive.
BTW, this is the Mac Pro desktop forum -
Two days ago I installed Mavericks to my MacBook Pro. The computer is very, very slow. I did not have that problem before. Also as I change between windows the whole screen is blurred with horizontal lines. Once safari, email or another app opens up it take a few minutes before I can actually use it. The cursor pauses like crazy. Quite frustrating. I checked the captibality before downloading and it met all the requirements. Help please!!
..Step by Step to fix your Mac
How to revert OS X back from Mavericks -
After installing lion on macbook mid2010, is very slow
I had installed snow leopard macbook and was very fast, change a lion and has become slow, I delete my HD and reinstall the lion had no improvement, I have 2 months after buying the machine and I repent for not having purchasedbetter macbook pro.
help please.I guess Lion wants more memory . Not just only 2 or 4 . Lion is like a Mac windows vista
Message was edited by: Mystery of life -
HT201365 after installing iO7 my i-phone 4 very slow, even when typing :(
After installing iO7 my i-hpone 4 went super slow What can I do to go back to regular speed?
DO NOT get use to it, fix it !! go to the Apple Store or something, what I did was what Lawrence Finch told me and it did NOT work, so i decided to RESET all SETTINGS and I'm back to normal speed, YESSS
NOTE (very important): BACK UP YOU i-PHONE, BEFORE YOU TRY ANY OF THESE -
After installing Lion, my iMac Intel is very slow and need to login twice.
Tried downioading another copy of Lion to reinstall, but I get an error message stating it cannot continue. Has anyone had this problem before? Thanks.
hopefully this is what you need:
Mar 13 23:53:53 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Finished operation queue
Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ->T+[DMToolBootPreference getPartitionBootability:]: inUDS=0x10ddd3c30=disk2s3=Mac OS X Install ESD
Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootable=1 (bootable right now without any further action)
Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootCapable=0 (bootable if you call MKCFPrepareBootDevice)
Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMBootSurgeryRequired=0 (for primitive MBR on BIOS, add boot block and loader)
Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMFSSurgeryRequired=0 (for primitive MBR on BIOS, add boot block and loader)
Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM ..T+[DMToolBootPreference getPartitionBootability:]: PMNewfsRequired=1 (bootable with MKCFPrep but it will rudely carve)
Mar 13 23:54:28 Peter-Andrew-Gonzalezs-iMac diskmanagementd[365]: DM <-T+[DMToolBootPreference getPartitionBootability:]: MKerr=0 out=12=0xc
Mar 13 23:54:29 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Extracting files from /Applications/Install Mac OS X Lion.app/Contents/SharedSupport/InstallESD.dmg
Mar 13 23:54:30 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Failed to write imgsrc info to nvram
Mar 13 23:54:30 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Extracting Boot Bits from Outer DMG:
Mar 13 23:54:31 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Copied kernelcache
Mar 13 23:54:31 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Copied Boot.efi
Mar 13 23:54:31 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Ejecting disk image
Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Generating the com.apple.Boot.plist file
Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Linking self-contained dmg into mutable product
Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: com.apple.Boot.plist: {
"Kernel Cache" = "/Mac OS X Install Data/kernelcache";
"Kernel Flags" = "container-dmg=file:///Mac%20OS%20X%20Install%20Data/InstallESD.dmg root-dmg=file:///BaseSystem.dmg";
Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Done generating the com.apple.Boot.plist file
Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Blessing / -- /Mac OS X Install Data
Mar 13 23:54:41 Peter-Andrew-Gonzalezs-iMac InstallAssistantTool[527]: Couldn't bless the installation disk: /
Mar 13 23:55:10 Peter-Andrew-Gonzalezs-iMac Install Mac OS X Lion[344]: Failed to remove mutable product /Mac OS X Install Data -
After yosemite update, my wifi periodically runs very slow and sometimes disconnects
Hi there,
After the yosemite update my iMac's wifi has been running super slow, nothing to do with my own internet connection as it's fine, as other computers and devices works fine on the internet.
Recently the only way that I have fixed it is to turn my wifi off, and then turn it back on again, this fixes it for a short amount of time before I need to do it again.
Any suggestions?
this was a screenshot during the time that it was running slow, during the test it went down to about 0.02 mbps download, then spiked to 2.5mbps, causing the average of 0.19mbps.
Upload speed seemed average for my internet connection.Please look over and use Troubleshooting Wi-Fi
Maybe you are looking for
-
Can I update more than one iPad and iPhone from the same MacBook pro?
Can I update more than one iPad and iPhone to ios 5 from the same MacBook pro? Our family has one MacBook pro and several iphones and ipads. No one wants to lose their iTunes music or contact list or calendars.
-
Manage Consignment Stock within Intraplant delivery
Dear Gurus, we are using Stock Transfer Orders to manage the transfer of materials between two storage locations (from A to B) within the same plant (there are two different responibilities). The steps are the following: 1. STO creation 2. Delivery c
-
DNG Converter suddenly stopped working, won't read NEF files
Hi all, I'm new here, but am looking for some help. I currently am on a mac book and run photoshop CS3. I've been shooting with a nikon d700 in raw. When I upload the photos to my computer I've previously run them through the DNG converter without a
-
I use a DAQ card to measure a voltage, and my program works. But when I create an application of my program (xxxxx.exe), there is an error: "error 10041, The specified task ID is invalid. For instance, you may have connected a taskID from an Analog I
-
"phantom" ObjectNotFoundException
A small (one servlet) application I have been asked to debug will sporadically generate many instances of the following exception. The app server gets so busy handling these exceptions that it is effectively shut down.