Image resolution in InDesign CS4 js

Hi, is it possible to find out image resolution directly from InDesign, or do I have to open the file in Photoshop to do it.
Thank you.
Yulia

var doc = app.activeDocument;
var graphics = doc.allGraphics;
var image, horRes, verRes;
for (var i = 0; i < graphics.length; i++) {
     image = graphics[i];
     try {
          // The resolution of a graphic after it has been resized.
          horEffRes = Math.round(image.effectivePpi[0]);
          verEffRes = Math.round(image.effectivePpi[1]);
          // The native resolution of a placed graphic.
          horActRes = Math.round(image.actualPpi[0]);
          verActRes = Math.round(image.actualPpi[1]);
          $.writeln((i+1) + " - " + image.itemLink.name);
          $.writeln("Effective resolution - " + horEffRes + "x" + verEffRes + " ppi");
          $.writeln("Actual resolution - " + horActRes + "x" + verActRes + " ppi");
     catch (err) {
          // vector graphic
          $.writeln((i+1) + " - " + image.itemLink.name + " - Resolution is unavailable");
}

Similar Messages

  • Images shrink from Indesign CS4 to PDF

    I design ads at a set size in a frame in Indesign CS4. I just noticed that when I print them to PDF (regardless of the PDF distiller settings), they shrink. I have the print dialog box settings at 100%. Printing to a physical printer does not have this problem. How can I get 100% to mean 100% when I print to PDF? It has nothing to do with my art. I could just have a box frame, and it would shrink that.

    The original is 7.25 wide. The PDF is about 6.75 wide.(Height is proportional in both).
    I am not printing FROM PDF. I am printing TO PDF. The magazine production rep was the first one to notice how off the PDF file was. At first, I had created the page size to be the size of the ad. That produced an even smaller PDF of the ad on letter paper than after I recreated the ad on a letter sized page to begin with. It is still off by about .5 inch though.
    And if I do print from PDF, I am set to no scaling (not shrink or fit).

  • Correct workflow when inserting images into text, InDesign CS4

    Hi,
    I am new to InDesign and I have a problem regarding a really basic thing and I would be very grateful for help.
    I am writing an article which is about 10 pages long. It consists mostly of text. I have finished writing and now I want to add some illustrations with descriptions. I've already figured out it's best to insert images into the text frame so they behave as "anchored objects" and they move together with text when I add or delete something on previous pages. Now I would like to place TWO OR MORE images, one next to each other, in a line. This is a bit tricky but I created an object style with Position: Custom in "Anchored object options" and it works more or less fine. This works great but now it would be hard to add descriptions to these images that would still be anchored.
    So I created something different. I made an empty rectangle frame, a small text frame under it and grouped them. Then I placed it in my master text frame and basically did the same thing as for previously described images. Now I place the newly loaded image in the empty rectangular frame and add text in the empty text frame. BUT now I have problems with frame size for different-size images.
    What if I have a REALLY LONG article and want to add LOTS of images with decriptions that would be anchored in the text so I can edit previous pages? I can do this my way, but it's extremely uncomfortable and takes ages. Is there any comfortable, non-destructive workflow for doing such things?
    Sorry for my English.

    Hi,
    I would recommend following steps:
    Place one or more images
    Don't anchor them yet.
    Arange them (the images) relatively to each other, add a text frame and arrange them correct relatively to the images.
    Group images and text
    Copy (or cut) them into the clippboard
    Set the curser into the text where it should flow
    Paste it
    Adjust the anchored object (the group)
    You need to group several objects to anchor them together as one anchor.
    Further recommendation:
    For the images I would specify an object style for fitting, stroke, corner optione.
    For text frames I would specify an object style for text object options, like text offset, and used paragraph style, no boarder, etc.
    For the group I would spcify an object style which leaves above mentioned settings undefined (option field is grea or has a dash). But the anchored position of the whole group and text wrapping should be specified.
    Willi Adelberger

  • Remove back image while exporting to PDF (InDesign CS4)??

    Hi All,
    I have two images in my InDesign CS4 file and one image is hiding behind my second image. When I am exporting my InDesign file as Pdf and opening in Acrobat, Acrobat showing bottom image first and then showing my top image.
    Is there any way to remove my bottom image which is appearing behind in my top image while exporting to Pdf.
    I don't want remove manually because it happening with most of my InDesign file.
    Please suggest.
    Thanks
    Baljeet

    I would move bottom image to separate layer and then eventually I would switch it off.
    If you don't want to change anything in InDesign you can eliminate the second image in your already generated PDF.
    Open your PDF in Acrobat Pro.
    Advanced -> Print Production -> PDF Optimizer.
    You can leave only "Clean Up" check box marked (eventually Transparency if Acrobat will not allow you to switch it off). All the rest leave unchecked.
    This operation will remove hidden image.
    Correction: It will not remove the image. It just made the PDF to be displayed much more faster that is why the second image appearance was not noticeable. Sorry for the inconvenience.

  • RELINKING IMAGES MANUALLY IN INDESIGN DOESN'T WORK

    Hello,
    Please help,
    I am opening an Indesign CS3 EPS image file in Indesign CS4 which is made by combining 2 Clipping path images. The problem is: I am not ablt to use the images manually. however, automatic relink works fine. Although I don't know where that option is. I just want to use manual relink.
    any suggestions??
    thanks
    Rachael

    I've seen cases where this "Mini Save"/ "Automatic Recovery" did not work at all.
    Rare cases, but:
    Always when the InDesign file is opened on a different computer and you are working on a network. And someone pulls the plug from that other computer (shutting it down, ignoring the messages that another machine is hooked)!
    SO: I would never rely or bet on the otherwise fabulous feature "Mini Save"/ "Automatic Recovery".
    There is a startup script around in the web by Martin Fischer somewhere on the site hilfdirselbst.ch, that saves a copy of the actual file in a special folder every time you do a "save" or "cmd + s" adding a continous number to the auto saved file name.
    Uwe

  • Image text is missing in InDesign CS4

    Hi everybody,
    I am using InDesign CS4 with MAC OS X 10.5.8. I encountered a problem that the Text is missing in the eps image, when imported on InDesign document. Refer below screenshot.
    I have used “Times New Roman” Type1 font in InDesign document. And for images I have used the same “Times New Roman” as OTF font. Refer below screenshots.
    Type 1 fonts used in InDesign:
    Open Type Font used in Images:
    Here, I caught one more finding. If I save the image as Adobe Postscript as “Language Level 2”, I don’t have any text missing issue in InDesign document. But, if I save the image as “Language Level 3”, I found this missing text issue in the document. Refer below screenshots.
    Could anyone hlep me what the exact issue. Any help is much appreciated!!

    Yes Bob. This new thread was raised by me to explain the issue in detail.
    Further to my analysis, I found that when I load the job fonts in “Applications/Adobe InDesign CS5/Fonts”, we got this text missing issue. And the same job fonts, when I load in “Users/<user_name>/Library/Fonts”, it showing correct.
    Any thoughts?

  • Indesign CS4 really slow with CMYK images

    Can anyone help me solve this? InDesign CS4 document with a few pages, and approx 24 images on a page. With CMYK images imported the rendering and re-rending is very sluggish. The Processes shows 99% usage for InDesign. Makes it almost impossible to work on a document.
    Any ideas to fix this?
    I'm using an 27" iMac with 2.8 GHz Intel Core i7 - Memory: 8GB 1067 MHz DDR3

    Doesn't surprise me. I find getting help in Adobe forums/support/community very confusing to find my way around.

  • Script to rotate an image in InDesign CS4 from an Excel Spreadsheet

    Hi all,
    Is there a script for InDesign CS4 that reads degrees from an excel spreadsheet and then rotates a specific image by the same amount of degrees that was written in this excel spreadsheet? I would like to create a column in Excel full of rotation degrees and then go to InDesign, run the script for a specific image and the image will rotate automatically.
    If there isn't a script like that already around, can you let me know if it is possible to be done and also if it is possible, can you help me create one please?
    Thank you in advance for your help.
    Lucas

    a script to rotate images... only one at a time and marijan tompa had the answer for that: http://forums.adobe.com/message/2998073
    as for referencing an excel file or txt/csv, i don't know, but perhaps other posters could assist.
    colly

  • Image import dialog box InDesign CS4

    The Image import dialog box has no "turn off" box to select after I turned it on to place a page in a PDF document. I am in Indesign CS4. How do I turn off this feature. It is showing the window now every time I import an image.
    Please help.

    There should be a tick box called Show Import Options
    File>Place and you should see it.

  • Generate images list out of InDesign CS4

    We have an InDesign CS4 document that had more images. Most of them have been reduced to some percentage to fit the page. I need to generate a report TXT/RTF format of the resized images alone. Kindly help me is there any script that had already to meet the requirement?

    I knocked this off for about 10 minutes, so it's totally untested. The script creates a text file on the desktop listing resized images in the active document and their scaling.
    Kasyan
    var kScriptName = "Generate list of resized images";
    if (app.documents.length == 0) ErrorExit("No documents are open. Please open a document and try again.");
    var doc = app.activeDocument;
    var links = doc.links;
    var counter = 0;
    var resizedImages = [];
    for (var i = 0; i < links.length; i++) {
         var image = links[i].parent;
         if (image.absoluteHorizontalScale != 100 || image.absoluteHorizontalScale != 100) {
              resizedImages.push(image);
    if (resizedImages.length == 0) {
         alert("No resized images were found.", kScriptName);
    else {
         WriteToFile("\r--------------------- Script started -- " + GetDate() + " ---------------------\n");
         WriteToFile(doc.name + "\n");
         for (var j = 0; j < resizedImages.length; j++) {
              var currentImage = resizedImages[j];
              var info = (j+1) + " - " + currentImage.itemLink.name + "\t" + Math.round(currentImage.absoluteHorizontalScale) + "x" + Math.round(currentImage.absoluteHorizontalScale) + " %\r";
              WriteToFile(info);
         WriteToFile("\r--------------------- Script finished -- " + GetDate() + " ---------------------\r\r");
         alert(resizedImages.length + " resized images were found.", kScriptName);
    //-------------------------------------- FUNCTIONS ---------------------------------------------
    function WriteToFile(text) {
         var theFile = new File("~/Desktop/" + kScriptName + ".txt");
         if ( theFile.exists ) {
              theFile.open("e");
              theFile.seek(0, 2);
         else {
              theFile.open("w");
         theFile.write(text);
         theFile.close();
    function ErrorExit(myError, myIcon) {
         alert(myError, kScriptName, myIcon);
         exit();
    function GetDate() {
         var myDate = new Date();
         if ((myDate.getYear() - 100) < 10) {
              var myYear = "0" + new String((myDate.getYear() - 100));
         } else {
              var myYear = new String ((myDate.getYear() - 100));
         var myDateString = (myDate.getMonth() + 1) + "/" + myDate.getDate() + "/" + myYear + " " + myDate.getHours() + ":" + myDate.getMinutes() + ":" + myDate.getSeconds();
         return myDateString;
    P.S. Written on CS3, Windows

  • How to import images from web via CSV in Indesign CS4?

    Hi,
    I am using Indesign CS4 and i want to import pictures from my homepage.
    I have a CSV export from a database with products and the url to the
    product picture. I want to import the information for the products and
    the picture via data merge. I added the @ in the name of the column
    where the url to the pictures is. Everything works perfect when I use
    a lokal path, but I need to get the pictures from the website.
    Is it possible to import pictures from a website via CSV data merge?
    What steps are needed for that?
    Would be great if you could help me.
    Best Regards.

    thank you all for your answers, that was what i thought.
    yes, it starts with http://domainnaime.... it's from an extern webspace
    then i will backup all pictures and put them in the local network and try over ip-address if that also won't work then I'll copy then locally
    altough, it would be great if it works via ip-address

  • InDesign CS4 Package command not collecting all images

    OSX 10.5.6 - InDesign CS4. Packaged a magazine document which has 56 links. Destination folder only has 14 of the links. Fonts collected OK. What is going on? I redid this 3 times and it still only collects 14 of the links. Thank you.

    http://indesignsecrets.com/be-alert-for-missing-links-when-using-the-cs4-packaging-feature .php
    Bob

  • Poor printing quality in InDesign CS4

    Hello,
    In InDesign CS4, I've made a single-page print (page coverd with one photo).
    This photo is a high-resolution image (300 ppi) and is linked with the document. (checked with preflight).
    The print is made on a Xerox Phaser 7760. The result isn't sharp at all. I've printes the same picture started in PhotoShop with a fine result and a print from an HiRes-pdf of the same page. The result was ok as well. The page and the picture weren't colormanaged. I kept the outputprofile, linked at the original file (US Web coated). The files were printedd on a heavy card stock (uncoated). Any idea what went wrong?

    Could be a couple of things.
    You say the image is 300 ppi. At what size? The number that counts is effective resolution, or the resolution at the scaled dimensions, the ones you use to print. You 'll find effective ppi listed in the info or links panels.
    Second, the default sending for image data when printing from InDesign is "optimized supbsampling" which is usually not that good. Chnage to "all" and see if that helps.

  • [Ann] QR Code for InDesign CS4 and up

    Ever needed to create a QR code? There are literally hundreds of free QR code generators on the web, but they all have the same drawbacks:
    1. They typically deliver a PNG, either 'click here to download', or you have to drag it somewhere yourself.
    2. It's typically an RGB image, so the cautious designer will start up Photoshop to convert it to a monochrome image.
    3. .. so you get a file to store somewhere ..
    4. ... and after seeing four of them you cannot remember which QR code said what ...
    5. .... and, you cannot use such site in a batched environment (well, maybe some people can by building a proper URL, call the website, wait for a response, etc. I bet it's difficult for your average scripter.)
    So I had a go on converting one of the existing Javascript solutions -- Patrick Wied's, in case you're curious -- into a construction fit for InDesign. All you have to do is download the zip: http://www.jongware.com/binaries/jw_qrcode.zip -- unpack it, and save the file "QRCode.jsxbin" in your local User Script folder. It ought to be compatible with InDesign CS4 and upwards, for both Mac and Windows.
    When it appears in your Script Panel, you can double-click to run and
    1. with nothing selected, it prompts for text and error recovery settings, and will place a proper monochrome TIFF bitmap of (approximately) a useful dimension in the center of your current page.
    2. with an empty rectangle selected, the new QR code will be placed inside it.
    3. with some text selected, the text field will be pre-filled with this.
    4. With a QR Code selected which you created earlier using this same tool, the text field will contain the original text, and the quality setting will be retrieved. You can cancel the dialog if you only wanted to know what it said, or change the text or quality.
    5. You can call this script from another script to perform batch operations. It accepts two required arguments, and one optional, in this order: text, Error Correction level (1-4), and optionally a destination rectangle to place it in:
    app.doScript(new File(app.activeScript.path+'/qrcode.jsxbin'), ScriptLanguage.JAVASCRIPT, ["hello", 1, app.selection[0]], UndoModes.ENTIRE_SCRIPT, "Call QR Code");
    6. Since it's a monochrome bitmap TIFF with enough resolution (at its default size it's 200 dpi), you can use the swatches palette to change the white or black parts to another color, or even make one transparent.
    7. It's just a small file, and so I decided to always have it automatically embed. That way you can never loose it. The image first has to be created in a temporary file (default location: (Temp)/qrcode.tiff, where (Temp) is your local Temporary Files folder). If this fails for some of you (there always seem to be overly prudent IT professionals who seem to despise users storing files willy-nilly), I'll have to think of something else.
    Note: this version only supports plain text mode, not numeric, alphanumeric, or Kanji. Text is converted to UTF-8; for the most common purpose -- web pages -- it should work normally.
    Enjoy!
    Based entirely on Patrick Wied's implementation of a basic QR Code generator. Patrick Wied dutifully notes
    I do not guarantee any resulting QR code generations or detections, use this application at your own risk! - this project is just a study project (non commercial).
    and so I advise to always check your generated code using a good QR Code reader.

    To give back to community, here is the script to generate QR codes for business cards created by data merge
    It reads text frames starting with MECARD:, empties them and places QRcode rotated 15 degrees counterclockwise. Enjoy!
    var _d = app.documents[0];
    var _allStories = _d.stories;
    for(var nx=_allStories.length-1;nx>=0;nx--){
        var _storyAllTextFrames = _allStories[nx].textContainers;
        for(var mx=_storyAllTextFrames.length-1;mx>=0;mx--){
             _storyAllTextFrames[mx].select(); // change page
             if(_storyAllTextFrames[mx].contents.indexOf('MECARD:')==0){
                 var obj = app.doScript(new File(app.activeScript.path+'/qrcode.jsxbin'), ScriptLanguage.JAVASCRIPT, [_storyAllTextFrames[mx].contents]);
                 _storyAllTextFrames[mx].contents = "";
                var myScaleMatrix = app.transformationMatrices.add({horizontalScaleFactor:.7,
                    verticalScaleFactor:.7,counterclockwiseRotationAngle:15});
                obj.transform(CoordinateSpaces.pasteboardCoordinates,AnchorPoint.centerAnchor, myScaleMatrix);            
                 //obj.move ([_x,_y]);
    here is a MECARD template for you:
    MECARD:
    N:<<Last>>,<<First>>;
    TEL:<<Direct>>;
    TEL:<<Mobile>>;
    EMAIL:<<E-mail>>;
    NOTE:<<Position>> at <<Company>>;
    http://www.nttdocomo.co.jp/english/service/developer/make/content/barcode/function/applica tion/addressbook/index.html

  • Printing issues from InDesign CS4 pdf file

    Good morning,
    Could you help explain and possibly resolve an issue I'm having with an InDesign CS4 pdf file where the text and image drop shadows (40%) are printing as solid black blocked shapes from a large format printer. The file encompasses 1 overall image, 1 image with drop shadow, 3 text frames with drop shadow effect applied to the text and 1 group set of simple rectangular and ellipse objects with a glow.
    My colleagues in graduate school experienced the same with their files and the output bureau's rasterized the pdf file in Photoshop where it printed out with good resolution. Shouldn't this be resolved first in InDesign rather than rasterizing the file?
    I appreciate any help and insight you could offer myself and my colleagues.
    Thank you, Kathryn

    The printing service uses Acrobat 8 Pro and HP large format printer. My InDesign CS4 document is in the color mode of RGB and color type as Process. I saved it as a pdf file using the standard settings as follows: Preset: High Quality Print, Standard: None and Compatibility: Acrobat 4 (PDF 1.3). Are there options I should be paying more attention to when creating the PDF file? Also, I was reading up on Peter Spier's response links.
    This brings me to the next question...I'm creating a photo book for grad school with approximately 40 pages of images (RGB, 300dpi) with feathered drop shadows. What would be the best settings to use when exporting as a pdf file for printing services?
    Thank you for your help.
    Kathryn

Maybe you are looking for

  • Beige G3 with Pro Tools Freezes Every Time I Use PT (why I have the G3)

    Please, if anyone can help.... I GOT my beige G3 running which had died and refused to reboot when last I had tried running Pro Tools. I GOT Pro Tools 6.1 reinstalled and running... and then when I was back in Pro Tools again on my newly-running syst

  • Hp color laserjet 2025 and windows 7

    Subject  I have two hp color laserjets.  Toolbox cannot be installed with windows 7 pro.  Toolbox worked well with windows xp pro. How can I determine amount of remaining color toner and other necessary information without toolbox.  There is no toolb

  • Appending data with different type

    In follow up to an earlier post, regarding appending data from one table to anlther, please could I have some advice on the appropriatness of using certain data types to accommodate data from a non-SQL data type? The following is displayed as non-SQL

  • InDesign CC 2014 crashing and... why thousands of unique links?

    I have issues with my version of InDesign. After working with larger files for a while, Indesign starts lagging and behaving strange and then craches. It can take 10 minutes, 40 minutes, 5 minutes - it dosen't really matter, it suddenly happens. Can

  • Broken mp3 pla

    I have a creative zen sleek photo and out of no where it stoped working it won't turn on or anything how do i fix it or contact the company so they can fix there peice of **bleep** product