Export to jpg with rename

Hello everyone,

I have an IndesignCS6 file with 4 pages.

Each page has a different size.

Each page cointains same resized chart.

I need to export each page in jpg format, I need each page has a name custom as

01_PrintXX_InKredible_4x5_Ratio

02_PrintXX_InKredible_3x4_Ratio

03_PrintXX_InKredible_2x3_Ratio

04_PrintXX_InKredible_PaperSize

would be awesome iif PrintXX could be the indesign file name (but this is optional)

Is this possible?

Thank you very much to all those who can help me. Would be a lifeline, I have more than 150 files to export in 4 different formats and rename

Laura

Hello

Try this:

var
  exportPartNames = [
  "InKredible_4x5_Ratio",
  "InKredible_3x4_Ratio",
  "InKredible_2x3_Ratio",
  "InKredible_PaperSize"
  ],
  mDoc = app.activeDocument,
  destFolder = "~/Desktop/PDFs/",
  mPages = mDoc.pages.everyItem().getElements(),
  cPage, cPageName, mDocName = mDoc.name.replace(/\.indd$/,""),
  destFile;

  if (!File(destFolder).exists) Folder(destFolder).create();

  if (mPages.length != exportPartNames.length) {
  alert("Count of names doesn't match count of pages");
  exit();
  }

  with (app.jpegExportPreferences) {
  jpegColorSpace = JpegColorSpaceEnum.RGB;
  jpegQuality = JPEGOptionsQuality.HIGH;
  jpegExportRange = ExportRangeOrAllPages.EXPORT_RANGE;
  exportResolution = 72;
  }

  while ( cPage = mPages.shift() ) {
  cPageName = ("00" + (cPage.documentOffset + 1)).slice(-2);
  destFile = new File(destFolder + "/" + cPageName + "_" + mDocName + "_" + exportPartNames.shift() + ".jpg");
  app.jpegExportPreferences.pageString = cPage.name;
  mDoc.exportFile(ExportFormat.JPG, destFile, false);
  }

Change destFolder, exportPartNames , and jpegPref if necessary

Jarek

Tags: InDesign

Similar Questions

  • Export JPG with NO exif, 'Except' comments

    Export JPG with NO exif, 'Except' comments

    * I find that for a number of things I export LR with no. Exif JPG files, but must KEEP comments in the Exif data.

    Why? you ask...

    (1) forums, when I want to post a JPG with Exif of NO... BUT when I post comments automatically post comments or Description of the photo.

    (2) I Upload files jpg with no exif of a Magazine I take party photos for... and on the comments section is where I list the names of the people in the photos.

    * Even on sites like SmugMug and glitter... Comments get downloaded... but sometimes you don't want the EXIF on everything.

    areohbee wrote:

    Consider that minimize metadata integrated export is not enough, minimal huh?

    Minimize embedded metadata is TOO small, right? (wipe the comments too).

    Looks like a good FR.

  • Export all pages with 100% quality jpg

    Hello

    When I try to export all pages in my document as 100% quality JPG with the 'Export Assistant', some pages are still exported as GIF.

    I see that there is a combo box of compression in the property inspector, but when I select "JPG - quality" I still don't get a quality of 100% (I get jpg blur around the text, for example).

    Can someone help me? Is there a quick way to export all pages with a 100%? I've yet to find a button that says, for example, 'apply 100% quality for all pages '.

    Thank you!

    If you use Fireworks CS5, you can select all pages, then the optimization goto Control Panel and set the settings jpeg 100%.

    Optimization settings applies to all pages, and then you should be good to export all pages.

    .. Dorin

  • Link multiple images and export to jpg

    Hi, this is my first post, been searching nearly 2 hours for my solution, not find with all the answers

    I have a model with a size of 500 x 500, there is the logo of my company at the bottom right and there is a logo mark on the top left, I have created a layer to put the products in the environment models.

    So now that I have nearly 400 products to reissue and export to jpg, someone can help me with this? I discovered that I have to use javascript for this and I have no idea how to do that.

    relink.png

    I would like to have 2 files, first is my product the second folder would be the export of photos to the() with the same title would be possible?).

    so that the script should be able to automatically read the first file and republish the product automatically in the layer and export to jpg and Save in the second folder. (all product images are the same size so no worries about that.)

    Million thanks!

    I would do that with photoshop.

    create an image of 500 x 500 (same as your product images)

    Place the logo etc where you want. and save this file.

    Then create an action to place this file on top of your images.

    Run this as a batch through pictures of products.

    I would look for a tutorial for batch adding of watermark to photos for a detailed step by step.

  • Script Export single Pages with the name and file custom paragraph Style?

    I have a document called "mydocument".

    I have a several pages in the document.

    Each page has a title of"style with a stylesheet called point title.

    I need to export each page as individual .jpg with a custom file name

    myDocument-01 - title.jpg

    01 is the page number

    Seemed like a simple request... but it turns out that it's a little challenging.

    This scipt below, that I found on another thread a little work

    It gives me a

    Title1.jpg

    But I can't figure out how...

    1. Add the name of "mydocument".

    2. have a 0 on the 1-digit numbers

    Can someone please guide me, I would be eternally grateful.

    if (app.documents.length != 0) {
         var myDoc = app.activeDocument;
        MakeJPEGfile();
    }
    else{  
         alert("Please open a document and try again.");  
    } 
    
    
    function MakeJPEGfile() { 
    
    
    
    
    
    
         for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++) {
    
              if (myDoc.pages.item(myCounter).appliedSection.name != "") {
                   myDoc.pages.item(myCounter).appliedSection.name = "";
              }
                
                var myPageName = myDoc.pages.item(myCounter).name;
              var myJpegPrefix = "";
              var isStyleExist = true;
    
              //Checking the existing of the paragraph style (filename)
              try {
                  myDoc.paragraphStyles.item("title");
              }
              catch (myError) {
                  isStyleExist = false;
              }
    
              if (isStyleExist)
    
    
              myJpegPrefix = getParagraphContent(myDoc.paragraphStyles.item("title"), myDoc.pages.item(myCounter)) + myPageName;
              app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high; // low medium high maximum
              app.jpegExportPreferences.exportResolution = 72;
              app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;
              app.jpegExportPreferences.pageString = myPageName;
    
    
              var myFilePath = "~/-client/JOYS - Just Organize Your Stuff/-Art/-art-book-kindle/" + myJpegPrefix + ".jpg";
              var myFile = new File(myFilePath);
              myDoc.exportFile(ExportFormat.jpg, myFile, false);
         }
    }
    
    
    // The new function, but needs to add checking the file name rules.
    
    
    function getParagraphContent (paragraphStyle, currentPage)
    {
        var paragraphContent = null;
        for (var c = 0; c < currentPage.textFrames.length; c++)
        {
            for (var i = 0; i < currentPage.textFrames.item(c).paragraphs.length; i++)
            {
                if (currentPage.textFrames.item(c).paragraphs.item(i).appliedParagraphStyle == paragraphStyle)
                {
                    paragraphContent = currentPage.textFrames.item(c).paragraphs.item(i).contents;
       // Remove spaces and returns at the end:
                    paragraphContent = paragraphContent.replace(/\s+$/, '');
       // Replace remaining spaces with hyphen:
                    paragraphContent = paragraphContent.replace(/\s+/g, '-');
       // Make lowercase:
                    paragraphContent = paragraphContent.toLowerCase();
                    return paragraphContent;
                }
            }
        }
        return paragraphContent;
    }
    
    

    Thank you Mi!

    One more step.

    I just need to remove the extension .indd.

    My file name is now

    myDocument.indd - 01 - title.jpg

    If (app.documents.length! = 0) {}

    myDoc var = app.activeDocument;

    MakeJPEGfile();

    }

    else {}

    Alert ("Please open a document and try again.");

    }

    function MakeJPEGfile() {}

    for (var myCounter = 0; myCounter< mydoc.pages.length;="" mycounter++)="">

    If (. appliedSection.name myDoc.pages.item (myCounter)! = "") {}

    myDoc.pages.item (myCounter).appliedSection.name = "";

    }

    var myPageName = myDoc.pages.item (myCounter) .name;

    var myJpegPrefix = "";

    var isStyleExist = true;

    Audit of the existing paragraph style (filename)

    try {}

    myDoc.paragraphStyles.item ("title");

    }

    {} catch (MonErreur)

    isStyleExist = false;

    }

    If (isStyleExist)

    myJpegPrefix = getParagraphContent (myDoc.paragraphStyles.item ("title"), myDoc.pages.item (myCounter)) + '-0 "+ myPageName;

    app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high; low medium high maximum

    app.jpegExportPreferences.exportResolution = 72;

    app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;

    app.jpegExportPreferences.pageString = myPageName;

    var CheminMonFichier = "" ~/-client/JOYS - just organize your Stuff Art / /-art-book-kindle / "+" / "+ myDoc.name +"-"+ myJpegPrefix +".jpg";

    var myFile = new File (myFilePath);

    myDoc.exportFile (ExportFormat.jpg, myFile, false);

    }

    }

    The new feature, but it will add filename rules checking.

    function getParagraphContent (paragraphStyle, currentPage)

    {

    var paragraphContent = null;

    for (var c = 0; c)< currentpage.textframes.length;="">

    {

    for (var i = 0; i)< currentpage.textframes.item(c).paragraphs.length;="">

    {

    If (currentPage.textFrames.item (c).paragraphs.item (i) .appliedParagraphStyle is paragraphStyle)

    {

    paragraphContent = currentPage.textFrames.item (c).paragraphs.item (i) .silence;

    Remove the spaces and returns at the end:

    paragraphContent = paragraphContent.replace (/ \s+$ /, ");

    Replace the remaining spaces with hyphen:

    paragraphContent = paragraphContent.replace (/ \s + / g, '-');

    Make lowercase:

    paragraphContent = paragraphContent.toLowerCase ();

    Return paragraphContent;

    }

    }

    }

    Return paragraphContent;

    }

  • Problem exporting to jpg

    Probably a newbie question, but I am confused.

    I created a RGB AI file which consists of an image with text superimposed on this topic. The text is pale yellow (254,254,179). Everything works fine until I have the export in JPG format. When I do, the yellow text becomes white. Photo, style text, which all remain exactly as planned in GOT it, but the text always becomes white. I ran experiments, and this does not occur if the color is, say, a red or a blue.

    What is going on? How can I fix it?

    Thanks for any help.

    EdB

    I tried a text with your color and used save for web jpeg (low) then tried exporting to jpg and worked well.

    Open your .jpg in photoshop trying to move your pipette set to 1 pixel on the image. Mine is back with 253 250 180 on the low quality of jpg. The color moves when recording to .jpg for compression and changes of poor quality the most. Your profile monitor calibration settings and color can be part of the problem. Try changing your Illustrator > edit > colorsettings to:

  • How to export in Quicktime with a transparent background?

    I export my Keynote animation as a Quicktime movie, I want to import into photoshop and then export and animated GIF that I will put on a web page. The challenge that I have exported my speech with a transparent background. I set the background of a color with zero transparency but then the bottom just goes black and rest throughout the process. I look at older versions of Keynote had the possibility of transparency when exporting to Quicktime, so I hope, there is always a way!

    Thank you!

    To create a video with an alpha channel:

    On the model of slides: View > slide Maser Edit > Inspector > Format > master layout > in the background, select: no fill

    Export Quicktime: file > export Quicktime > in the drop-down menu select Format; custom > and select Apple Pro Res 444

  • Quick export to jpg in action

    Hello world

    I'm resizing about 500 images to the web for the best display on screens HiRes I'm looking for shortcuts.

    My current workflow in CC 2015 is to open the PSD original HiRes.

    1. File > Quick export to JPG format to the original format of the record of the images of my local test server.
    2. Close the PSD.
    3. JPG resulting open
    4. Image > size of the Image (resize to the width specified)
    5. RECORD.
    6. Close file.

    PROBLEM:  When I create an action using file > Quick export to jpg, it does not work when a folder is specified.   If I disable invited to folder, PS created another folder next to the original PSD file assets.  The last thing I need are 500 other subfolders, each containing a single JPG.

    < nodding > engineers of for the PS who thought it was a good workflow, I have news for you.  It's not. < / head >

    There is no good workaround solution?  And please do not suggest the legacy save for Web.  I don't use it.

    Nancy O.

    Image processor.

    File > Script > image processor...

    Choose the folder containing the JPG files as a source

    Save in the same place (will create new folder) or select a new location (will create a folder)

    Set the Type to file in JPG format. Enter the maximum size that you want in pixels.

    Run

    technically you could run directly from PSDs if they are in the same folder, but can slow down the process depends on your machine.

  • I can't open a picture jpg with my PS. I have already created another profile to my Mac, reinstalled Ps and one I updated the latest version of the operating system. Still does not open JPG. I want to know what to do next.

    I can't open a picture jpg with my PS. I have already created another profile to my Mac, reinstalled Ps and one I updated the latest version of the operating system. Still does not open JPG. I want to know what to do next.

    Then, you install Camera raw version 9.4 from this link: Camera Raw of Adobe Photoshop CC and CS6 Installer

  • When I export a clip with a United, the first color change (more desaturated)

    Hello world

    When I export a clop with a solid color, in this case a green with the RGB code #006938. I export it and first Exchange the solid color, one more desaturated, that this is a problem because that is the corporate color of the customer.

    Any help?

    Mi computer:

    MacPro 2013

    AMD over-pants D700 6144 MB

    Screen: DellU2713H

    Thank you very much.

    That you view in QuickTime Player or something else? Try to view the video in VLC or even importation in first. If the color seems normal in VLC or first while you see the age-old bug "QuickTime gamma shift", which is not really a change in gamma (or at least that is my understanding), but it's what most people call it.

    Check out this thread if this is what actually happens: H.264 gamma shift/faded colors on export

  • Export SVG issues with hex colors gray vs #808080

    Hello

    have a problem with the export of SVG with Illustrator (latest version) files. Problem is that I need all objects be exact (hex) #808080, but in the exported file all fills are fill = "gray". Android does not include these "color codes. If there are more objects in the work plan it takes time to fix manually. Is ther a way to make it work properly?

    Thank you.

    Try a save as SVG instead of export.

  • Export to MP4 with marker

    Hello

    I have a video tutorial with several chapter. I don't want to export it as a drive. I want to export it as mp4 for computer file. I know, for example Windows Media Player can handle the marker. How to export the project with the markers to allow him to move the marker to the next marker?

    I read that it is possible with an external tool like Drax - but it is also possible without using an external tool?

    Best regards Thomas

    Premiere Elements is not capable of producing MP4s with markers, Thomas.

  • I've just updated to Photoshop, CC 2015.0.1, and I can't do 'Quick export in PNG' with several plans to work more? Any ideas?

    Update Photoshop CC 2015.0.1, I can do is no longer the 'Quick export in PNG' with several work plans more.

    I currently work with about 10 + work plans and I normally ' file > export > rapid export in PNG ", I had no problem in the previous version of Photoshop, but since I updated yesterday to the latest version, is no longer shows the pop-up asking where I want to save the png and instead" does nothing?

    Any ideas?

    Thank you

    Rob

    Please try and reset the default Photoshop preferences, if you do not customize your Photoshop after the last update.

    Steps to follow:

    To re-create the Photoshop preferences files, start the application while pressing Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop settings file?"

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • How to export a video with two audio tracks such as: English and a steam engine, then open in vlc player, then select one of the two tracks?

    How to export a video with two audio tracks such as: English and a steam engine, then open in vlc player, then select one of the two tracks?

    Everything you always wanted to know about the acoustics in first Pro CC - YouTube

  • How can I export AE project with effects of bubbles in first? Bubble effect is not transfer

    How can I export AE project with effects of bubbles in first? Bubble effect is not transfer

    Return an intermediate element.

    Mylenium

Maybe you are looking for

  • My Nano Gen 7 is recognized on a single computer, but not the other

    My Nano Gen 7 is recognized on a single computer, but not the other.  I went through all the troubleshooting tips.  Different cables, try all USB ports, uninstall/reinstall itunes, etc.  I have itunes more up-to-date software.  I was able to connect

  • My laptop is in the service of more than 1 month.

    Hello. My name is Mustafa, I am from Turkey. I have two Toshiba laptops and one of them with serial number 27127505H (Tecra A8-103) broke down one and a half months and I have sent to the service with its Bill. The period of a month elapsed time func

  • Installation with WRT310N wireless router problem

    I have currently an old model WRT54G Router installed wireless that works very well, but I need the WPS technology if I want to install a newer model WRT310N router. I used the installation cd supplied with the router, which has not seen any problem

  • something missing on the use tab under System Properties remotely

    In the Properties window system, on the Remote tab, I don't see a remote desktop section, I have windows 7 Home Edition premium, could someone help me, please? Thank you!

  • Your ausgeschaltet ist

    Hallo, a die specialists, ICH habe an meinem PC somehow den your ausgeschaltet und also nicht wieder year Kann mir vielleicht bitte helfen someone out? am PC bin ich noch unbeholfen something. Also bitte, bitte mit Geduld imagine! MIT thank wurde und