HELP NEEDED!! batching, overlaying, background cut out

Hi All,
very new to this.
I have 2500+ images (caracitures of cars on white backgrounds). I need to place ALL of them on to  a BLACK tee shirt image for internet listing.
So, how do I do this automated?
make the thing background BLACK
overlay image on the teeshirt
save it in the order they are done
2500+ times
I use Photoshop 7.0

Adobe has made many changes in Photoshop scripting support since PS7 scripting add on. You may be best off with a two pass process.  The first one being a batch process that process your PDF file where you object have pure white backgrounds.  If the magic wand works well to select your white background you may be able to convert the background layer to a normal layer and then delete the white continuous area. Once deleted the background will be transparent, you should see a checker board area. Save a set of cutout object PNG files. That may be possible to do by batching an action. I have never processes PDF files using Automat Batch.  You may need a batch script where you can select just PDF files in a folder and open then the way then need to be opened.  The way I read your description your PDF files are singel image paged file.
Anyway if you can created a set of cutout object png files it should be possible then to create your tea shirt image files.  I had problems resizing images for an area in CS2 for there either was no selection bounds operation was available or there was a bug in Adobe scripting code.  I resize images to fit area all the time in my Photo collage toolkit scripts. However I not to sure how I do it would work well with png files that have large border transparent so before saving any png file trin the images transparent area first. So that the png file bounds and the objects bounds are the same.    My code works in CS2, CS3, CS4 CS5 and CS6 though there is a bug in CS6 that can bite.  PS7 and CS scripting support may be a bit different. I use Alpha channel selection to map images locations and use the bounds of the selection to know what to resize to taking into account the aspect ratio of the object and the aspect ration of the area.
Here is the main code I use.  Remember there a problem in scripting support prior to CS3 that I had to use my friend Rube Goldberg's sledge hammer to pound script into submission.   I place in full size images  the resize these to fit the area and mask off excess. My finctions code are not shown here.  Other ways are also posible. For example my paste image roll script use copy and paste where the image file is first flattened are resized for the location before the copy. The flatten would color in a png file transparent area don't flatten http://www.mouseprints.net/old/dpr/PasteImageRoll.jsx
Code
if (fileList[i] instanceof File) {
                                                   var layers = activeDocument.layers;
                                                  activeDocument.activeLayer = layers[layers.length-1-imageNumber+1];           // Target Background Layer or last placed image
                                                  placeImage(fileList[i]);                                                     // Place in full 100% size Image
                                                  // resize smart object layer to just cover canvas area aspect ratio and size
                                                  // Get Smart Object current width and height
                                                  var LB = activeDocument.activeLayer.bounds;
                                                  var LWidth = (LB[2].value) - (LB[0].value);
                                                  var LHeight = (LB[3].value) - (LB[1].value);
// sledge hammer
                                                  // Get Alpha Channel's width and height Selection Bounds did not work???
                                                  makeLayer();                                                            // Make Temp Work Layer
                                                  loadAlpha("Image " + imageNumber );                              // Load Image Alpha Channel
                                                  fillBlack();
                                                  activeDocument.selection.invert();                              // Inverse
                                                  // If image size equals canvas size no pixels neill be selected clear will fail
                                                  try{
                                                            activeDocument.selection.clear();                    // One clear did not work
                                                            activeDocument.selection.clear();                    // Two did the trick
                                                  }catch(e){}
                                                  activeDocument.selection.deselect();                              // Deselect
                                                  var SB = activeDocument.activeLayer.bounds;                    // Get the bounds of the work layer
                                                  var SWidth = (SB[2].value) - (SB[0].value);                    // Area width
                                                  var SHeight = (SB[3].value) - (SB[1].value);                    // Area height
                                                  activeDocument.activeLayer.remove();                              // Remove Work layer
  //end hammer to get the area bounds
// the following line will produce an internal error in CS6 if Photoshop's user interpolation prefence is Adobe cs6 default Bicubic Automatic.
                                                  var userResampleMethod = app.preferences.interpolation;          // Save interpolation settings
                                                  app.preferences.interpolation = ResampleMethod.BICUBIC;          // resample interpolation bicubic
                                                  if (LWidth/LHeight<SWidth/SHeight) { // Smart Object layer Aspect Ratio less then Canvas area Aspect Ratio
                                                            var percentageChange = ((SWidth/LWidth)*100);  // Resize to canvas area width
                                                            activeDocument.activeLayer.resize(percentageChange,percentageChange,AnchorPosition.MIDDLE CENTER);
                                                  else {
                                                            var percentageChange = ((SHeight/LHeight)*100); // resize to canvas area height
                                                            activeDocument.activeLayer.resize(percentageChange,percentageChange,AnchorPosition.MIDDLE CENTER);
                                                  app.preferences.interpolation = userResampleMethod;          // Reset interpolation setting
                                                  // Load Alpha Channel as a selection and align image to it
                                                  loadAlpha("Image " + imageNumber);
                                                  align('AdCV');
                                                  align('AdCH');
                                                  // Add Layer mask using Alpha channel Image area map
                                                  layerMask();                                                                      // Add un linked Layer Mask
                                                  // Add Photo Collage Layer Style to image layer
                                                  addStyle(imageStyle);

Similar Messages

  • Please help! Video and Audio Cut Out of Project Made in FCE, Burned in iDVD

    I made a 20 minute movie in FCE 4 and burned it onto a DVD using iDVD (I have a MacBook that runs Mac OS X Snow Leopard). For some reason, when I watch the DVD, both the audio and the video cut out approximately five minutes into the movie. The audio and video both cut to black at exactly the same time and never come back. I haven't inserted any chapter markers or anything, so I know that's not the issue. Any idea what the problem might be? Thanks in advance.

    Open the exported file in the QuickTime player. Does it play all the way through correctly? If yes, you should try the question on the iDVD forum. If no, report back what you've got in the QT player.

  • HELP needed! HACKED NOW LOCKED OUT

    Hi all
    I am very new to apple and not very good with IT anyway so please be gentle with me!
    I bought a new mac a few months ago which my boyfriend (whom I am 38 weeks pregnant with!) talked me into and set up for me.  7 weeks ago I caught him cheating and kicked the lowlife out,  I changed all my passwords etc set up a new email account but was convinced he still had remote access, I turned off remote access and removed him as admin, still He seemed to have access (told by lots of IT savvy people this wasnt possible) BUT then I couldnt sleep one night and was on computer as he was accessing, I quickily photocopied some of the things he was looking at bank account, email account, facebook messages and even had copies of text messages that were sent to MY iphone??? etc then pulled the plug police came out he got arressted and cautioned for misuse of computer act but as he EXPLAINED how he did it (not really just gave them enough) they didnt bother going into the system in the end, he has since told me how he tied them up in circles and bluffed his way through which he finds highly amusing!!! Picked up mac yesterday got up in the middle of the night so I could get on with no interference from him, even though it still says im admin it wont let me put anything in anywhere I can open things with right click on the mouse but cant close anything or change anything went back to log in page now cant access anything from there, I have no idea where the reinstall disk is,  I already know he locked me out of my mobile me account which is one of the first things he did, I have spoken to apple support and because I know nothing, and he paid for it (mobileme account) I have lost ALL of my photos (including all my photos of my little boy when he was a baby ), contacts, music everything. Please help I dont have the money to pay a fortune for a specialist to go through it, what do I do???

    The best advice i can really give you is to start again,
    this is a mac pro right? not a macbook?
    if thats the case, buy a new internal hard disk, put it into a spare sled, and reinstall OSX onto it and set it up yourself, a new copy of osx isn't to expensive, once you've done this you should be able to get back into the old disk and take back the files that you want, then in system prefrences setup some serious firewalls and turn your filevault on, to prevent further security issues.
    once you've got everything you need, go into disk utillity and just wipe the old hard disk and volia you have a brand new system with more storage than you had before.

  • Help needed with sending XML data out of Dashboard design/ Xcelsius

    Hi All,
    I did this a year back and got it right, but now am not able to get it, probably Ive made a small mistake which I have been overlooking.
    I selcted Enable XML send in my XML data connection and dfined the connection name as "Range_1" and Range name also as "Range_1"
    Now I worte this servlet in Java:
    public class PostTestServlet extends HttpServlet{
         protected void doPost(HttpServletRequest request, HttpServletResponse response){
         String param1=request.getParameter("Range_1");
         System.out.println(param1);
         protected void doGet(HttpServletRequest request, HttpServletResponse response){
         System.out.println("Get Called");
         doPost(request,response);
         System.out.println("abcd");
    Deployed it to Apache Tomcat 6.
    Also selected the required usage options in Xcelsius for sending data every 10 seconds.
    Now the servlet gets called, I see it in the console.
    But the request.getParameter("Range_1") is returning null.
    Tried many things, not able to figure it out. Any help?
    Thanks
    Nikhil

    Hi,
    Xcelsius/Dashboards will convert the range of values that you want to send into XML.
    It then will POST the XML when it calls the web page.
    For example, if you had created three ranges to send to your web page:
    A (a single cell)
    B (a single cell)
    C (a row of three cells)
    The data in the POST input stream for the web page will look something like this:
    <data>
      <variable name="A">
        <row>
          <column>10</column>
        </row>
      </variable>
      <variable name="B">
        <row>
          <column>15</column>
        </row>
      </variable>
      <variable name="C">
        <row>
          <column>1</column>
          <column>2</column>
          <column>3</column>
        </row>
      </variable>
    </data>
    I don't have an example for ASP, but I do for a JSP (attached).
    Regards
    Matt

  • Help needed for a Final Cut Express project Compression

    Hi guys,
    This is my first post as I usually find answers to all my questions reading through the various thread. I just haven't found an answer to my last pb yet hence the new topic. Hope you guys can help.
    I have got this very simple slideshow that I need to burn onto DVD. The issue is that it's LONG. It's an hour and 17 minutes and i have no idea what is the best way to compress/export this so I can burn this on a single layer DVD.
    I tried various options and it suddenly stops because I "only" have 13GB of free space on my macbook. 13GB!!!! How will this ever fit on a DVD? and this is with medium quality...
    please help!
    Thanks a lot in advance!

    Hi Sasha.
    Woke up this morning and the burning never started because the file was too big. I exported the file from FCE and it was 16GB! iDVD never managed to fit it in my single layer DVD. Am I using iDD correctly?
    I am thinking I need to compress this further on FCE right? I don't understand why such a simple movie (although very long) can take so much space. It's only about 900MB of JPGs and 120MB of music. I don't want to bring the quality down to "low" because it won't look good.
    So far, I have been exporting using quicktime conversions and I tried the following formats: tried exporting in AVI and QuickTime Movie. For the compression type, I tried DVCPRO50-NTSC on medium quality (with AVI) and Photo-JPG & DVCPRO50-NTSC again (with QuickTime Movie) both on slightly better than medium quality. Results all were well above 10GB.
    Please, help!
    Thanks.
    Hope you can help.
    Emilien

  • Help needed in how to find out Web services in CRM

    Hi All,
    I have a requirement where in i am trying to check out what all CRM business objects are supported as web services as standard SAP functionality.
    Any pointers on this will be really helpful.
    Thanks,
    Udaya

    Hi Udaya,
    Did you check in the Enterprise Service Browser in NWDS?
    (Assuming CE7.1 infrastructure)
    I currently do not have access to confirm on CRM business object, but in the Services Browser some standard services were available.
    This information should also be available on SOAMANAGER or Service Repository (http://<server>:<port>/sr but I haven't checked it personally.
    Hope this is helpful.
    Regards,
    Vandana.

  • Help needed in class. cant figure out distance

    i have declared 3 variables in a class, x and y are coordiantres
    public class Robot
    private double X;
    private double Y;
    private double Orientation;     
    public Robot()
    X = 0;
    Y = 0;
    Orientation = 0;
    public (double pX, pY, double pOrientation)
    iX = pX;
    iY= pY;
    iOrientation = pOrientation;
    public double getX()
    return iXCoordinate;
    public double getY()
    return iY;
    public double getOrientation()
    return iOrientation;
    public void turnRight (double pDeg) //Degrees
    iOrientation= iOrientation + pDeg;
    public void moveForward (double pDis)
    double d=0;
    double dx=0;
    double dy=0;
    double radians=0;
    radians = Math.toRadians(A); //A is converted to radians     
    dx=d* Math.sin(radians); //distance travelled in x
    dy=d* Math.cos(radians);//distance travelled in y
    how do i get the moveforward i have been given the code written above. in the method also been given dx = d*sin(A) and dy = d*cos(A)
    aprreciate the help thanks

    Damn, I love NetBeans' code reformatting macro...
    public void moveForward(double pDis) {
      double d=0;
      double dx=0;
      double dy=0;
      double radians=0;
      radians = Math.toRadians(A); //A is converted to radians
      dx=d* Math.sin(radians); //distance travelled in x
      dy=d* Math.cos(radians);//distance travelled in y
    }If you read the comments in this method it quite clearly tells you that it is giving you the distances travelled in both dimensions. All you need to do is add those to the objects current position and voila, you have displacement.
    (This is why courses on Newton's laws of motion should be required education for all students)
    McF

  • Help Needed in Zooming and Zooming Out Images in flex

    Hi
    I am using <mx:Zoom /> component to zoom an image!
    I am able to zoom and Zoom out the Images but when I zoomIn the Image is cropping!
    Can any one give me the link or code for best zoomin and  zoomOut for Images?
    Is there any way that I can Zoom Video in flex?
    Thanks n Regards
    Aruna

    Probably the simplest solution is to use password-based encryption (PBE). See http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#PBEEx
    for an example.

  • Codec help needed - Quicktime to Final Cut

    I am having a problem in my workflow using Keynote, QuickTime and Final Cut Pro.
    I’m trying to create some presentations in Keynote, export them to Quicktime, then import them into Final Cut Pro and then export them into various formats.
    I want to have the ability to export these to DVD in the highest quality possible. I will also be exporting them for web streaming, downloading and to play on iPods in the future.
    My understanding is that bigger at the top is better and then I can always export them into smaller formats. Correct? Which leads me to believe I have to use either of the first two options below.
    Keynote slides can start in 1920 x 1080, 1680 x 1050, 1280 x 720, 1024 x 768 and a few small formats. These will export in the same resolution to Quicktime.
    After I import them into Final Cut I believe I have to (1) adjust the Sequence settings and (2) in the Audio/Video setting, adjust the Capture and Sequence presets.
    I originally was trying to work with 1680 x 1050 but was then told that makes it more time consuming when rendering and exporting my video.
    The proportions are fine with me at 1920 x 1080. Should I use that?
    But whatever you recommend to start off with, then what do I adjust in my Sequence Settings and in my Audio/Video settings for Capture and Sequence presets?
    Thanks!

    Thank you!
    I did what you said, exported at 1920 x 1080 in Apple Pro Res 422. I had to increase the fps back to 60, as the transitions were jagged at 24fps.
    The above looks great when I view it in Quicktime.
    I imported the above Quicktime file into FCP. FCP did select the settings as above.
    When I exported with "current settings", the quality wasn't good.
    I tried exporting with Apple Pro Res 422 60i - this wasn't very good.
    I tried exporting with Apple Pro Res 422 24p - this wasn't very good.
    I tried exporting with Apple Pro Res 422 30p - this was the best. It wasn't as good as the original export from Keynote, pretty good, but noticeably different from the original export.
    Is this normal, that I will loose resolution even at the same settings? Or am I still missing something?
    I also tried the same thing starting with Apple Pro Res 422 (HQ) 1920 x 1080. I had similar results.

  • Help needed for strange signal drop out problem

    My iphone 3G does this odd thing -
    The phone will show a strong 3G signal until I open an app that uses data, or try to make a call. Then the signal suddenly vanishes and the connection fails. If I wait 10 seconds it comes back and it's fine. Also it seems I am missing calls while the phone is locked.
    When I disable 3G under the network settings the problem seems to go away.
    Has anyone one else had similar issues or been able to solve the problem?
    Many thanks.
    Luke

    I have the samme issue ever since 3.x software came out. HAvent been able to use 3G since and have been operating on Edge without issues. Very dissapointing as its definitely a software problem and been going on for ages...even the newest update 3.1.3 hasnt fixed it...

  • Help needed !  How to find out 'XML Difference' using XDK

    I'm using oracle.xml.differ.XMLDiff.
    I have set XML files.
    Then calling generateXSLFile("somefile")
    While running facing :
    Exception in thread "main" java.lang.NullPointerException
    at oracle.xml.differ.XMLDiff.generateXSL(XMLDiff.java:383)
    at oracle.xml.differ.XMLDiff.generateXSLFile(XMLDiff.java:330)
    at XMLDiffTest.main(XMLDiffTest.java:38)
    Same prob if I use setDocuments(xd1,xd2) ....
    What is the way out ?
    Does anyone have any sample code ?
    TYI
    Kaniska

    To compare XML documents with the XMLDiff class.
    -Add /lib/xml.jar and /lib/xmlparserv2.jar to the Classpath.
    -Parse the two documents to be compared with the DOMParser.
        DOMParser parser=new DOMParser();
                 parser.parse("file://c:/xmlFile1.xml");
    XMLDocument document1=parser.getDocument();
    XMLDocument document2;-Create an object of type XMLDiff
    XMLDiff xmlDiff=new XMLDiff(); -Set the documents to be compared.
    xmlDiff.setDocuments(document1, document2);-Compare the XML documents.
    boolean diff=xmlDiff.diff();If diff is 'true', the documents are different.
    -Generate the XSLT for the differences between the XML documents.
    xmlDiff.generateXSLFile("diff.xslt");

  • My iPod Touch cut out and won't turn back on. What has happened?

    Help. My iPod Touch cut out and it won't turn back on.Does anyone know how I can get it working again?

    Is this what you are looking for?
    iOS: Wrong passcode results in red disabled screen
    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.

  • Need help cutting out images

    Hey
    I realize what Im asking for might be complicated. But any
    help or direction I can get will be appreciated.
    I want to right something that will take a photo realistic
    image, say maybe a 400x300 photo of anything really, and cut out
    peices of the photo, so that I can manipulate these peices after.
    For example...if its a photo of a guy riding a bike and hes wearing
    a blue shirt....I want to cut out the blue shirt part and change
    its color on the fly, just by clicking on the blue shirt.
    Any ideas??
    Oh and does this process have a name?

    Yes, you're right - it is complicated!
    The reason is that with a photo of a guy wearing a blue
    shirt, that blue shirt is actually made up of hundreds of different
    subtle shades of blue.
    So to implement this, you'd need to perform a number steps,
    some of which are fairly complex:
    1) allow the user to select a point in the image
    2) read the colour at that point. You might find you need to
    take an average of a small area around that point to get a better
    approximation of the percieved colour at that point because the
    colour of pixels within a seemingly 'flat' area of colour can
    actually vary significantly. (this is why the photoshop inkdropper
    tool offers 3x3 and 5x5 average options).
    3) gradually 'scan' outwards from the pixel coordinate
    clicked on, checking each adjacent pixel in the image and comparing
    the difference in colour value against the initial colour selected
    (using getPixel). If it is within a certain tolerance, you can
    include it in the selection. You'll need to create an array or
    another image object to store the results in. Repeat this process
    until there are no more adjacent pixels that fall within the colour
    tolerance range.
    4) Use an RGB->HSB routine to convert the colour values to
    HSB, so that you can then adjust the 'Hue' value, and finally
    convert back to RGB. I have one here:
    http://robotduck.com/content/articles/director/imageManipulation/shiftHue.txt
    And whether it has a name?..
    well, the tool which selects an area within a certain colour
    range in photoshop is called the 'magic wand', so I guess that's a
    good way to refer to it - a magic wand function. And to change the
    colour by 'rotating' the colour values through the colour spectrum
    (which is what my example code does) is called 'shifting the hue'
    of the colours.
    hope this helps!
    - Ben

  • Screen has cut out, desperately need help!

    The screen on my iMac has cut out. It has happened before and I have had to restart the system to get it back. This time however that hasn't worked. I have booted up the system and can access the files using a second machine via ethernet and the screen did come back briefly when I pressed the ctrl ket before going blank again. I am pretty sure it is not a hardware problem but desperately need a suggestion to help recover the situation.

    When I start the machine the screen briefly goes white after the startup chime then goes black again. The same thing happens when I do command-R. The system continues to boot up and I can access the files from my other machine. On two or three ocasions the screen has momentarily come on when I have touched a key or the mouse. For a brief second everything looks OK then it is gone again.

  • Need help cutting out a middle section of a song!

    I have a song that I want to cut out a large portion of the middle.
    I have no Garageband experience, so googled/youtubed info.
    I THINK I have properly split in the two places where the cut needs to be made, but when I delete that portion between the 2 splits, I cannot get it to join properly! It's like only a small bit has been deleted, NOT what I split and deleted!
    Please help!!! I need this done by today!
    Thanks so much!

    I THINK I have properly split in the two places where the cut needs to be made, but when I delete that portion between the 2 splits, I cannot get it to join properly!
    That should work. Have you "Snap to Grid" enabled? Then turn the grid off; you toogle it on and off in the "control" menu in the main menu bar (Choose Control > “Snap to Grid ⌘G).

Maybe you are looking for