Very slow image operation

Hello,
I have a strange problem.
Some of my images are VERY slow to load, scale... (any image operation).
I have those 2 images :
http://193.252.5.30/tmp/cat1.jpg (25Ko : 295x551 pixels)
http://193.252.5.30/tmp/cat2.jpg (24Ko : 295x551 pixels)
I wrote a little program which load and scale the image.
Here is the result :
cat1.jpg
Time to load image : 171 ms.
Time to scale image : 157 ms.
cat2.jpg
Time to load image : 1157 ms.
Time to scale image : 2578 ms.How can this huge difference explained ?
Thanks for your help.
The program :
public class Test
     private final static BufferedImage scale(BufferedImage source, float scaleFactor)
          int width = Math.round(source.getWidth()*scaleFactor);
          int height = Math.round(source.getHeight()*scaleFactor);
          ColorModel dstCM = source.getColorModel();
          BufferedImage dst = new BufferedImage(dstCM, dstCM.createCompatibleWritableRaster(width, height), dstCM.isAlphaPremultiplied(), null);
          Image scaledImage = source.getScaledInstance(width, height, Image.SCALE_AREA_AVERAGING);
          Graphics2D g = dst.createGraphics();
          g.drawImage(source, 0, 0, width, height, null);
          g.dispose();
          return dst;
     public static void main(String[] args) throws IOException
          String imagePath = "cat1.jpg";
          //String imagePath = "cat2.jpg";
          long t1 = System.currentTimeMillis();
          BufferedImage image = ImageIO.read(new File(imagePath));
          long t2 = System.currentTimeMillis();
          System.out.println("Time to load image : " + (t2-t1) + " ms.");
          t1 = System.currentTimeMillis();
          image = scale(image, 0.2f);
          t2 = System.currentTimeMillis();
          System.out.println("Time to scale image : " + (t2-t1) + " ms.");
}

Hello,
I have a strange problem.
Some of my images are VERY slow to load,
scale... (any image operation).
I have those 2 images :
http://193.252.5.30/tmp/cat1.jpg (25Ko : 295x551
pixels)
http://193.252.5.30/tmp/cat2.jpg (24Ko : 295x551
pixels)
I wrote a little program which load and scale the
image.
Here is the result :
cat1.jpg
Time to load image : 171 ms.
Time to scale image : 157 ms.
cat2.jpg
Time to load image : 1157 ms.
Time to scale image : 2578 ms.How can this huge difference explained ?
Thanks for your help.Using the Netbeans profiler, I can see that for some reason, the cat2.jpg image is resulting in a hot spot where the scale() method ends up performing a color conversion via ColorConvertOp. Placing a debugger breakpoint on this call and debugging the code using cat1.jpg, the method is never called. So, there is something different about the color models of the two images, or there is a bug in the image reading code that is misinterpreting the image data.
This bug may be what you are seeing:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4705399

Similar Messages

  • Iphone 3G is very slow in operation

    Hi,
    My iphone 3G is getting very slow in operation. I have very less applications installed also. opening a message, a contact and any application is slow. I have done restart also. nothing is helping. kindly suggest.
    chetan

    chetan.sr wrote:
    ...nothing is helping. kindly suggest.
    chetan
    Some Users have Reported that a  Restore as New  has helped Resolve issues...
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • CS4 very slow image linking.

    We are having a efficiency issues with CS4.
    We have a large IDML document with 80 pages and 1800 images. Each image is about 24kb jpg.
    If we open the document and InDesign can find images, it will take hours to open the document. And it is very annoying that InDesign stops responding and doesn't show even a progressbar while opening the document.
    If we open the document and InDesign cannot find images, it will open the document in few minutes. Then if we fix the location of images and say "Update all links" or "Relink" broken links, InDesign will start fetching the images but it again takes hours..
    It doesn't matter if the images are on the server or local machine.
    If we update the links in smaller chunks, it will take a few minutes to update all the links. Little more testing shows that the time the InDesign takes to fetch the images increases exponentially when the amount of images increases. That seems a bug to me.
    I'm not sure what InDesign is doing when it fetches images but I know it becomes way too slow and it propably does too much.
    Is this fixed in CS5? And if not, please fix this.
    We are running CS4 InDesign 6.0.6 in Mac OSX 10.5.8 in Mac pro (2.66GHz with 8Gb memory)

    Hello,
    I have a strange problem.
    Some of my images are VERY slow to load,
    scale... (any image operation).
    I have those 2 images :
    http://193.252.5.30/tmp/cat1.jpg (25Ko : 295x551
    pixels)
    http://193.252.5.30/tmp/cat2.jpg (24Ko : 295x551
    pixels)
    I wrote a little program which load and scale the
    image.
    Here is the result :
    cat1.jpg
    Time to load image : 171 ms.
    Time to scale image : 157 ms.
    cat2.jpg
    Time to load image : 1157 ms.
    Time to scale image : 2578 ms.How can this huge difference explained ?
    Thanks for your help.Using the Netbeans profiler, I can see that for some reason, the cat2.jpg image is resulting in a hot spot where the scale() method ends up performing a color conversion via ColorConvertOp. Placing a debugger breakpoint on this call and debugging the code using cat1.jpg, the method is never called. So, there is something different about the color models of the two images, or there is a bug in the image reading code that is misinterpreting the image data.
    This bug may be what you are seeing:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4705399

  • HP Thin Client - Easy Tools - Very slow image download and failure!

    Hello folks!
    We recently acquired 30x HP t520 Thin Client. At this time, we've already set up our vdi solution (server) and we are trying to config our clients. Unfortunately, we can not update OS image. The download is very slow... and gets stuck, getting this message:
    "Could not retrieve infromation from server"
    (Click in the image to enlarge)
    I have found out the ftp adress for the .ibr image
    ftp://ftp.hp.com/ftp2/pub/tcimages/EasyUpdate/Images/t520/
    [WES7E-32 Image 14WWZDCE301 English (Nov 2014)]
    Description=WES7E-32 Image 14WWZDCE301 English (Nov 2014)
    File=../7EZDCABA1109VIAFBedoc_flash.ibr
    Size=4669729199
    OSVERSION=WES7
    Release Notes: ftp://ftp.hp.com/ftp2/pub/tcimages/EasyUpdate/Images/7EZDCABA1109VIAFBedoc_flash.TXT
    Image File: ftp://ftp.hp.com/ftp2/pub/tcimages/EasyUpdate/Images/7EZDCABA1109VIAFBedoc_flash.ibr
    Why the download is very slow? Is there any alternative method for update the system image? It is possible to upgrade for Windows Embedded 8.1?

    Hi,
    HP doesn’t have an official presence on this forum other than for administration and moderation. The assistance that you receive is mainly from volunteers.
    You might get better assistance on the HP Enterprise Business Forum since you have a business class PC.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Very, very slow file operations

    I needed to make a specific change to an exif field of some images. So what I did was to move identify the files that I needed to change in Lightroom (they were in various folders on my disk) and move them to other folders so they would be easy to operate on. Then I used exiftool to change the field in these files, and then I thought it would be easy to read in the changed data and move them back to their original folders in Lightroom. What I found included:
    I tried to Synchronize Metadata on the folders after changing the exif field. One folder had about 500 images in it, the other about 2,000. After 3 hours, the progress bar had barely moved, and I aborted.
    When I tried to quit Lightroom it said that it was "writing metadata", even tho the synchronization had changed the external data and it should only have been reading metadata. I quit anyways and rebooted.
    After rebooting, and relaunching Lightroom I looked at the "metadata status" column in Grid view. It was (as always, it seems) completely wrong about which files were up to date.
    I was able to "read metadata" on these 2,500 images in "only" about an hour or two. Note that I didn't ask Lightroom to update the cached images, only to read the metadata. Reading metadata at 1,000-2,000 images an hour seems exceptionally slow.
    Now I am trying to move the files back to their correct folders. I dragged about 1,000 raw images (CR2 + xmp) from one folder to another in Lightroom. Three hours later it is about 50% finished according to the progress bar. I'm going to bed and hope it will finish by the morning. I have to move all the other images as well, but because Lightroom won't update the filter bars in Grid View while moving files, I can't start these moves until Lightroom finishes the first.
    Do other people fine absolutely absurd speeds for file operations in Lightroom? Is there any solution other than quitting and rebooting (which doesn't always work)? I hate to quit in the middle of a synchronize, read metadata, or move files operation even when it seems to be barely chugging along, because I am afraid that when I abort the operation, I will somehow leave a file orphaned, or it's metadata out of sync (which happens to me all the time, but I never know why).
    When I am doing other operations I also find that I can use Lightroom for only a few hours before it gets so slow that I quit and reboot, after which operations speed up considerably. This doesn't seem like it should be necessary for a "modern" program and operating system, but in my experience it is.
    I'm using a Macintosh (4 core i7, 16 GB of RAM), Mavericks latest, Lightroom 5.5, and a RAID disk, so hardware shouldn't be limiting. During this last interminable copy operation, it appears that Lightroom is pegged at 100% of a processor (core).

    Sorry, but I don't think your workaround works. I am moving a bunch of files from one folder to various folders (using Lightroom to discriminate between files based on their exif/iptc values), then I change them using an outside program (exiftool), then I put them back in their original folders. This involves having Lightroom read in the new data in the files, which is what is so slow. Reconnecting, if I understand it, is for when you move a folder of files to another location, and Lightroom needs to be informed of that move.
    As I pointed out, the problem is that Lightroom gets progressively and painfully slower the more you use it. But quitting and restarting can be annoying if you are in the middle of an operation because you can lose context (especially if you restart your computer, which seems to help).
    And I do optimize my database nearly daily when using Lightroom.
    I would spend the time to fully document this problem and report it as a bug, but my experience is that Adobe shows no evidence of actually reading my bug reports, let alone responding to them.

  • Very Slow Copy Operation on HP Pavilion 15 p001tx

    Hi everyone. I recently bought the HP Pavilion 15 p001tx. Here are the Specifications if you need them
    Intel Core i5 4210U 1.7Ghz ,Turbo Boost to 2.4GHz
    4 GB DDR3 RAM
    1 TB HDD
    Nvidia Geforce 830M 2GB DDR3
    My problem is with extremely slow copying/moving operation on USB drives. I mean I could get only 5-15 Mbps while copying/moving.
    I am aware that I am using a USB 3.0 Flash Drive connected to the USB 3.0 slot but a constant 5-15 Mbps is ridiculus. I have a friend who has the same model and he could get 35-40Mbps of transfer speed.
    I ran the HP utility and installed the latest device drivers for Windows 8.1. I have not run into problems while copying / moving files within the harddrive as it runs at a decent 45 Mbps , in fact here is the CrystalDisk Mark benchmark of my HDD:
    * MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]
    Sequential Read : 92.794 MB/s
    Sequential Write : 89.059 MB/s
    Random Read 512KB : 27.382 MB/s
    Random Write 512KB : 34.493 MB/s
    Random Read 4KB (QD=1) : 0.355 MB/s [ 86.6 IOPS]
    Random Write 4KB (QD=1) : 1.050 MB/s [ 256.3 IOPS]
    Random Read 4KB (QD=32) : 0.975 MB/s [ 237.9 IOPS]
    Random Write 4KB (QD=32) : 0.819 MB/s [ 199.9 IOPS]
    Test : 1000 MB [C: 14.2% (64.9/455.6 GB)] (x5)
    Date : 2014/09/17 20:37:37
    OS : Windows 8.1 [6.3 Build 9600] (x64)
    Now this is the benchmark for a USB
    * MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]
    Sequential Read : 15.174 MB/s
    Sequential Write : 7.067 MB/s
    Random Read 512KB : 15.702 MB/s
    Random Write 512KB : 0.654 MB/s
    Random Read 4KB (QD=1) : 4.079 MB/s [ 995.7 IOPS]
    Random Write 4KB (QD=1) : 0.006 MB/s [ 1.4 IOPS]
    Random Read 4KB (QD=32) : 4.491 MB/s [ 1096.4 IOPS]
    Random Write 4KB (QD=32) : 0.005 MB/s [ 1.3 IOPS]
    Test : 1000 MB [H: 0.0% (0.0/3855.0 MB)] (x5)
    Date : 2014/09/17 21:54:50
    OS : Windows 8.1 [6.3 Build 9600] (x64)
    Please help me with this guys... I need to transfer lots of data to my external HDD.
    I also have another problem which is the Bluetooth doesnt discover any devices around ,neither does any other device detect it. It just keeps saying searching forever.

    I also have same problem which is the Bluetooth doesnt discover any devices around ,neither does any other device detect it. It just keeps saying searching forever.connected then within seconds it shows not connected

  • Very slow imaging

    Hello
    I've got a problem with my multicast sessions.
    When i start an multicast session, and it begins with imaging, it
    really is slow, it takes 75 minutes to image a pc, with Ghost it only
    takes 5 to 6 minutes.
    I'm using the normal Boot.ISO file because I cant add the linux drivers
    for my networkcard. What could be the problem? or how can I fix it.
    Specs:
    HP 7700 CMT
    Intel Pro 1000 card
    Gigabit network
    Alexander Hoek

    Alexander,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • CS6 Very Slow Startup?

    Hello Folks,
    I've just applied the latest update, but am experiencing very slow image loading times between LR 4.1 and CS6 Extended edition.
    I am using an iMac 27 2.8Ghz with 8Gig of System Ram, over 300Gig of HDD free space.
    Upon selecting edit-in CS6 with an image in LR 4.1, CS6 starts up with a long splash screen, loads, then I get a spinning grey circle, then CS6 loads on the desktop, then I get a colored spinning circle, before my image finally appears.
    I have performance set to an external scratch disk witih 624G of free space, 5644 MB of memory usage at 74%, HS at 30 CL at 7 CTS at 1028K
    I have CS5 still installed and it's load times are about twice as fast as CS 6
    Any help or suggestions on how I might resolve this issue would be greatly appreciated.
    Regards,
    Jim

    I changed the scratch disk, to my internal which has 300G of free space but also kept my FW800 external 600G of free space as well.
    Now things seem to be running faster.
    I've tried opening .psd and .dng files, maybe the .dng files load a bit faster.
    After I reinstalled i did a complete update againk which included ACR 7.1
    I also tried reinstalling CS6 over itself, but not sure if that might have made a difference or not. The reason I did that is that I'm getting a separate error messge when I select PS Support Center.
    The error messge states, Adobe Air, this application is damaged, try to re-install the application.

  • Safari, at times does not load images on webpages, is very slow, or doesn't work at all. Rarely does it operate as one would expect.

    iMac 27" 2009 intel core 4 gigs of ram, 1tb HD, Current operating system. 2 user accounts, myself, my fiancee's. Each with iPhones so each setup to utilize iCloud. I have disabled 3rd party plug-ins once with only short-term effects. There are other issues with the computers performance and I have spoken to apple support regarding them multiple times. Some include iCloud not syncing properly to the iMac (though it does to phone and online), Finder windows getting "lost" between "digital desktops". Desktop image not syncing across all "digital desktops". iTunes often has issues with syncing with and playing from my iTunesMatch account.
    Safari's issues include it not loading any images on a website, when trying to load a new page by typing a search in the the url it won't even begin to load a page, sometimes it is very slow to load a page, a lot of time it will spend 5+ minutes "attempting" or not even visually attempting to load a webpage without warning the page can't be found, and then of course there are the "page can't be found" warnings as well.
    Very much thanks in advance,
    AK

    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found

  • Firefox 5 Searching for images on the web is much slower than opera and my previous Firefox version. Can I turn off the useless zoom thing when I hover over an image for a few seconds?

    OK, what I want to do is search for images with Google or similar search engine. This was fine in my previous FF version. The images just loaded as thumbnails, all the same size and I had to click on one to open it in a new tab or whatever I wanted to do. Now the images load all different sizes and if I hover for a moment over on, it zooms in a bit and gives me some image details. This slows image searching to the point of being very frustrating. I thought this might be a Google things, so tried other search engines. Tried switching Javascript off to speed things up, just blank grey rectangles displayed. Tried Opera and it loads basic images like Firefox used to, FAST...

    The speed of image searching isn't a problem for me. The trouble is, the automatic zoom function is lightning fast and I find it disturbing to the point that it makes me feel very ill.
    I very much want a way of suppressing it.

  • 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.

  • The latest issue of Pages for iPad: 1. Very slow. 2. Late in reacting to typing. 3. When I go to a specific file, informs me that some images were deleted and therefore file has been changed. Then when OPEN option used, opens file slowly. Please, help!

    What I have to do to correct the following problems with Pages app. For iPad:
    Hesitates to display results of typing, some times for 5-6 characters;
    Very slow in opening files;
    Before opening of a specific file displays message: DOCUMENT DETAILS. SOME CHANGES WERE MADE TO YOUR DOCUMENT. SOME IMAGES ARE MISSING BECAUSE THEY WERE DELETED FROM YOUR DOCUMENT. We'll, nothing is missing. But it takes forever to open this file. The previous issue of Pages worked very good. But they would not let me to go back to it. Please, help!

    Tmobile did the exact same thing to me. So that is customer service at work in general. Nice try though lol.
    To the OP
    I see you said You paid for shipping, did you Insure it? Claim insurance on it. If you did not, It may not be Verizon or your fault in the sense of the phone not making it to the warehouse. There are people out in the postal world that will steal phones that are not insured. It could have been a Verizon employee, i suppose.
    But, if this was to be a bought in court, if you shipped it with out insurance, sadly your at fault.
    Do you still have the Serial number of your old phone? If so, you should be able to track where your phone is (if it is reported as a defect/damaged) If so, you may be able to use that as proof. If it does not show up as a defect or what ever they determine use as a loss, then you know it did not make it to the warehouse to be checked in. I would suspect Apple or Verizon could tell you what the Serial number came up as.

  • The problem is with the new operating system  and sending photo via email when used in my iPad.   From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow.

    The problem is with the new operating system  and sending photo via email when used in my iPad.
    From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solved by saving the email as a draft and opening the email again from mail.
    Can you amend he system to allow emails to be sent from photo as previously.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • 11g (11.2.0.1) - dimension operator very slow on incremental load

    Dimension operator very slow in porcessing incremental loads on 11.2.0.1 Have applied cumulative patch - still same issue.
    Statistics also gathered.
    Initial load into empty dimension performs fine (thousands of records in < 1 min) - incremental load been running over 10 mins and still not loaded 165 records from staging table.
    Any ideas?
    Seen in 10.2.0.4 and applied patch which cured this issue.

    Hi,
    Thanks for the excellent suggestion.
    Have run other mapings which maintain SCD type 2 using dimesnion operator behave similary to 10g. - have raised issue with this particular mapping with Oracle - awaiting response.
    One question - when look at the mappings which maintain SCD Type 2s looks to join on dimension key and the surrogate ids.
    What is best practice regarding indexing of such a dimension, e.g is it recommended to index dimension key and the surrogate ids along with the natural/nbusiness keys?
    Thanks

  • I want to buy MBA 11'' which model is good.  i.e.  i need speed.  I am using Lenovo netbook s-10. Is very slow in opening web pages an also in operating other apps.

    I want to buy MBA 11'' which model is good.  i.e.  i need speed.  I am using Lenovo netbook s-10. Is very slow in opening web pages an also in operating other apps.

    Put your first emphasis on memory. Don't even consider 2 GB.
    Second, maximize your SSD size according to the ability of your wallet. Lastly is your processor.
    For what you describe the MBA is plenty fast.

Maybe you are looking for

  • Dual boot Windows 8.1 with Yosemite

    I'm attempting to dual boot Windows 8.1 on my parents iMac. I downloaded and successfully used Boot Camp 5 to partition the drive, giving the new section 50GB. I successfully installed Windows 8.1. Unfortunate now I cannot access the Yosemite partiti

  • Can i set a default file name with path when using IOpenFileDialog?

    At present, if i use IDFile xmlDataFile("C:\\a.txt"); openFileDialog->DoDialog(&xmlDataFile, resultFiles, kFalse, &title); It use "C:\" as its default folder, but the file name box is empty, what i want is to show "a.txt" as its default file name. It

  • How do you add a picture to an GUI application??

    i want to add a a gif file to it.. do i use image?? do i use graphics?? this is all confusing!

  • Charging with silicone case?

    Is it really a problem if charging the ipod mini in the silicone case? There's a slot for it at the bottom to plug in the cord, but looking at the ipod site, it says not to charge when it is in a cover or case. It is just a hassle to take off the sil

  • Example Schemas - can we remove

    Hi All Can we remove the expired and locked users! Say for example HR, HR Schema - OE - OE Schema and the default schemas that load with Oracle 9 Rel 2. I suppose these schemas use example tablespace or so. Please assist me regarding this Thanks Ravi