How to handle a large number of images?

I am writing a program that need handle a large number of images.
How should i do to make it work faster and less memory.
Is it a image pool i can use ? How is it works?

Thank you for you reply.
I need to handle images.For example a user upload an
image via web browser and i need save too images ,one
is the original image ,the other is the compressed
image.And there may be a large number of images
because my project is a web application.
How should i do to reduce the stress of server?Well, you can find some answers under "Image I/O" for your image related IO problems here
http://java.sun.com/products/java-media/jai/forDevelopers/jaifaq.html.

Similar Messages

  • How to handle a large number of query parameters for a Browse screen

    I need to implement an advanced search functionality in a browse screen for a large table.  The table has 80+ columns and therefore will have a large number of possible query parameters.  The screen will be built on a modeled query with all
    of the parameters marked as optional.  Given the large number of parameters, I am thinking that it would be better to use a separate screen to receive the parameter input from the user, rather than a Popup.  Is it possible for example to have a search
    button on the browse screen (screen a) open a new screen (screen b) that contains all of the search parameters, have the user enter the parameters they want, then click a button to send all of the parameters back to screen a where the query is executed and
    the search results are returned to the table control?  This would effectively make screen b an advanced modal window for screen a.  In addition, if the user were to execute the query, then want to change a parameter, they would need to be able to
    re-open screen b and have all of their original parameters still set.  How would you implement this, or otherwise deal with a large number of optional query parameters in the html client?  My initial thinking is to store all of the parameters in
    an object and use beforeShown/afterClosed to pass them between the screens, but I'm not quite sure how to make that work.  TIA

    Wow Josh, thanks.  I have a lot of reading to do.  What I ultimately plan to do with this (my other posts relate to this too), is have a separate screen for advanced filtering that also allows the user to save their queries if desired. 
    There is an excellent way to get at all of the query information in the Query_Executed() method.  I just put an extra Boolean parameter in the query called "SaveQuery" and when true, the Query_Executed event triggers an entry into a table with
    the query name, user name, and parameter value pairs that the user entered.  Upon revisiting the screen, I want the user to be able to select from their saved queries and load all the screen parameters (screen properties) from their selected query. 
    I almost have it working.  It may be as easy as marking all of the screen properties that are query parameters as screen parameters (not required), then passing them in from the saved query data (filtered by username, queryname, and selected
    item).  I'll post an update once I get it.  Probably will have some more questions as I go through it.  Thanks again! 

  • How to handle a Large number of controls?

    I Want to create an application wich will have to handle a lot of controls on it. I know how to get references of this controls, and how to acces them all programatically, but my problem is that there is just to many of them for Laview to run with no lag. It lags badly even on edit mode when I try to place all the controls I need. I think that ther must be a way to do this, since im going to have a lot of controls (look out in the image, I need 10 tabs of each grup with 5 subgrupsgrups on each tab, = 20tabs x 5subgrups x 40tags per subgrup x around 10 controls per tag = 40000 controls) but only a few of them are going to be showing in the front panel since most of them will be out of view. 
    It's there any way I can handle this number of controls, considering I only need to visualize some of them at a given time ?? I have developed a sistem to expand, collapse, scroll up and down and stuff with the controls and it works fine with just a few tabs and subgrups but... I would prefere to stick up with this number of controls, to offer the capacity to expand the tags handled by the program while running, i could go down to a more situable number of controls like (16 tab control grups x 3 subgrups x 20 tags x 10 controls = 9600) wich is still a lot to be honest but I dont undersand why I cannot just have the controls lying on the fron panel doing nothing lags this much.
    Attachments:
    Desing.png ‏402 KB

    I recently wrote some articles about this very subject:
    Monster Panel I
    Monster Panel II
    Monster Panel III
    Monster Panel IV
    Monster Panel V
    I have almost 13000 controls/indicators on one VI panel (and four such windows in the program).
    Perhaps there are some tips to help you.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How do I globally set in and out points on a large number of images?

    As the post asks: How do I globally set in and out points on a large number of images before sending to the timeline? In AVID I can do this in the Script view. How do I do it in FCP?
    Thanks in advance

    Thanks. I assumed I needed to set in and out points. I have not done an image sequence in FCP. If I have a 10 second image and a 2 second transition, but then change the duration of the transition to say 4 seconds then FCP will let me alter the transition duration?
    With regards to movie clips, what happens with setting global in and out points? How would I do that?
    Thanks in advance

  • How do I create new versions of a large number of images, and place them in a new location?

    Hello!
    I have been using Aperture for years, and have just one small problem.  There have been many times where I want to have multiple versions of a large number of images.  I like to do a color album and B&W album for example.
    Previously, I would click on all the images at one, and select new version.  The problem is this puts all of the new versions in a stack.  I then have to open all the stacks, and one by one move the new versions to a different album.  Is there any way to streamline this proccess?  When it's only 10 images, it's no problem.  When it's a few hundred (or more) its rather time consuming..
    What I'm hoping for is a way to either automatically have new versions populate a separate album, or for a way to easily select all the new versions I create at one time, and simply move them with as few steps as possible to a new destination.
    Thanks for any help,
    Ricardo

    Ricardo,
    in addition to Kirby's and phosgraphis's excellent suggestions, you may want to use the filters to further restrict your versions to the ones you want to access.
    For example, you mentioned
      I like to do a color album and B&W album for example.
    You could easily separate the color versions from the black-and-white versions by using the filter rule:
    Adjustment includes Black&white
         or
    Adjustment does not include Black&white
    With the above filter setting (Add rule > Adjustment includes Black&White) only the versions with Black&White adjustment are shown in the Browers. You could do similar to separate cropped versions from uncropped ones.
    Regards
    Léonie

  • TS1702 how can I remove large number of photos on my iPhone 4s from iTunes using a PC - Lenovo Think Pad - so that I can reduce the space used on the phone by 50%?

    how can I remove large number of photos on my iPhone 4s from iTunes using a PC - Lenovo Think Pad - so that I can reduce the space used on the phone by 50%?

    You don't need iTunes for that. Simply connect the iPhone to the PC where it will be recognized as a camera. You can then select the photos you wish to transfer, transfer them, and delete them.

  • How to add a large number of keywords to the e-mail filter?

    Hello.
    I would like to know how to add a large number of keywords to a filter.
    The thing I want to accomplish, is it to add around 4000 e-mail addresses to a filter list, which checks the body of incoming e-mails, which get forwarded to me.
    I don't want to outright delete them, but I would love it if it detects that the forwarded message contains one of the e-mail addresses, it would add a tag to the message.
    Is it in any way possible to make a filter like this, which doesn't slow Thunderbird down to ass-crawl speed?
    I tried to copy the whole list into the small filter tab, but It had no discernible effect on my messages, since some of the previously received ones, which I was sure contained the keywords, were not tagged. All it did was make the program super slow and I was forced to delete the filter.

    You can look at creating a exclusion crawl rule:
    http://technet.microsoft.com/en-us/library/jj219686(v=office.15).aspx
    You can also modify your content source starting addresses and remove onedrive:
    http://technet.microsoft.com/en-us/library/jj219808(v=office.15).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Problem with importing a large number of images to Lightroom?

    I'm trying to import a large number of images from disk to Lightroom. If I select more that approximately 1500 images (1250 works fine), I get an error message saying "files do not exist". If I reduce the number of files imported, everything works fine. I can import in groups as long as the number selected at any one time is less that the ~1500 limit.
    Has any one had a similar problems? I'm running LR 2.4 64-bit on Win7 RC 64-bit, Q6600 processor, 8 GB RAM.
    Does not seem like this should be a problem. Its a real hassle to my workflow. I'm working on a series of time-laps movies (here is a link to a sample: http://vimeo.com/6375019).

    Thanks for your reply Sean,
    It is an internal disk drive, SATA II interface.I have no other disk/file problems, this is unique to LR as far as I can tell.
    I'm loading files onto disk from a CF card reader outside of Lightroom, then opening LR and telling it to import from disk. I've never had a problem before with imports. Experimenting with number of files, somewhere between 1250 and 1500 is where the problem occurs.
    Been busy making time-lapse videos of the fire in LA, so I'm away from the computer most of the time.
    thanks,
    Dan Finnerty

  • Canvas Resize to Square for a large number of images using script. E.g. image is currently 1020 x 600, I would like to change this to 1020 x 600. PLEASE HELP

    Hi All,
    I have a large number of images that I need to resize the canvas sizes to a square, the images are currently in different sizes. For example, if an image is 1020 x 600 I would like to change the canvas to 1020 x 1020 so that the image becomes a square. I am using CS3 and all the images are jpeg's. I have done research on scripts but the ones I have tried have not worked. Please help.
    Thanks.

    Since you do not want to crop your images to a square 1:1 aspect ratio changing the canvas to be square will not make your images square they will retain their Aspect Ratio and  image size will be changer to fit within your 1020 px square. There will be a border or borders on a side or two borders on opposite sides.   You do not need a script because Photoshop ships with a Plug-in script to be used in Actions.   What is good about Plugins is the support Actions.  When you record the action the plug-in during action recording records the setting you use in its dialog into  the actions step.  When the Action is played the Plug-in use the recorded setting an bypasses displaying its dialog. So the Action can be Batch.  The Action you would record would have two  Steps.   Step 1  menu File>Automate>Fit Image... in the Fit Image dialog enter 1020 in the width and height  fields.  Step 2 Canvas size enter 1020 pixels in width and height  not relative leave the anchor point centered it you want even borders on two sides set color to white in the canvas size dialog. You can batch the action.
    The above script will also work. Its squares the document then re-sizes to 1020x1020  the action re-sizes the image to fit with in an area 1020 x 1020 then add any missing canvas. The script like the action only process one image so it would also need to be batched. Record the script into and action and batch the action. As the author wrote. The script re size canvas did not specify an anchor point so the default center anchor point is uses  like the action canvas will be added to two sides.

  • Mail - how to send to large number of recipients?

    How can I send an email to a large number of recipients that I hold addresses for in a document without a) adding them to my contacts, and b) so that they can't all see each others addresses?

    I thought about using BCC, but it seems a little messy although it would do the job.
    Messy how?  That's exactly what it's for.  In fact, there's no other way to hide addresses from other recipients of the message.  The only other way to do it would be to script automated sending of one message per address, and that would get quite messy!
    What is the maximum number of recipients that Mail can handle?
    There's no limit enforced by Mail, AFAIK.  The limits come from the SMTP server you're using.
    One of the issues I had when using Outlook on Windows for this by copying and pasting from a text document, was that if there was an invalid/non-existent address in the list, it would just return an error and I was never quite sure if the whole thing didn't send, or if it was just to the dodgy address(es).
    In Mail, you'll just get a bounce message for any addresses that don't exist.  The one exception to that is addresses on the same server that you're sending from...  often, the server will simply reject the attempt to send to an address that it knows doesn't exist.  I'm not sure what kind of message the server returns in that case, though, and suspect it depends on the server.  It's been a while since I've seen such a problem.

  • How to handle a running number field in the report?  How to format it to be (a), (b),

    Hi,
    I'm very new in Oracle Report...
    Does anybody know how to generate a running number in oracle report? for eg. 1,2,3,4....
    Is there anyway to format these running number to i,ii,iii,iv,v,vi.... or a,b,c,d,e....
    Thanks

    Here is one way to do this:
    In the data model create a function and a placeholder in the group you want the numbers/letters to show. Set the placeholder name to cp_count and the datatype to number. Set the formula's formula to read:
    :cp_count := nvl(:cp_count,0) + 1;
    return :cp_count;
    And in the conditional formatting property of the field you want to show 1,2,3 or i,ii,iii in the layout editor add either:
    srw.set_format_mask ('RN');
    or
    srw.set_format_mask ('NNN');
    return true;
    I couldn't figure out how to get the a,b,c one'es to work easily. You can put in a large IF statement to return a for 1, b for 2, as in "if :cp_count = 1 then return 'A'
    Hope this helps

  • How to handle a big number of users on our website

    Hello,
    We are working on UCM 10gR3.
    We made a web site with Site Studio and now we are testing the web
    site with a big number of users : the number of users increase one by
    one each interval of time until 500 users.
    For this test, we first set :
    - NumConnections=100 (number of connections to the database)
    - CachedResultRowCount=40000 (number of rows in the cache)
    With this set up, the server became unreachable with 250 users. We
    noticed that at this time, the number of threads were stuck to 100 and
    the cache was full (we saw these information in the "System Audit
    Information page").
    Then we restarted the tests with :
    - NumConnections=100
    - CachedResultRowCount=40000
    - MaxRequestThreadCount=500
    With this configuration we went until 400 users but then, the server
    was unreachable. With this test, the number of threads was still stuck
    to 100 (even if we set 500) and the cache was full when the server failed.
    Does anyone have any tips, knowledge, clue about at least one of this
    variable or about how to handle a lot of connections to a web site
    made by Site Studio ?
    Any little detail could be very helpful to us.
    It is very urgent because we are running the final tests in 9 hours !
    Thank you in advance.
    Julian

    Thank you for this answer.
    However, I am looking for indications about the UCM configuration only.
    Specially the following variables :
    - NumConnections
    - SearchCacheCleanerInterval
    - MaxSearchConnections
    - CachedResultRowCount
    - MaxRequestThreadCount
    Regards,

  • Importing large number of images still broken in Lightroom 1.1

    It's deja-vu all over again :(
    Clean XP SP2 install, clean LR 1.1 install, new library
    Core 2 Duo, 4GB RAM, almost 2TB disk space
    28,000 RAW images from Canon 10D, 1D Mark II and 1Ds Mark II
    I have a 30" screen so I set my library to: high quality previews, 2048 pixels high, never drop 1:1 previews, automatically export to xmp
    I have tried importing the whole lot, tried a subset of a few thousand images, same result.
    I always import in place.
    If I try importing images without generating standard sized previews it always completes, my library ends up being about 330MB, the Catalog Previews.lrdata directory contains roughly the number of files that were imported. So far so good. I've tried compacting the library at this point, it didn't make a difference. After importing lightroom just goes to 50% CPU and stays there for hours. Eventually it goes down to 0%. But then it refuses to open any files at 1:1 (it just shows 'Loading...', waited for half an hour for ONE images, no change), if I try to prerender 1:1 previews it takes several MINUTES PER IMAGE (no disk activity to speak of, CPU busy) and the supposedly prerendered images have the same 'Loading...' problem.
    If I try importing images and generate standard sized previews I notice that after about 1000 files get added to the 'Catalog Previews.lrdata' directory it stops growing, new directories keep getting added but they're empty (this is on a drive with 400GB free...). Trying to open any of the imported files seems to work but after looking at two or three I get a red, up-side-down 'Out of memory - A2' error.
    Has ANYONE been able to build a new library with a non-trivial number of images AND generate previews?
    If anyone from Adobe is reading this, and cares, please reply and let me know how to proceed. I'm a software engineer, I have debugging tools, please work with me. I really, really, really want Lightroom to work for me.

    Sorry to report, but I built my catalog [library in 1.0] with 21,000 images and it went smooth as silk. My conversion to 1.1 was fast and smooth, all of the library became a catalog.
    I have been paring down my catalog, removing bad photos and dups with no problem. No freezes, no out of memory errors, no crashes. I will admit that I had a couple of OOMs and occasional crash before 1.1, but those went away with the addition of the second pagefile on second HDD.
    Do I know what actually caused the fixes, not really. I used the "fix everything" approach. Somewhere along the line, something clicked I expect, but I had no serious problems even in the beginning.
    I now have 13800+ images and I import from an external USB card reader, then import into LR from HDD, then convert to DNG inside of LR.
    -Core 2 Duo 6600,
    -XP Pro SP2 with all updates after SP2 was issued,
    -2 HDDs, SATA,
    -2 pagefiles-one on each HDD at 1.5 x RAM [2GB],
    -nVidia 7600GT video card with 256MB,
    -Windows kernel resident in RAM,
    -system optimized for applications-not cache,
    -remote Logitech mouse,
    -Microsoft keyboard,
    -19" CTL 9GX LCD monitor [3 years old],
    -monitor calibrated with Pantone Color Plus 1.1.
    This article http://tinyurl.com/36uqqt bears on RAM situation Vista or XP that is not 64 bit, or even if 64 bit if vendor doesn't do things right.
    Mel

  • How to copy very large number of files from one drive to another???

    I'm a fairly experienced Mac user for serveral years but this problem really has me stumped.
    I'm trying to copy or move 152,000 files from one external drive to another drive. I can highlight (Cmd - A) all the files on the first drive and drag them to the second drive but Finder always shows 32,768 files being copied no matter what I try.
    Any and all suggestions on how to move/copy a large number of files from one external drive to another are greatefully appreciated.
    Thank you in advance,
    Mack

    I would use the command line tool rsync.
    For instance with: rsync -av source-dir destination-dir
    -a The files are transferred in "archive" mode, which ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved in the transfer.
    -v Verbose, so you see the progress.
    Rsync is fast and really, really powerful and many times used in shell scripts and the like to automatically backup and/or sync stuff. Google a bit for more info.

  • How do I delete large number of email messages?

    I get a large number of emails. Is there a way to select them on my iPod Touch 32g in groups rather than one at a time when I delete many messages?

    Did you ever find a solution to this?
    I, too, would like to DELETE lots of emails at the same time, even ALL of my old emails, without having to use EDIT, then touching each email one at a time, then selecting DELETE. Painfully slow if you have 200+ emails ... this should take 5 seconds, not 10 minutes.

Maybe you are looking for