Cropping of the multiple Images in single file

Hello

I have to handle a load boards-contacts (hundreds) to separate the images digitized high-resolution. The problem with this task is that the images are laid out - and slightly turned - different every time, while I have to touch all the files. I created an action that offers me a predifined rectangle cropping (to move or rotate), this image (sub-) cultures, recorded in a directory and restores the file to its previous state, to select/harvest other subpicture. It's more or less what I need, except that the new created image is replaced every time again. Then, instead of the registration of 'subset001_01.tif', 'subset001_02.tif'... There is always only one file "subset001_01.tif".

Any ideas how to accomplish this task? Or any suggestions how to get PS to save additional files with naming?

TIA,

Lars

This should be close to the fault you need.

// This script will save the active document to a folder with an incremental sufix
// Change the options below to match your needs
var saveFolder = new Folder( '/c/temp2' );
var saveExt = 'tif';
var saveSufixStart = '_';
var saveSufixLength = 3;
tifOpts = new TiffSaveOptions();
tifOpts.embedColorProfile = true;
tifOpts.imageCompression = TIFFEncoding.NONE;
tifOpts.alphaChannels = false;
tifOpts.layers = false;
// End of user options
//==========================================
function zeroPad ( num, digit ){
   var tmp = num.toString();
   while (tmp.length < digit) { tmp = "0" + tmp;}
   return tmp;
}
var docName = decodeURI ( activeDocument.name );
docName = docName.match( /(.*)(\.[^\.]+)/ ) ? docName = docName.match( /(.*)(\.[^\.]+)/ ) : docName = [ docName, docName, undefined ];
var saveName = docName[ 1 ]; // activeDocument name with out ext
var files = saveFolder.getFiles( saveName + '*.' + saveExt );// get an array of files matching doc name prefix

if( files.length == 0 ) {  // no file with that name so start at one
   var saveNumber = 1;
}
if( files.length == 1 ) { // one file found, see if it has a sufix
   var fileName = decodeURI ( files[ 0 ].name );
   fileName = fileName.match( /(.*)(\.[^\.]+)/ ) ? fileName = fileName.match( /(.*)(\.[^\.]+)/ ) : fileName = [ fileName, fileName, undefined ];
   if( fileName[1].match( /_(\d{3})$/ ) == null ){
      var saveNumber = 1;// does not have sufix so set to one
   } else{// has sufix
      var saveNumber = parseInt( fileName[ 1 ].match( /_(\d{3})$/ )[1] ) + 1; // strip the ext and get the sufix , convert to number and add 1
   }
}
if( files.length > 1 ){
   files.sort();
   var fileName = decodeURI ( files[ files.length -1 ].name );
   fileName = fileName.match( /(.*)(\.[^\.]+)/ ) ? fileName = fileName.match( /(.*)(\.[^\.]+)/ ) : fileName = [ fileName, fileName, undefined ];
   var saveNumber = parseInt( fileName[ 1 ].match( /_(\d{3})$/ )[1] ) + 1; // strip the ext and get the sufix , convert to number and add 1
}
var saveFile = new File( saveFolder + '/' + saveName + '_' + zeroPad( saveNumber, saveSufixLength ) + '.' + saveExt );
activeDocument.saveAs( saveFile, tifOpts ,true ,Extension.LOWERCASE);

Tags: Photoshop

Similar Questions

  • How to insert multiple images into a file

    How to insert multiple images into a file

    Hi Mary,

    See this tutorial on adding images in Photoshop Mix and the grantor together: http://tv.adobe.com/watch/learn-photoshop-cc/combine-two-photos/

    Hope that helps,

    Concerning

  • SCRIPT TO IMPORT SEVERAL IMAGES PLACES... AND MULTIPLE IMAGES IN SINGLE OUTPUT PDF.

    Anyone got a script to import several images placed in CS4? or is it possible in CS5?

    and we can out of the multiple layers in a single PDF in illustrator?  Or several layers in single format JPEG from illustrator with a single command instead to save individually on each page... would be a huge timesaver for me.

    Currently I pulled out each layer individually filled then right-click on these JPEG output files in the output folder and choose "combine taken supported files in acrobat... "to create a unique acrobat...

    I also that to be able to CTRL click multiple layers and go save as... only these layers be saved on...

    And so add something in the Save to output PDF save the Layers dialog box to multiple pages would be a useful time saver...

    In CS 4 and CS 5, you can drag and drop FRO m the finder or bridge, and I suppose that any other viewer of similar type, multiple number of image files to a document. You can configure the bridge so that you can see the bridge and your document at the same time for this purpose.

    If you drag and drop files are linked, if you drag while holding down the SHIFT key, then the files will be incorporated.

    ID and PS CS 5 have a minijonction who works the way sam but is actually a Panel and will stay at the front.

    I have separate images but they import on the other.

  • Automatic cutting of the multiple images in the analyses

    Hello

    I get a rough bunch of scans and the first thing I have to to with it is their culture in individual images. We are talking here about hundreds of photos, with 6 + images on each raw scan. Do it manually is time-consuming and may not be 100% reliable.  We should think about a kind of software was able to do this automatically (PS plugins?), if anyone has an idea please let me know!

    To avoid confusion, I did a quick illustration of what features are required:

    scan_autocrop.jpg

    I think I * could * use something other than Adobe *- but in desperation I try in any case this forum... ! It would be GOOD to be able to do all of this repetitive work, in one lot.

    Thanks for all comments on the approach of this

    File-> automate-> crop and straighten Photos

  • JavaScript 3D: I can't create the integrated Image of JPEG file object

    I would like to create an Image object from a JPEG file embedded (like object FileSpec, referenced in the names of resources of the 3D stream object tree), later to serve as a backdrop. Unfortunately, the created image object has zero dimension and cannot be used later:

    RES = new resource ('pdf://sunset.jpg');

    Host.Console.println (res.type);  Ok. outputs 'image '.


    IMG = new Image (res);

    Host.Console.println (img.width +' "+ img.height); not ok. outputs 0 '0'

    However, if the image is embedded as an Image XObject in the PDF file that is referenced instead of the dictionary of the specification of file in the tree view of the resource names, the code works and the subject of the Image has a nonzero size.

    Is this expected behavior? I ask because the 3D JavaScript API says that Image objects can be created from embedded resources from file.

    Thanks for any comments,

    Alexander

    OK - it needs these tags. Here is a screenshot of the structure when you use Acrobat Pro (a scene 3D, a single resource being added, "bitmap.jpg") - as you can see that the image is stored as an XObject, with the data of the 3D model in the tree (the binary stream above the entrance of 3DV)

    Acrobat 9 and X 3D annotations are stored using the specification in part 9.5 ISO 320000/1.7EL3 - they are similar to Rich Media Annotations, but not exactly equivalent. However if you add a SWF file to a 3D annotation table resource, all annot is repacked as a Rich Media Annotation (/ T:Annot S:RichMedia) with the 3D model and resources stored as objects of the file specification in the elements library. Entries in the RichMediaSettings tree say the rendering engine that it is still a 3D scene, but we do need spend containers like this as a 3D annot has limited the supported for resources non - Image.

  • Change the preview image of audio files (no icon) in the Finder?

    I know that this is easily done in iTunes, simply by changing the 'work' of the song.

    But I need to do it outside of iTunes, and I need to change the preview image and not the image of the icon.

    Many tutorials show how to easily change the icon of a file, but I found nothing on the change in the preview...

    As said, I need to do it in the Finder, or perhaps with Quicktime? I don't know how I can use it, if necessary.

    I need to have the work I want already in the file before you import it into iTunes, regardless of the reason for which I won't get into that.

    You can use a tag editor to third party such as Meta-z for the files to m4a format.  I would recommend the Rage of free media now, but I can't find a download link works.

  • Cropping of the video Images

    I was wondering how to crop the video images as they run. Is there a module vi which can be used to do this? Examples I've seen online used a nonexistent moment IMAQ extracted.

    What do you mean a "non-existent" IMAQ extract?

    Are you sure that your vision module is installed?

    It is possible to "reframe" the images, I think that there are examples in LabVIEW. Help > find examples... > tab "search"

    Hope this helps

  • The multiple images on the screen layout

    Hello

    How do I layout of multiple images side by side in a controlled manner? I'd like have a background image and display several images before this image in different positions. Can I use arrays? Below code is what im going she to achieve but its overriding the paint method. Is there a better way to do this so at least the effort of porting to a different screen resolution?

    Thank you

    protected void paint (Graphics graphics) {}
    Super.Paint (Graphics);
    width int = backgroundBitmap.getWidth ();
    int size = backgroundBitmap.getHeight ();
    Bitmap backgroundBitM = Imagearriereplan;
    If (highlighted)
    backgroundBitM = backgroundBitmapHighlight;

    graphics.fillRoundRect (0, 0, width, height, 10, 10);
    graphics.drawBitmap (0, 0, width, height, backgroundBitM, 0, 0);
                    
    int quarter = backgroundBitM.getHeight () / 4;
    graphics.drawBitmap (10, 10, contestantImageBitmap.getWidth (), contestantImageBitmap.getHeight (), contestantImageBitmap, 0, 0);
    graphics.drawBitmap (80, quarter * 2, costBitmap.getWidth (), costBitmap.getHeight (), costBitmap, 0, 0);
    graphics.drawBitmap (30, quarter * 3, width, height, timerBitmap, 0, 0);
    graphics.drawBitmap (backgroundBitM.getWidth () - statusBitmap.getWidth (), 0, width, height, statusBitmap, 0, 0);
    graphics.setFont (do);
    graphics.drawText (label, 0, backgroundBitmap.getHeight ());
    }

    In this case I would watch overiding paint as you do.  I'm sorry.

    To make this the most effective possible. Transfer the amount of code that you can in sublayout - so have it position all fields and have paint, just painted.

    Your text can be a problem if you need support package.    If they are simple, easy lines.

  • The import image like Photoshop file vs PNG

    My video guru created an arrow for me in Illustrator to use first to point the finger the items on the slides I created in InDesign.

    He saved or that exported in a Photoshop file and sent to me, saying that I should just import the Photoshop file into my timeline first.

    When I told him that I tried to save it as a PNG first so I see the thumbnail in Windows Explorer (and, I guess, in the sandbox in the first), he seemed to say 'reluctantly', ' fine, go ahead and do that.» He seems to believe that a Photoshop file behaves better in first as a PNG image.

    I'm going to be rotating and panning/image of the arrow, but any zoom be down in size.

    What's the story with the help of a Photoshop file vs a PNG?

    Thank you!

    PNG is fine.  Ignore apparent reluctance.

  • How to import the 12 different files of the Organization in a single file still do DVD

    I am trying to create a DVD with 12 different lessons on the subject.  I created 12 files in Premiere Pro CS4 (each is a slide show of the lessons with narration) and I want to bring in a single file again.  Can I send a file to still via dynamic links - but when I open another file organization and try to send it in the same folder of still - it deletes the file that I put in there before.  Maybe I'm going about this all wrong - I don't really know.  Help, please.

    Your on the right track of chandler,

    Export your settings seem correct,

    Although the only thing that you must be careful when you have media encoder is to make sure that the following settings are there for your support.

    As you do not compressed, that is fine.

    ensure that his game for NTSC, the order of the fields he should first use the upper field (its likely that all that was created when you click on uncompressed anyway)

    Once media are exported on you can import it in again using the option 'Import as Time-Line', it will create a media file in the project as a calendar file with the same name (different icon so)

    You will then be able to link your buttons with these deadlines in yet.

    This should be all peachy then!

    Let me know how you go

  • Can I merge the pages in a single file, then when I download it gets all pages

    I would like to be able to merge 5 pages of a file into one for that when I download on a website it gets all pages.

    It seems to me you need to create a PDF file that contains all 5 pages of information, but on what paging has been disabled (if editing software includes this feature).  You can do that with Adobe Reader (it won't create or edit documents).

    Maybe free PDF Editor will do the trick: http://www.freedownloadscenter.com/Business/MS_Office_Add-ins/Free_PDF_Editor.html.

    It is possible that the ability to edit PDF files exists in the current version of OpenOffie (www.openoffice.org). He calls it hybrid PDF and I don't know what that means.

    Here's another free PDF Editor (and a free trial of another person) to: http://www.primopdf.com/index.aspx.

    I hope this helps.  Still, I don't understand how the site takes the PDF file and opens it in fact and extracts only the first page.  If it is completely copied, how is the program Web site knows there are several pages and accept only the first?  In any case, I guess they have a way to do it or you wouldn't post this question.  I would like to know if I'm still missing the point.  I don't see why you can't use Notepad, because that could ruin your layout - but maybe one of the programs above can help you.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I have multiples of a single file. How can I get additional copies, but not the original?

    Original title: duplicate files

    ....... I HAVE 2 OR SOMETIMES 3, 4 COPIES OF THE SAME PHOTO... OR SAME SONG... HOW CAN I REMOVE THEM TO A SINGLE COPY SECURE WITH ON DELETE THEM ALL TO GETHER

    You can go through them and remove duplicates manually, or there are many programs that can check duplicate files and delete them if you have copies.

    Here are two free programs:

    Auslogics Duplicate File Finder

    http://www.Auslogics.com/en/software/duplicate-file-Finder/

    Duplicate Cleaner
    http://www.digitalvolcano.co.uk/content/duplicate-cleaner

  • How to combine files from the book in a single file-IND

    Hello

    I'm doing an InDesign file from the files in a book.

    I know the option book export to PDF, but I want is something like:

    Add bookfile pages 1 to a new document.

    then add the pages of bookfile 2 in this new document (at the end)

    then add bookfile pages 3 to this new document (at the end)

    until all pages of all bookfiles are combined into a single document.

    I will not place the pages (which makes them any pages and images).

    Is this possible? [Windows - Javascript platform]

    Is what I figured (as a non-programmer)

    to open the bookfile

    (var app.open(File("/c/Bookname.indb = myDocument"), false);

    use a counter for the number of bookfiles in the book

    for (i = 0; i < myDocument.bookContents.count (); i ++)

    {

    to retrieve the name of the bookfile

    var myINDFile = myDocument.bookContents.item (i) .fullName;

    }

    Theres a move command under menu panels Pages Pages. With it you can move pages also between documents... may be you can use programmatically too? In the InDesign Scripting forum guys know better, although some of them reads this forum too...

  • Combine several .txt files in the folder into a single file

    Hello

    In a single folder, I have many (300 +) files each with two columns of data. The files are named according to the numerical order: File1.txt, File2.txt... File100.txt. I want to combine the files so that the columns of File2.txt fall under the columns of fichier1.txt.

    Say 1 2 = File1.txt

    2 4

    And File2.txt = 3 6

    4 8

    The combined file should indicate: 1 2

    2 4

    3 6

    4 8

    The files are all delimited by tabs.

    I started a VI I think to be in the right direction, but there is an error in the connections. Could you please tell me the problem with my VI or, perhaps, the season a better method to accomplish this task?

    Thank you

    M

    If you use a LabVIEW 2011, you will have to do instead.

    TUNEL modes have been added in 2013.

  • Place the psd image in illustrator file

    Can't get Photoshop images in Illustrator CC.  All I get is a small window with the warning sign and 'the file is not readable.

    Found my own answer. Restart Illustrator CC fresh... after that it crashed a few times, which, incidentally, never happened in my previous versions, but occurring a lot now.

Maybe you are looking for

  • Problem recovery disc HARD on the Satellite C660

    My apologies if this is the wrong sub-forum: The fool that I am, I changed my WIndows login and password since I use very long passwords, I don't know what I changed it to. Guessing is out of the question. So I turned on my computer laptop while hold

  • Bootcamp will not finish installing drivers on windwos 10

    Hey guys,. I have problems when you install the drivers on windows 10 to the MacBook pro 15 "2014. Bootcamp "freezes" when you install the drivers with the status bar on 'Realtek' Audio. Any thoughts about why and if yes, how can I solve this? Thank

  • Question about ReadyCLOUD for the Mac Client

    Hello I have problems of synchronization with ReadyCLOUD. After investigating the newspapers, this is the error I get for any file: 2016 06-20; 08:05:39.6; [4032]; [7] ; E; Task failed, reason: , system error: Anyone know what could be the cause of t

  • Graphics card for Pavilion Slimline s5706f?

    Power supply is dead if just installed a new unit of 300W.  I'm now feeling brave and considering a graphics card.  What's out there, this works?  Does not seek high super game or anything like that.  Running Windows 7 64 bit.  Original computer spec

  • connect LabVIEW to PLC

    Hello I try to connect LabVIEW to controller using an OPC server of NOR. Its a controller logix (Allen Bradley) L23E Compact and I find it difficult to obtain the device driver. Please help me with this topic and a link explaining how it would be use