Privileged processing of multiple images?

Hi, I'm developing an applet, which should get an array of image paths on local computer, transform them and then save to the local computer. My first idea was to write a simple for cycle. But it seems to be impossible due to the privileged action interface, which runs as separate thread - the main thread continues the for without waiting to the privileged thread to end. I was able to write code which sleeps the main thread in a while loop to wait to the privileged thread to end. But this solution totally freezes the main applet window. The freeze remains until ALL images are processed, even if I wrote it so it wakes up from sleep before each image. And this is terrible, because I also want to have a progressbar showing transformation progress.
So I ask you how can I let the main thread wait for privileged thread unfreezed and continually getting progress info from the privileged thread
I tried to substitute the sleep with a wait. It didn't freeze the main window, but it threw IllegalMonitorState exception after processing the first image. When I enclosed the wait in a synchronized object, it freezed just like with the sleep.
Thanx for your opinions

No suggestions yet?

Similar Messages

  • Image Quality Processing Multiple Images

    When I first installed PSE, I could process multiple images and have the new image auto saved
    at the same image quality of the original. Now it changes to a value of
    "3" ...and I can't figure out how to predefine it to a higher quality

    I get in "Full" edit mode, then click File / Process Multple FIles.
    Then I select my source folder and my destination folder ...next I select one or several of the "Quick Fix" options ...usually just Auto Contrast.
    Finally I click "OK"
    The last few times, the new "processed" file is saved at ~400-500 KB ...instead of the original 3-4 MB.
    Any help would be appreciated.

  • ACR & IPHOTO--processing multiple images

    I am wondering how I can open multiple pictures in ACR from IPHOTO to process?
    Thanks a bunch..I have been trying to figure this out forever!!
    Jenny

    I'm not sure it's possible to do it directly from iPhoto. It's frustrating me as well!
    In the Finder, if you have multiple raw images selected and right-click and select Open With Adobe Photoshop Elements, it will open in ACR with all the image preview to the left. You can then select one, some, or all of them and apply the same settings.
    In iPhoto though if you select multiple raw images and right-click and select Edit in external editor, the images will open one at a time.
    ACR does let you change how it processes each new file. If you select Previous Conversion, once you process the first one, you can use the same processing on the next images.
    Another way around this is in iPhoto, right-click and select Show File. This will open the Finder and you can then select multiple images and precess them all at once. This really isn't a very good solution though because it adds another step and you have to find the images agan.
    Hope this helps and if anybody else knows how to do it from iPhoto, that would be wonderful!

  • How to process multiple images and each image has multipl links dynamically

    I saw this web site
    http://escience.invitrogen.com/ipath/iPath.jsp?cn=united+states&mapid=479&highlightGene=ADAM10
    when the small icons in the left map is clicked, the corresponding information of the icon display on the right. For one map, I know I could set up static URL for each gene name. But there are hundards of images, is there a way to dynamically process all the images instead hard code hundards of pages?
    Many thanks!

    The map is generated using Macromedia Flash. (I could tell because when I right-clicked on it I got a context menu including "About Macromedia Flash Player 8".) That's a programming language you could learn if you liked, but it has nothing to do with JSP.

  • Can you edit multiple images from a PDF in photoshop?

    I scan a lot of old publications with images and drawings. The images are in greyscale, but my scanner produces better results set to color. As such, I have to convert the images to greyscale in Photoshop from Acrobat. I have several PS actions that make this process easier, but I wish there was a way to select multiple images from a page or PDF file and run the actions on them (a batch) instead of one at a time. Is there? Or perhaps another method than what I am doing?

    I recommend that you scan first, save as TIFF, do any desired correction, and only then make PDFs. Scanning direct to PDFs is great for simple uncomplicated workflows, but a liability when correction is needed.

  • How  to fade groups of images or multiple images at the same time?

    I am creating a flash infographic, and want to fade images I have imported from Illustrator that are grouped. I would like to know how  to fade these groups and multiple images at the same time.
    Thanks!

    Use TweenMax for this.
    the syntax is like this:
    var arrayOfDisplayObjects:Array = new Array();
    //with arrayOfDisplayObjects.push(DisplayObject)
    //you can put any DisplayObject in the Array and when you want to fade them call this
    TweenMax.allTo(arrayOfDisplayObjects,1, { autoAlpha:0} );
    //to fade them in 1 second to alpha=0 and when reaching the zero make them invisible (to save processing power)

  • How do use the same crop for multiple images.

    I have a number of images that I want to use the same crop on. Instead of go through the whole slow process for each image is there a way to use the same crop for all of the images?
    And in iPhoto there was a way to copy the adjustment settings to multiple images, I can't see how to do that in aperture.

    Use the "Lift&Stamp" tool:
    Crop one image.
    Lift the crop using the "Lift" tool.
    Select the other images.
    Stamp the crop adjustment to all of them.
    But caution: By default "Lift" will copy all Metadata tags and all adjustments, but the gps data. If you only want to transfer the cropping rectangle, deselect all lifted items but the crop adjustment before stamping.
    Regards
    Léonie

  • How do you add a water mark to multiple images within multiple files?

    I am having real trouble in trying to add a water mark to multiple images (mixture of jpegs and tiffs) within multiple file.
    I have used the Batch processing tool, but this hasn't worked or has been inconvenient, asking me to resave each individual file.
    If anyone can help or suggest another way of doing this, that would be great!
    Thanks
    Becca

    Are you using Russell Brown's script for placing watermarks?  Also you mentioned, "Within multiple file."  Did you mean multiple folders?  The batch processor has a check box for applying process to multiple folders.  What itsn't working - exactly?

  • Multiple Image Uploading Question

    Please forgive my ignorance here but I saw the question on multiple image uploading and this is something i have been trying to do for a few days now without any success.
    I am using CS3 with ADDT and PHP
    I want to allow my users to be able to upload say 5 pictures at a time, each user has multiple photo albums the names of which are stored in mysql table, the image name is stored in a different table with a reference to the album id.
    So, I assume that i put an insert record on the page, I followed the usual process used to have a single image upload and thought it would give me or add the extra file field options on the form when telling the multi upload to allow 5 images to be uploaded, not the case. Do i have to create a form on the page first with 5 file fields or am i just missing the plot here.
    Sorry if this is just something that seems simple but i just don't seem to be able to get it to work at all. I have no working example to look over and have serach google to see if there are any tutorials for doing this but can't find any at all.
    Thank you in advance of any help and guidance given
    Regards
    Ray

    Hi Günter
    Thank you for your reply and also for the great tutorial site you run which has helped me quite a lot with several things.
    ok, so i am maybe a little confused here, so what is the multiple image uploader for if not for uploading multiple images, and how does it give you the option to select more than one file or is it that you can't use it when inserting the image file into a database?
    Please forgive my ignornace again, i can see when i have tried using the multiple image upload thatit puts a text link called upload, what is that for because it doesn't seem to do anything on the page i have tried it on?
    Kind Regards
    Ray

  • How to Watermark multiple images with different dimensions in Photoshop ?

    Is there any way that I can place a watermark on the right bottom of multiple images, no matter what dimension the images are? I have tried using Photoshop Scripts > image processor, but it works only for images of same dimension. I want to put watermark on multiple images of different dimensions. This is the output i got.
    For the first image the watermark got placed correctly, but for the second image watermark got distracted. As you can clearly see the dimensions are different. Please suggest me some solution.

    Open an image to watermark. We must have this open before we start recording an action or else it will keep opening this image and watermarking it over and over again.
    In Photoshop go to Windows >> Actions
    At the bottom of the Actions Palette you will see a little folder icon, click on it and create a new folder to hold you action in.
    Once you have a folder to hold your action we need to hit the Create New Action button (next to the new folder Icon we just used.)
    Give our new action a name and set a function key (if required.)
    If the record button is not already depressed which it should be by default, hit it now to start recording our action. (located near the folder icon again but this time to the left)
    Now that our action is recording go to File >> Place
    When the dialog box comes up navigate to your previously created watermark file.
    Hit the Place button
    Position the watermark as you would normally have it (default is dead center) and hit enter.
    Go to File >> Save as,navigate to where you want your watermarked images to finish up and hit save. DO NOT CHANGE THE FILE NAME if you do when you play the batch it will name all the files it saves the same over-writing each other.
    Close the image we just watermarked.
    when a save dialog comes up do not save the image.
    On the Actions Palette hit stop recording.
    Our Action is now recorded.
    To process an entire folder of images we go to File >> Automate >> Batch
    Select the folder in which your images are currently
    Select the folder you wish to save the watermarked copies too.
    Hit OK
    Photoshop is now watermarking all the Images in the selected folder for you.

  • Multiple image upload CRASH!!! but works with simple image upload

    I'm getting MAD.
    I'm using php and GD
    While the simple image and re size works like a charm, the multiple image upload or the multiple file upload have a strange behavior.
    It opens the pop-up with flash, then eventually shows me files or thumbnails but when I try to up load I just wait and get the typical "system becoming unstable" flash error.
    As I can see the directory is always generated (I've tried also to put a static directory) but after stargin the upload the flash uploader just crashes and no result.
    Any help would be really appreciated

    Hi Fonzie,
    as the folder is getting created, the issue you´re having is not related to wrong folder permission - it´s something else...
    As I wrote before, che common upload and resize function works perfectly
    this one works perfectly, because it´s just one file to upload and to process, wheras doing that with multiple files might collide with some settings on your server
    So for sure it's not a simple issue as the max filesize
    Are you sure ? Did you check the current "max_upload_filesize" setting ? As long you don´t check it, you can´t know :-)
    As a general rule of thumb, it´s important to be aware of the fact that uploading & resizing images on the server might collide with several PHP settings -- and the more images you upload and resize in one swoop, the closer you´re getting to these limits respectively might even be exceeding them. The following "directives" are those which have an effect on whether your image/file upload & processing will work or not:
    - "max_upload_filesize" :: is sometimes set to just 8 MB on a shared hosting, sometimes 16 MB, sometimes more. This setting will affect the file upload procedure only
    - "set_time_limit" (e.g. 30 seconds) :: if the execution time of a script exceeds this limit for whatever reason, the server simply shuts it down without letting you (respectively the flash uploader) know it´s been shut down. This *might* be the reason why ADDT´s flash uploader hangs respectively returns that error message after some time, because it´s waiting for some response from the server which never comes.
    - "memory_limit" (e.g. 8 MB) :: this directive is a sort of "allocated server RAM" for your account, and it´s in particular the image resizing process which will grab more or less memory resources -- the higher the the resizing factor is, the more RAM is spent, and the more images are getting resized in one swoop, the worser it gets.
    However, all these PHP directives can be changed, and your host might even be so courteous to increase the currently defined values of those abovementioned directives for you -- and that´s what I´m suggesting at this point.
    Cheers
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How to remove "Blue filter" from multiple images in the History Panel

    I am using Lightroom 4.3 on Windows 7 pc.  I have a collection with approximately 650 images.  I was working in the collection and had all the images selected.  Somehow I inadvertently must have hit a keyboard shortcut that effected all the images.  All of the images are negatively effected and they now look terrible.  When I go to the History Panel, all the images have "blue filter" as their most recent entry.  If I select one image and go back to the step before the "blue filter" everything looks fine  again.  My problem is I have this effect in 650 images.  When I try and do the change in one image and then synch to the rest, I don't know what box to check to remove this "blue filter" that has been added to all the images.  I know I can do them one by one, but with 650 images, it's a long and tedious process.  Any way I can remove the "blue filter" from multiple images in a collection?
    Thanks,
    Matthew Kraus

    If you’ve just done it, then an Undo operation would reverse things on all the images, I think.  But if it took you a while to see the problem, then you might have done something to cancel the undoability.
    Isn’t Blue Filter a built in LR preset that modifies the HSL settings:  http://kb2.adobe.com/community/publishing/924/cpsid_92473.html
    Open the HSL panel and step back into History on one of the affected images so the effect of the Blue Filter preset has been undone and notice what HSL sliders change, and then if the 650 images DON’T already have any HSL adjustments you should be able to sync JUST the pre-Blue-Filter HSL adjustments (perhaps all zeros) to the other 650 images.

  • Edit capture time doesn't work for multiple images

    Hi all, hope you can help me.
    I'm trying to edit capture time for multiple images. I select the images using the grid view, and go to Metadata>Edit Capture Time>Adjust to Specified Date and Time, enter the time, and select "change all." However, it seems that some, or perhaps most of the images don't actually have a new Date Created when this process is done.
    I thought perhaps I needed to select 'write metadata to files', but the Date Created seems to revert back prior to writing to the file, or indeed, it doesn't actually change in the first place.
    Any ideas?
    Thanks,
    J

    Think I've fixed this using the following site: -
    http://www.thexlab.com/faqs/helpviewer.html
    Will update if that changes....

  • Creating a simple Template for multiple images

    Hello,
    I work for an online company, and we deal with displaying multiple images on our site.  I've been just cropping sets and just droping them in a file and organizing them that way, but I was wondering if there is a faster way of doing this in Photoshop with Templates maybe? but it needs to be easier and faster than the process I'm using now. Any help would be greatly appreciated.

    When I read what you have written "we deal with displaying multiple images on our site.  I've been just cropping sets and just droping them in a file and organizing them that way, but I was wondering if there is a faster way of doing this in Photoshop with Templates maybe?" I don't comprehend what your doing now.   Photoshop is not a file editor however it can create files that have more then one image. Perhaps you could describe what you want to do.  What is a set, what is in the set, how many images in a set is that number always the same how do you want to crop do you have some layout in mind some size requirement?

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

Maybe you are looking for