Script EPS to TIFF

Hello,
I would like to know if I could use a script to batch processing a lot of EPSs to TIFFs. Every time I open the EPS in PS, the dialog box appears so I could write down the resolution. Is there any way to have a batch that would take all EPSs in the given folder, open them with once given resolution in RGB mode and save them as TIFFs (no layers, no compression) so I wouldn't have to do it all manually? Every time I tried to record a script for this, I always got stuck on the accepted setting of that dialog box that somehow wasn't recorded.. Thanks a lot Pavel

This checks for eps only by using the name, so if other files mistakenly are named ».eps« it probably would cause problems, and I havent provided a provision for avoiding over-writting existing tiffs of the same names, but You could give this a try:
#target photoshop;
var dlg = new Window('dialog', "save flattened tiffs of eps-files", [500,300,880,525]);
//filter for checking if entry is numeric, thanks to xbytor;
numberKeystrokeFilter = function() {
   this.text = this.text.replace(",", ".");
   if (this.text.match(/[^\-\.\d]/)) {
      this.text = this.text.replace(/[^\-\.\d]/g, '');
//create the entry for resolution;
dlg.msgPnl = dlg.add('panel', [25,100,355,170], 'resolution');
dlg.msgPnl.msgEt = dlg.msgPnl.add('edittext', [15,20,135,40], 150, {multiline:false});
dlg.msgPnl.msgEt.onChange = numberKeystrokeFilter;
//create a field for folder-selection;
dlg.folderPnl = dlg.add('panel', [25,25,355,90]);
dlg.folderPnl.btn = dlg.folderPnl.add('button', [12,7,313,17], 'select a folder to process', {name:'remove'});
dlg.folderPnl.folderName = dlg.folderPnl.add('statictext', [12,35,313,55], "none selected", {multiline:false});
// select a folder-function;
function folderSelection (theFolder) {
   var theFolder = Folder.selectDialog ("select a folder");
   dlg.folderPnl.folderName.text = String(theFolder);
dlg.folderPnl.btn.onClick = folderSelection;
//fields for ok and cancel;
dlg.buildBtn = dlg.add('button', [25,185,175,195], 'OK', {name:'ok'});
dlg.cancelBtn = dlg.add('button', [185,185,355,195], 'Cancel', {name:'cancel'});
// show dialog;
var myReturn = dlg.show ();
//////////// the operation //////////////////
if (myReturn == true && dlg.folderPnl.folderName.text != "none selected") {
// retrieve file-list and resolution;
var theFolder = dlg.folderPnl.folderName.text;
var theFileList = Folder(theFolder).getFiles();
var theResolution = dlg.msgPnl.msgEt .text;
// do the thing;
for (var m = 0; m < theFileList.length; m++) {
   // getting the name and location;
   var docName = theFileList[m].name;
   var docPath = theFileList[m].path;
   var basename = docName.match(/(.*)\.[^\.]+$/)[1];
   // open only files whose names end on ».eps«;
   if (docName.slice(-4) == ".eps") {
      // =======================================================
      var idOpn = charIDToTypeID( "Opn " );
         var desc1 = new ActionDescriptor();
         var idnull = charIDToTypeID( "null" );
         desc1.putPath( idnull, new File( theFileList[m] ) );
         var idAs = charIDToTypeID( "As  " );
            var desc2 = new ActionDescriptor();
            var idRslt = charIDToTypeID( "Rslt" );
            var idRsl = charIDToTypeID( "#Rsl" );
            desc2.putUnitDouble( idRslt, idRsl, theResolution );
            var idAntA = charIDToTypeID( "AntA" );
            desc2.putBoolean( idAntA, true );
         var idEPSG = charIDToTypeID( "EPSG" );
         desc1.putObject( idAs, idEPSG, desc2 );
      executeAction( idOpn, desc1, DialogModes.NO );
      // define the copy:
      var theCopy = app.activeDocument;
      // tiff options;
      tifOpts = new TiffSaveOptions();
      tifOpts.embedColorProfile = true;
      tifOpts.imageCompression = TIFFEncoding.TIFFLZW;
      tifOpts.alphaChannels = false;
      tifOpts.byteOrder = ByteOrder.MACOS;
      tifOpts.layers = false;
      // make a copy, flatten it, delete paths, set it to 8bit;
      theCopy.flatten();
      theCopy.bitsPerChannel = BitsPerChannelType.EIGHT;
      // save it;
      theCopy.saveAs((new File(docPath+"/"+basename+".tif")),tifOpts,true);
      theCopy.close(SaveOptions.DONOTSAVECHANGES);
   else {}
// use it at your own risk;
If any of You spot unnecessary or stupid operations in the Script please let me know.

Similar Messages

  • EPS and Tiff Files are not open...

    Dear All,
    If we open the EPS or Tiff file in Illustrator CS3, we got the error message as in the screenshot which named as “Illustrator screenshot.jpg”.
    If we open the EPS or Tiff file in Photoshop CS3, we got the error message as in the screenshot which named as “Photoshop screenshot.jpg”.
    We unable to open the file both in Illustrator and Photoshop. Is there any other option to open the file? Please advice.
    I’ve attached the images and screenshots for your better reference.
    Thanks in advance.
    Kumaran. P

    These files are completely corrupt. I got the same error messages you did in Illustrator and Photoshop.
    The EPS files look quite hopeless. (They do not remotely resemble EPS files when viewed in a text editor.) The TIFF file opened in IrfanView. I've resaved it as a JPEG and attached it here. You can see that it's truncated.
    You didn't mention how you obtained the files.

  • Adding Metadata to JPEG, EPS, PSD, TIFF

    Hi all,
    I would like to know how if is possible to a read and write metadata (basically Caption and Kewords fields) to a different kind of files (EPS with JPEG compression, TIFF, JPEG, PSD...) WITHOUT opening them in Photoshop.
    I need to manage all from Scripting, usually AS or AppleScript Studio.
    At the moment I do this opening them, writing them and resaving them but I would like to know if a more faster and professional way exists.
    I know exiftool but I would like to use Adobe routine or products.
    Stefano

    Stefano, I would have thought that 'exiftool' was the best solution for you by far. Never done it but if I recall correctly the developer allows for this to be included in your AppleScript Studio app? The problems that you are going to encounter with the Bridge option are No Access to the Application directly from AppleScript, Bridge is ONLY scriptable via Adobe's ExtendScript/JavaScript. Adobe's other Applications allow AppleScript to perform JavaScript so the ONLY way to communicate with Bridge is via one of these and the BridgeTalk messaging system. Although Bridge will alter the metadata without actually opening the file you will end up launching 2 App's if they are NOT already running. If you don't already know JavaScript then the learning curve for what's involved in this process is considerably more than that of the 'exiftool' man pages. Plus I would expect the performance of calling the shell from your app would blow the Adobe route out of the water… BTMO

  • SAP Script link to TIFF

    Hi All
    I need to find out where the link lies between SAP Script Form HR_ES_I190_0031 and the background TIFF image? I need the TIFF image name. Currently we have the form nicely printed in DEV, but in QA it has incorrect background image?
    If I understand correct, program RSTXLDMC can be used to upload a TIFF image, but I don't find the link between this and the SAP Script Form. Now I have to reverse the process, so I need the link and then I need to retransport the TIFF and link to fix the "wrong background image" for my form.
    Please advise. Thank you and best regards,
    Adrian

    Usually, I think this would be in a macro.  These are stored in standard texts (SO10), named like: ZHEX-MACRO-xxxxx ID ST LANGUAGE EN, etc.  We can transport standard texts via a standard SAP program, but I don't know if these can be transported (one would expect that they can be).

  • Problems converting from CS2 - eps files show TIFF error

    I have multiple volumes of a violin method book in InDesign CS2 and was considering upgrading to InDesign CS5. While using the trial version (which I just downloaded last night), every single of my eps files (hundreds of images across multiple documents) -- which were handled correctly by CS2 -- came up with the following error: "Error encountered while reading TIFF image. Image may be damaged or incompatible. Resave the image with different settings and try again." 
    Inconveniently, these errors were not collated into a single pop-up box when the document opened; instead, they appear one box at a time, as you page through the document -- so you have to manually close this error pop-up box hundreds of times.
    Meanwhile, the problem is not with the image files themselves.  Simply manually re-linking to the exact same image file corrected the image preview in each instance, for my Books 2 & 3.  This would inevitably seem to suggest the image file was never actually damaged or incompatible. 
    However, in my Book 1, re-linking an image caused the program to crash each time I tried it.
    The images themselves are EPS, not TIFF, and are listed in the links palette as such.  I assume that it's simply the image preview which is a TIFF -- however, the pop-up box should be more illuminating for your users who don't do this for a living.
    Meanwhile, the status of each buggy link is listed in the Links palette as "Okay." The inability to see the image correctly (and having to close a pop-up box each time you land on that page) is not, in my book, "okay."
    I am planning to immediately un-install CS5 and return to CS2; I cannot possibly go through the laborious process of re-linking hundreds of links to image files that are perfectly fine.  However, I wanted to post this feedback for the benefit of other users, or in hopes that the bug will be fixed.  I love my InDesign and am very disappointed that CS5 is handling my documents so erratically.

    Hopefully you haven't already saved the new file over the old version. Under no circumstances do you want to do that as there is no way to go back without having CS4 and CS3 to work through.
    That said, if your CS2 file is still intact, try exporting it to interchange format (.inx), then open the .inx file in CS5 (or CS5.5 which is the current release, and not the same as CS5).

  • Problems converting from CS4 - eps files show TIFF error

    Having downloaded the latest version of Indesign CS6, I have tried to open several douments of a music tutor featuring many EPS music graphics along with many Tiff images. However, I keep getting following error: "Error encountered while reading TIFF image. Image may be damaged or incompatible. Resave the image with different settings and try again."
    I have resaved all the EPS and Tiff images as CS6 files and relinked them into the document but to no avail - the problem remains. I suspect that the  image files are not actually damaged but that there is some other problem. I have 100s of images and am not sure what next to do. I noticed another user ( Kaleidoscopes Violin) who had a similar problem and it was suggested that "if your CS2 file is still intact, try exporting it to interchange format (.inx), then open the .inx file in CS5 (or CS5.5 which is the current release, and not the same as CS5)." - but this was for CS2 to CS5, and CS6 does not allow .inx file export. I need to work with the document in future so exporting it as a PDF file is of no use to me. Is this a known bug in CS6? I would be grateful for any advice. Thank you.

    Wow ... very, very helpful responses.  I wish I'd posted this earlier!! 
    I had no idea that EPS was an older file format, or that PDF was considered a "legitimate" graphics format.  Sibelius 6 only exports to EPS, TIFF (yuck!!), and PNG.  However, I did discover that it "prints" to Adobe PDF.  Odd that the option is located in an unexpected file menu, but very glad it's there!!  The PDF format loads fine into InDesign and also prints beautifully, unlike the PNG option. Yay!! 
    As far as embedding fonts, I had been making sure this option was checked (when exporting from Sibelius), so it seems unlikely that was the problem. So in theory that would mean it's not a problem of the InDesign font cache, or of a font discrepancey.  In practice ... who knows.  What's particularly puzzling is that some EPS files are fine, while others were not; and also that CS2 had no problems with any of them.
    Regardless, the font information is really, really good to know ... I'll save this thread for future use!
    Thanks so much to all for your generous help!!!
    Elise

  • EPS-file: How to preserve resource fork when moving file to Linux

    Hi!
    We have a following problem on our DAM system:
    When saving an EPS-file from Photoshop CS2 on 10.4 with Machintosh preview we can´t transfer the file to Linux DAM system without losing the preview picture. Apparently this is because the PICT preview file is in resource fork of the file and Linux doesn´t understand anything about those.
    The problem occurs only with Freehand MX when using these un-"resource forked" files. Then using EPS with TIFF-preview we get a black background if cut path is used in the image so that´s not a proper solution.
    Can ANYONE point me a possible solution: how can I transfer Macintosh files on Linux without losing resource forks??
      Mac OS X (10.4.8)  

    Control-click on the file and choose the Create
    Archive of "blah" item in the menu that pops up.
    This creates a file called "blah.zip", which has
    been compressed in such a way that it can be safely
    stored on non-Mac systems. When it is de-archived
    on another Mac OS X system (by double-clicking it),
    the file should be intact. (Note that third-party
    apps for decoding zip files may not properly restore
    the resource fork, as the Mac's archive function
    creates a zip archive with the resource contents
    stored in a special way, which other unzip utilities
    will just read as another file (or folder, don't
    recall which).
    Thanks but I should have been more precise:
    What I meant was that is there any tool for Linux to handle resource forks without archiving/compressing the file?
    Our DAM generates preview image for the EPS automatically so it can´t be inside compressed file.

  • Placing photoshop eps's into Illustrator - file size

    I used to place very large/high res photoshop eps files into Illustrator (as low res proxy) and it would allow my Illustrator file size to stay very small, however, once I switched to CS5 I noticed the way I was saving the eps's wouldn't show up in Illustrator, it would show as an empty box until I resaved the eps with tiff preview and jpg encoding.  But this makes my Illustrator file huge which is not what I want.  Does anyone that creates large scale graphics know what I'm talking about?  Thanks

    feddersfollies wrote:
    This setup has been working for years…
    Does that mean that you don't even plan to update Photoshop CS to CS6 13.0,6?  That would be a grave mistake.  There were many substantial bug fixes along the way. 
    Updating to CS 13.0.6 is completely, totally free.  No expense at all.
    If your issue appeared "suddenly", delete and recreate your Photoshop and your Illustrator's preferences.
    But update to 13.0.6 ASAP.  There's absolutely no excuse and no valid reason for staying with known buggy versions.  That's just plain nonsense.
    If you insist on staying with your "setup" for the reason you state, please don't bother addressing any replies to me.

  • TIFF images in Flash

    I have to load a TIFF and BMP images into an Image Editor I'm
    currently developing from an external link.
    Is there any way to do this? I'm getting pretty desperate and
    I have no clue of how to do it.
    Thanks,
    Horea

    Unfortantely, I can't, I'm not very experienced with PHP
    either, although I've worked with people who have done this for me,
    essentially. Wil lthe TIFF or BMP be on your server? What you'll
    basically have to do is create a script which servers images to
    your Flash, so let's say "someImage.tiff" gets passed in, you would
    request:
    imageForFlash.php?img=someImage.tiff
    Then the imageForFlash.php would be scripted to convert .tiff
    files to .png files if the .png doesn't already exist in some
    predefined storage place.
    Try a PHP forum for futher help on the PHP side.

  • Print to sticker problem, eps

    I am having an Illustrator design printed on a “sticker” to be affixed to a metal plate for outdoor use. The printer requested eps. I requested a test print and the resulting image had artifacts. For instance, there are light shaded boxes around some things (drop shadows incorrect?). Also, some of the stroked fonts had little open circles on the corners, like it was selected. When I print from Illustrator to local paper printers, the image is fine. I guess I need to speak to the printer, but for now I’m going through a third party. The original is 9”x12”, CMYK. I saved as “Illustrator CS4 EPS”, transparent, tiff (8-bit color), and under “transparency” I probably changed the preset to “high resolution” (can’t remember). From what I read in other posts, EPS is a black box for a printer that doesn’t understand postscript and that pdf would be better. Also, I read that maybe I should be using process or spot colors (couldn’t figure out which). Any guidance would be most appreciated!

    Agreed, I'm the printer's clilent, I need to meet the person/company doing the printing. I believe it is a small setup and was very surprised when my friend (the inbetween) brought me the sample print and he said the printer didn't have any comments or suggestions! So, I'll talk to hime, or, go to a place around the corner, a big business for our town, and surely they will be able to help me. Now, Grant, suppose eps is what I need, I see where to create the transparency preset. Would I change any of the options? The balance is set at 75. I'm not sure what that is doing, but I can read it. Thanks!

  • Watch folder in photoshop

    Hi All,
    i have conversion tool which converts EPS files to Tif.
    Source path: D:\\Work\\in
    output path : D:\\Work\\out
    could we make the source path as watch folder, when ever we place the images the script has to be executed.
    Any suggestions are welcome.
    Regards,
    Vinoth

    Hi Michael,
    Thanks for the information.
    I found Tiff to JPEG could be done with adobe bridge.
    http://support.muse.adobe.com/message/4826884?tstart=0
    But i could only get one watch folder, how to add multiply watch folder?
    EPS to tiff any possiblities.
    Regards,
    Vinoth

  • How do you prevent Acrobat PDFMaker from rasterizing vector graphics?

    I am using the "Create PDF" button (provided by the Acrobat PDFMaker in Acrobat X) to create a PDF from a Microsoft Word 2010 document.
    This works fine, except that vector graphics in the Word document appear in the resulting PDF as raster graphics. (That is, when I zoom in, document text outside the graphics appears smooth, but the graphics are blocky; and text inside the graphics that should be retained as text - it's not converted to curves - is just pixels.)
    The original artwork for the vector graphics is in CorelDRAW X6 (sorry, Adobe!).
    I have exported the following files from the original vector drawing in CorelDRAW:
    - EPS (with TIFF preview)
    - Windows metafile (.wmf)
    - Enhanced metafile (.emf)
    I can insert any of these files into Word okay (Insert > Picture), but the resulting PDF always contains a rasterized (bitmapped) version of the vector graphic ("line art").
    From memory, this didn't use to happen in my previous working environment (Acrobat 8 Pro with Word 2003, using artwork exported from CorelDRAW 12).
    How do you prevent Acrobat X PDFMaker from rasterizing vector graphics? Or is Word 2010 (or CorelDRAW X6) somehow to "blame" here?

    Transparency Flattening is being invoked.
    From the Create PDF button, select Properties, what is your setting for Default Settings? Select High Quality Print

  • Do not want attachments embedded - how do I fix this problem?!?!?!

    I frequently have to send attachments in my mail messages (jpegs, tiffs, eps). However, every time I send attachments in jpeg, eps and tiff formats the recipient cannot download them. They are either invisible or embedded in the message - which I do NOT want. The only attachments that my clients seem to NOT have problems with are pdf's. How do I fix this problem? For now, whenever I have to send attachments in those formats, I have to switch over to Entourage. It does not make sense that this is a problem, since most designers use macs and have to deal with graphics on a daily basis, I am stunned that Mac is having this issue. I cringe that I have to switch to a Microsoft product in order to send certain e-mails. HELP!!!

    Maybe I can make a picture. I don't know if it's possible to send a screen shot in these discussions.
    When I receive mail, there is no problem. Attachments that people send me show up in an attachment list at the top of their message, just like in Entourage. I can flip the triangle and see the list of file names in their attachments, and can drag from this list to the location where I want to put a copy of the file. The fact that the image itself shows up at the bottom of the message isn't a problem (and is sometimes a benefit).
    But when sending mail, it is very hard for me to compose my message. I can't control the attachments, and can't review the names of the files that I have included just before hitting "send".
    Here is the Entourage format, which is what I really want. There is a place to put the attachments where they are independent of the message. I can drag a new attachment to this list any time while writing my message.
    From:
    To:
    Subject:
    Attachments:
    Filename 1
    Filename 2
    etc
    Line: -----
    Message body, with signature
    Mail format with Mail Attachments Iconizer:
    To:
    Subject:
    Line: -----
    Message body Filename 1 Filename 2 etc.

  • How to Import Vector Identified Files into Photoshop Without Losing Quality

    Hello,
    I am creating a series of music worksheets on photoshop. I have created some music scores in a music writing software called Sibelius 7. It has the capability to export the sheet music graphics in the following forms: .pdf, .eps, .bmp, .tiff, .png, .svg .
    However, I have tried to 'place' each of them into my photoshop file to see which one will work. But on saving the photoshop document as a .pdf with any of the graphics formats, the vector quality of the image has been lost, as it pixelates on zooming in. I have also tried to import an .svg file into adobe illustrator to save it as an .ai file and then import that into photoshop, but the image is again pixelated.
    I don't really know what is happening, as I am essentially trying to import a file that is a vector (or at least does not pixelate on zooming) into photoshop, hoping for the same qualities to be retained, but it is being lost for some reason.
    What should I do?
    Thank you.

    Thank you for your reply. I opened the vectored pdf into illustrator. I tested illustrator by saving that document as a new pdf and the vector quality was still retained. I the following images, I copied and pasted the vector from illustrator into photoshop. However, on saving this new photoshop document as a pdf, it does not retain the vector format, as you can see with the pixelation that occurs when zooming in on an object.
    Thank you.

  • Problem importing images into RoboHelp 10 from FM 11

    I am using Adobe TCS4, on Win XP SP3, to import or link structured FrameMaker 11 books and documents into RoboHelp 10. Our default graphics types are generally eps and tiff images, in anchored frames and imported by reference into FrameMaker, and FrameMaker equations. When I import a FM document into RoboHelp, things appear reasonably correct, equations are converted to jpegs, but the other images typically do not appear. Instead, blank images are created in the appropriate size, and named <docname>00001.jpg, etc, where <docname> is the original FrameMaker document name.
    During import, the Images portion of the FrameMaker conversion settings list "Use Distiller to Generate Image". If this box is checked, RoboHelp nearly always crashes when there are non-equation images in the file. If that setting is unchecked, the import generally completes, but the images, except for equations, are not imported. Remarkably, occasionally one or a few of the correct images doappear in the RoboHelp html; in these cases, it is usually one or more tiff images that have somehow been successfully converted to jpeg; but the majority of images are not converted.
    I have tried a few other things, without success. For example, I have replaced all the images in the Framemaker document with jpeg images, then imported into RoboHelp, but the results are the same, with empty renamed images created, and original images not imported. I have also tried reducing the image sizes in the Framemaker to the exact size size required in the output; in other words, so images appear at 100% size in Framemaker. This approach also has not been successful. I have also tried importing to another format in RoboHelp, such as png, with no success.
    I have had some occasional success, for example rare occasions when one or two images appear in the RoboHelp html, and a single case in which nearly all of the graphics imported correctly. That FM document is somewhat different from the others because nearly all of the referenced images in FrameMaker were PDF. The successfully imported PDFs were imported into RH as jpegs of the same name. The only files that failed to import were a few eps files which were imported as blank images named aqccording to the <docname>0001.jpg scheme.
    Aside from converting all of my images to PDF, and modifying documents accordingly, I have run out of things to try. So, I was hoping to get some advise:
    1) Is there another approach I can try?
    2) Should I uninstall and reinstall TCS4?
    3) Is there an import log that could tell me the mapping of FrameMaker image name to RoboHelp image name, for example: fm0201.tif > <docname>00001.jpg? At least then I could use that list to manually import the appropriate jpgs into Robohelp.
    4) Is anyone else experiencing this issue?
    5) What is it with the constant crashes when "Use Distiller to Generate Image" is checked. In these cases, Distiller keeps chugging away, producing images, until RoboHelp crashes.
    Thanks very much, I appreciate any suggestions.
    Chris McCauley

    I remember reading that document on images, parts 1 and 2, I think, but did not find any solution to this issue there. I have seen your posts on the path length, and have tried to reduce them as much as possible by moving files close to the root directory. I continue to have issues with cross-references, but I have not spent much time yet in fully diagnosing that problem. I'm experienced with Framemaker for many years, and I'm beginning to feell familiar with many parts of RoboHelp, so I thoiught I'd try to knock these issues one at a time, in either order, actually. thanks for your suggestion.

Maybe you are looking for

  • Availability control is not able to  activate in ko22

    Hi frds, my problem is i am going to creat availability control to order in 2012 i gave amount after order oerview also i gave amount but if we r not activate the budget control. because that is display mode. in ops9 we had given activat type 1.that

  • Changing  tabs and menus

    How can I change the tabs or menu in portal. I would like to change order of menu. For example I would like system admin to be displayed in first tab instead of portal. What is the procedure to do this? Thanks John R

  • Windows 8 usb problems

    The HP laptop usb drivers dont work with windows 8.  They work when fyou install the OS, but, once you restart, they dont work anymore.

  • Invoking operation on SPML Service

    Hi I was trying to invoke one of the operations on the SPML service thru he SOAP UI interface. This is what I did : Created the project a) Imported the SPML Service b) Created the test suite After the above steps, I tried invoking an operation like "

  • What am I doing wrong with this method?

    Ok I tried this for two hours and for some reason my variables from one method wont work with the other method what am I doing wrong? public class Testing private static void storage(String[] storage){ String retval= ""; for(int i=0;i!=storage.length