Best way to place lots of images into one

Hello,
I have made a Javascript script that loops between 20.000+ images and puts them into a main image. Code is:
var sampleDocToOpen = File('~/a/'+(l+startF)+'/'+(i+start)+'.png')
open (sampleDocToOpen)
app.activeDocument.selection.selectAll()
app.activeDocument.selection.copy()
app.activeDocument.close()
app.documents[0]
app.activeDocument.paste()
it works, but it is extremely slow (I also have the main image flattened every 30-40 images to make it quicker).
So i tried to place the images directly into the main image via:
function placeFile(file) {
     var desc = new ActionDescriptor();
     desc.putPath( charIDToTypeID('null'), file );
     desc.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
         var offsetDesc = new ActionDescriptor();
         offsetDesc.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Pxl'), 0.000000 );
         offsetDesc.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Pxl'), 0.000000 );
     desc.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), offsetDesc );
     executeAction( charIDToTypeID('Plc '), desc, DialogModes.NO );
But after opening few images it says that "scratch disks are full", and I verify that it is true since almost 500GB of the HD are used by the application... Images are 512x512 each, thus the resulting image main image is 83456x63488.
Is there a faster way I could try to use??
Thanks a lot!

And also realize what is going on. First your using a script. Though a script is a program with logic its source code which is not compiled into machine code its has to be intrepided into machine executable code as the script processor  iterate through your buffered source code. This itself takes time. Then you have to understand what is happening in your loop and what Photoshop has to do once the Script code can be executed.  Using Copy and Paste or Place requires Photoshop to open and read in 20,000 encoded jpeg images files and one way or the other decode the encoded image for rendering to copy it to the Clipboard  or render the embedded smart object copy into the Smart Object Layer. Then there is the other code that you have to add canvas and distribute the images layers across the canvas. Intrepiding the script source code some 20,0000 times is something like doing 20,000 compiles where the source code is only read in once but is turned into machine executable code 20,0000 times.  To process 20,000 encoded images files using a full feature image Editor program and a scripting process is going to take a long tome and require a lot of machine resources.  If you want a fast solution you will need custom compiled program designed for your process. Still reading and decoding 20,000 small jpeg image files is going to take some time and require quite a bit of machine resources. It might be better to use an image file format that doesn't use compression and complex image encoding to cut down on the amount of processing reqruired .  

Similar Messages

  • Best way to turn a looped region into one regular region.

    Hello,
    This is going to be a very easy question for someone to answer.
    When I record a small part (say just a 2 bar lick) I then pull the end corner to loop it.
    FANTASTIC.
    But I would rather view it on the main window as one solid region, rather than seeing the little ''bite marks'' that make it look like an accordion, or a bunch of regions pushed together. To me, that looks messy.
    I have yet to find a way to quickly turn it into one region. Would the best way really be to bounce in place, because merging or joining does not seem to work for loops.
    Again, I'm sure it is something I'm missing here that it quite simple.
    I'm still trying to get my logic legs and put my PT ones on hold for the time being.
    Cheers.

    Bounce in place.

  • Whats the best way to place an image in DW CS5.5

    Hello all,
    what is the best way to place an image exactly where I would like it to go in Dreamweaver CS5.5?
    I have my images sliced in Fireworks already. Also since my images are sliced already in Fireworks is
    there a way to place the images exaclty where I had them in my original Photoshop file?
    Thanks in advance!
    DRivera

    Stay away from APDivs for layouts.  Start with a pre-built CSS layout that has all the columns you will need for your project.
    Beginner CSS Templates -
    For commercial CSS Templates that are rock solid and perform well in all browsers, visit Project Seven:
    http://www.projectseven.com/products/index.htm
    Not Just a Grid CSS Framework (free)
    http://www.notjustagrid.com/demo.asp
    Ultimate Multi-Column Layouts (free)
    http://matthewjamestaylor.com/blog/ultimate-multi-column-liquid-layouts-em-and-pixel-width s
    EZ-CSS Templates (watch the screencast to see how it works)
    http://www.ez-css.org/css_templates
    Dreamweaver CSS Templates for beginners (free)
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
    New DW Starter Pages (free)
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • What is the best way to place image (with caption) in a Book?

    I am preparing a template for an Encyclopedia project, The Encyclopedia will be in more than 10000 pages, so what is the best way to place images (Photos, Graphs, illustration ...etc) with a caption?
    The problem that when I modify text; the image don’t move with it, and when I place it within the text, it's difficult to control text flow.
    Please Help

    Thank you Peter,
    it's a bit dificult to control anchored object -speacially in two colum text box- when placing image in one and half colum size, it wont move to first column.

  • I burned a playlist to a data CD using itunes 11 but what is best way to get it import it into another computer with itunes running?

    I burned a playlist to a data CD using itunes 11 but what is best way to get it import it into another computer with itunes running?  I get an "X" when trying to copy to the "automatically add to itunes" folder on the 2nd computer.

    ok... so i i just made sure all my music is all together in 1 folder and i am going to trash my old music folder that is in the itunes folder... and follow your directions - let itunes start w/new library and bring my music in. Well, last little hurdle/question. I noticed that the place where my itunes library is - on an external drive doesnt have much space left on it. The place where i gathered all my music together in order to start fresh - is a different external drive and has LOTS of free space on it.
    SO... i now would like to just keep all that freshly compiled clean music right where it is but in advanced preferences I want to point to that new folder on the drive that has so much more space. So... should i delete the old music then go into itunes with a blank library and change the folder in preferences - quit and go back in and then follow your steps to loading my music? If i change the setting of where itunes looks for the music - that doesn't wipe out the old stuff... it just mixes it all up together right? I dont want that!!
    i promise this is the last question - i would love to fix this problem tonight and just be DONE!
    Thanks in advance for your patience and knowledge!!
    Lisa

  • What is best way to reconnect lots of tracks in library?

    From time to time I have clicked on a track only to get the message that the program can't find the track & it asks if I would like to find it. This is usually quite easy to do if you have just one of 2 tracks.
    What do you do if you have hundreds or thousand to reconnect because some file were moved to a different location? I know that if I have files go missing in several different programs I only have to locate one file & I then they asked if I wish to try to find other files in that same or similar location, & all the rest get reconnected. Is there a similar feature in i Tunes for doing this & if not what is the best way to reconnect lots of music tracks?

    All of my music files had been copied to an external hard drive before my PC crashed. I'm not certain what drive letter Windows had assigned that drive since I have had so many. In any event I copied all of the music files from that drive onto the folder Windows 7 calls desktop> music files. I'm guessing that this is a 'C' drove.
    What I think you are suggesting is that copy the files from the external drive to a different drive or partition on my PC, say 'D' drive & see if i Tunes picks up all of my files. Then if It doesn't do so rename 'D' drive to 'E' etc until I find a drive letter that i Tunes remembers. If It does recognize tracks that it could not find won't the tracks that its currently finding no longer work?
    What would happen if I were to tell i Tunes to add any entire extra folder that appears to be missing. I can see that this approach might add more tracks into my library but would this approach result in creating lots of duplicates? I already know that i Tunes does an abysmal job of looking out for duplicates. I have seen on the duplicate lists many tracks that should not appear there. The artists name & song title might be the same but the singer has recorded the same song at different times & the album name & songs duration is different. I have looked at a listing by
    an artist & seen real duplicates that aren't on i Tunes official duplicate list.

  • Best way to embed an Mov file into interactive flash game?

    Hey,
    just a quick query. I'm creating an interactive flash game for a university project. It's along the lines of Guitar Hero, Tap Tap Revolution, Boom Boom Rocket etc..
    At the moment the game comprises of streaks of notes generated by Actionscript which the user much hit the corresponding key when notes are in the receptor. The background at the moment is an audio spectrum analyser created using AS based on the music playing.
    I want to add loop movie file as the very background of the stage and was just wondering what was the best way to place it there with the least ammount of overheads. At the moment I have it in a child movie clip placed on the stage, in which I use File -> Import and embeded the FLV file into the time line. This works, however lags out quite badly.
    Any help would be appriciated.
    Thanks in advance,
    John Minns

    Have you tried this method?
    1. Save as new file.
    2. With your usual color management preferences selected, run Xtras>Color>'Name all colors'.
    3. In color swatches list, select all colors. From swatches pop-up menu 'Make RGB'.
    4. In Preferences>Color, set color management settings to 'None'. The RGB colors should look about the same as they did with color management on.
    Now you should be able to export to Flash with RGB colors that look quite close to your CMYK version of the file.
    This should work the same in FH9 or FHMX. I hope it does the trick for you.

  • What is the best way to merge a file content into log file

    What is the best way to merge a file content into log file.
    In worst case, I will read the file line by line as string, then use
    logger.info(lineString)to output to log file.
    However, is there better way to do this?
    The eventual log file will be something like:
    log message 1
    log message 2
    content from file line 1
    content from file line 2
    content from file line 3
    log message 3
    log message 4Thanks

    John618 wrote:
    Thank you and let me explain:
    1. What do you mean by better?
    I would like to see better performance. read line by line and log each line as string can be slow. Did you measure this and determine that it is actually a problem for your application? Or are you guessing?
    Regardless of what you do you are still going to need to read the file.
    >
    2.The only better way I can think of is not having to do it, but I assume you have a very good reason to want to do this.
    Yes, I have to do it beacuse the requirement is to have that file content be part of logging.
    Any idea?How is it supposed to be part of it? For example which of the following is better?
            File AAA - contents
                       First Line
                       Second Line XXX
            Log 1
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: First Line
                    2009-03-27 DEBUG: Second Line XXX
                    2009-03-27 DEBUG: Random following line
            Log 2
                    2009-03-27 DEBUG: Random preceding line
                    2009-03-27 DEBUG: ----- File: AAA -------------
                    First Line
                    Second Line XXX
                    2009-03-27 DEBUG: Random following lineBoth of the above have some advantages and disadvantages.
    The first in a mult-threaded app can end up with intermittent log entries in between lines, so having log lines with thread ids becomes important.
    The first can be created by reading one line at a time and posting one at a time.
    The second can be created by reading the entire file as a single string and then posting using a single log statement.

  • What is the Proper Way to place a Background Image inside a Div?

    I have been searching Google and the Adobe forums for awhile now, and while there are very valid solutions to similar problems I found that none of them fixed the problem that I am facing. I blame myself and getting lost in this sloppy coding of mine, so part of my plan was to start my style sheet over from scratch.
    My question, what is the proper way to add a background image into a div? I currently have the top div following the "header" css style, here is what I have typed into that sections:
    <style type="text/css">
    @import url("../twoColLiqLtHdr.css");
    .header {
        width: 1000px;
        height: 300px;
        background-image: url(Assets/HeaderTemplate.png);
        background-repeat: no-repeat;
        background-position: center;
    The problem here is that the background image isn't even appearing. I would greatly appreciate any help, could anyone inform me on the proper way to doing this so that I can implement images in divs in the future without turning my coding in a down right mess?
    Thank you in advance.

    I apologize, I'm unable to post a link to the page just yet. This is a snip of coding for a website still in the making for the company I work for.
    Would any of the coding below help?:
    </script>
    <style type="text/css">
    <!--
    body {
        background-color: #760101;
    a:link {
        color: #FFF;
    a:visited {
        color: #690;
    .twoColLiqLtHdr #header table tr td {
        color: #400000;
        text-align: right;
    -->
    </style>
    <link href="../twoColLiqLtHdr.css" rel="stylesheet" type="text/css" />
    </head>
    <header class="twoColLiqLtHdr">
    <scmenu class="twoColLiqLtHdr">
    <tab class="twoColLiqLtHdr">
    <body class="twoColLiqLtHdr">
    <div class="header" align="" id="header">Content Goes Here</div>
    <div class="scmenu" align="" id="scmenu">Content Goes Here</div>
    <div class="tabs" align="" id="tabs">Content Goes Here</div>
    <div class="body" align="" id="body">Content Goes Here</div>
    <div class="footer" align="" id="footer">Content Goes Here</div>
    <script type="text/javascript">var TFN='';var TFA='';var TFI='0';var TFL='0';var tf_RetServer="rt.trafficfacts.com";var tf_SiteId="11773g197b36be92cde14c11fc77dacc3a2a4f1660eb17h9";var tf_ScrServer=document.location.protocol+"//rt.trafficfacts.com/tf.php?k=11773g197b36be92c de14c11fc77dacc3a2a4f1660eb17h9;c=s;v=5";document.write(unescape('%3Cscript type="text/JavaScript" src="'+tf_ScrServer+'">%3C/script>'));</script>
    </body>
    </html>
    That above is parts I added into the source code.

  • Best way to insert millions of records into the table

    Hi,
    Performance point of view, I am looking for the suggestion to choose best way to insert millions of records into the table.
    Also guide me How to implement in easier way to make better performance.
    Thanks,
    Orahar.

    Orahar wrote:
    Its Distributed data. No. of clients and N no. of Transaction data fetching from the database based on the different conditions and insert into another transaction table which is like batch process.Sounds contradictory.
    If the source data is already in the database, it is centralised.
    In that case you ideally do not want the overhead of shipping that data to a client, the client processing it, and the client shipping the results back to the database to be stored (inserted).
    It is must faster and more scalable for the client to instruct the database (via a stored proc or package) what to do, and that code (running on the database) to process the data.
    For a stored proc, the same principle applies. It is faster for it to instruct the SQL engine what to do (via an INSERT..SELECT statement), then pulling the data from the SQL engine using a cursor fetch loop, and then pushing that data again to the SQL engine using an insert statement.
    An INSERT..SELECT can also be done as a direct path insert. This introduces some limitations, but is faster than a normal insert.
    If the data processing is too complex for an INSERT..SELECT, then pulling the data into PL/SQL, processing it there, and pushing it back into the database is the next best option. This should be done using bulk processing though in order to optimise the data transfer process between the PL/SQL and SQL engines.
    Other performance considerations are the constraints on the insert table, the triggers, the indexes and so on. Make sure that data integrity is guaranteed (e.g. via PKs and FKs), and optimal (e.g. FKs should be indexes on the referenced table). Using triggers - well, that may not be the best approach (like for exampling using a trigger to assign a sequence value when it can be faster done in the insert SQL itself). Personally, I avoid using triggers - I rather have that code residing in a PL/SQL API for manipulating data in that table.
    The type of table also plays a role. Make sure that the decision about the table structure, hashed, indexed, partitioned, etc, is the optimal one for the data structure that is to reside in that table.

  • HT1198 I shared disk space and my iPhoto library as described in this article. When creating the disk image, I thought I had set aside enough space to allow for growth (50G). I'm running out of space. What's the best way to increase the disk image size?

    I shared disk space and my iPhoto library as described in this article. When creating the disk image, I thought I had set aside enough space to allow for growth (50G). I'm running out of space. What's the best way to increase the disk image size?

    Done. Thank you, Allan.
    The sparse image article you sent a link to needs a little updating (or there's some variability in prompts (no password was required) with my OS and/or Disk Utility version), but it worked.
    Phew! It would have been much more time consuming to use Time Machine to recover all my photos after repartitioning the drive. 

  • What's the best way to convert a current website into a Fluid Grid Laout?

    As the title says....
    What's the best way to convert a current website into a Fluid Grid Laout?

    See "Using Fluid Grid Layouts (video)"
    http://tv.adobe.com/watch/learn-dreamweaver-cs6/using-fluid-grid-layou ts/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How Do I Combine Several Images Into One Image Which Contains Links To A Series Of Web Sites?

    How do I combine several images into one such that the combined image contains a series of web links? In particular, I’d like to create such an image and put it into my Outlook email signature. At present, as per the image below, I have at least six separate images in my email signature with each image containing a web link. Is Photoshop the best tool for this job? Or would it be easier to do this in some other package? I have three packages at my disposal: Photoshop, Ilustrator and Dreamweaver. Can someone please explain in detail how I would do this? Or perhaps someone could direct me to a link that explains how to do this. Thank you.

    Thank you for that correction, Hobotor. I admit I hadn't thought about an image map, in the context of someone who doesn't seem to know HTML very well...  My thinking was running along the use of the Photoshop Slice Tool to get most of the way there...
    To expand on the above, if you were to slice up your image using the Slice Tool, say like this:
    Save for Web & Devices will create the HTML and save all the sub-images.
    Then you edit the HTML and add a (hypertext link) elements surrounding the various images.  Only thing is you'll have to set the border-style of the images to none.
    For example:
    <!-- Save for Web Slices () -->
    <table id="Table_01" width="554" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="10">
       <img id="Sig_01" style="border-style:none" src="images/Sig_01.jpg" width="554" height="56" alt="" /></td>
    </tr>
    <tr>
      <td colspan="10">
       <a href="http://www.GrahamsWebSite.com"><img id="Sig_02" style="border-style:none" src="images/Sig_02.jpg"
            width="554" height="43" alt="" /></a></td>
    </tr>
    etc.
    A full copy of the HTML and images can be found here...  View Source to see it as an example:
    http://Noel.ProDigitalSoftware.com/temp/Graham/Sig.html
    -Noel

  • FCP 10.1.3 multiple graphic images into one frame

    Hi - How do I put multiple graphic images into one frame? - so it kind of looks like a video wall - except these are still images. I can do it manually but it's not precise. Anyone found a way other than this? Thanks.

    Here is my quick and dirty generator called "9 Pictures": https://www.dropbox.com/s/92c536wgesh2yzj/9%20Pictures.zip?dl=0
    To install it, unzip the file and place the folder inside /Users/yourname/Movies/Motion Templates/Generators
    It will look like this in FCP X. You just have to click each drop zone icon in the inspector and then select the desired clip from the browser. Use the Pan and Scale controls in the inspector to select which part of each image you want to use. Note: this was done in the hope that it may be helpful, but it is no more than a quick thing. You can also control-click the generator in the generator browser and choose open in motion (if you have it) to see how it was done and to modify it.

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

Maybe you are looking for

  • How to call a WebService method using HttpsURLConnection?

    Hi, I want to know how i could use HttpsURLConnection to call a WebService method. I can use the following: String endpoint = "https://xyz:8443/axis/services/MSecurity"; System.setProperty("javax.net.ssl.keyStore", keyStorepath); System.setProperty("

  • Dynamic String names

    I want to dynamically name strings for the purpose of passing their value back to a jsp, but am not quit sure how to approach this. for (int i = 0; i < products.size(); i++)      MyProducts temp = (MyProducts)products.get(i);      if (temp.getName().

  • CommandButton action would not be invoked

    I am trying to follow the JSP 1.2 standard. The page is rendered correctly. The drop down list is populated successfully, which means my bean is correctly registered and initialized. However, when I click the button, the action is not called. (I have

  • QT4J VDIG/ WinVDIG

    I am trying to capture Video and Audio using QT4J. I tried using both VDIG and WinVDIG and in both the cases, the audio and video are not in sync. I believe it is not a problem in my code. VDIG comes with utility called Basic Capture. I get the same

  • Keywords iphoto 11

    I just found the discussion that ran through much of last year, about the problem of keywords not appearing under thumbnails in iphoto 11. This solves a mystery for me, I thought I had lost my keywords in the move from an older computer. I see a soft