Extract indesign preview

Is it possible to get/extract the preview file saved in Indesign documents by scripting?
We are exporting a JPG file of every document, but for large format documents / complex documents til is a slow process. So i thought, perhaps it is possible to use the file that indesign saves ("Preferences -> File handling")?
Any ideas?

JavaScript implementations of Base64 decoders can be found on the web. Below is a script that uses Thomas's method to retrieve the thumbnail from the active document and a script I found (and slightly adapted) on Stephen Ostermiller's site (Google's first hit using "base64 decoder javascript").
Peter
/*The Base 64 decoder is from Stephen Ostermiller's site:
http://ostermiller.org/calc/encode.html
Preview extractor from Thomas Nielsen
file_name = '/d/thumb.jpg';
var END_OF_INPUT = -1;
var base64Chars = new Array(
   'A','B','C','D','E','F','G','H',
   'I','J','K','L','M','N','O','P',
   'Q','R','S','T','U','V','W','X',
   'Y','Z','a','b','c','d','e','f',
   'g','h','i','j','k','l','m','n',
   'o','p','q','r','s','t','u','v',
   'w','x','y','z','0','1','2','3',
   '4','5','6','7','8','9','+','/'
var reverseBase64Chars = new Array();
for (var i=0; i < base64Chars.length; i++){
   reverseBase64Chars[base64Chars[i]] = i;
function decodeBase64(str){
   setBase64Str(str);
   var result = "";
   var inBuffer = new Array(4);
   var done = false;
   while (!done && (inBuffer[0] = readReverseBase64()) != END_OF_INPUT
      && (inBuffer[1] = readReverseBase64()) != END_OF_INPUT){
      inBuffer[2] = readReverseBase64();
      inBuffer[3] = readReverseBase64();
      result += ntos((((inBuffer[0] << 2) & 0xff)| inBuffer[1] >> 4));
      if (inBuffer[2] != END_OF_INPUT){
         result +=  ntos((((inBuffer[1] << 4) & 0xff)| inBuffer[2] >> 2));
         if (inBuffer[3] != END_OF_INPUT){
            result +=  ntos((((inBuffer[2] << 6)  & 0xff) | inBuffer[3]));
         } else {
            done = true;
      } else {
         done = true;
   return result;
function setBase64Str(str){
   base64Str = str;
   base64Count = 0;
function readReverseBase64(){ 
   if (!base64Str) return END_OF_INPUT;
   while (true){    
      if (base64Count >= base64Str.length) return END_OF_INPUT;
      var nextCharacter = base64Str.charAt(base64Count);
      base64Count++;
      if (reverseBase64Chars[nextCharacter]){
         return reverseBase64Chars[nextCharacter];
      if (nextCharacter == 'A') return 0;
   return END_OF_INPUT;
function ntos(n){
   n=n.toString(16);
   if (n.length == 1) n="0"+n;
   n="%"+n;
   return unescape(n);
var myString = app.activeDocument.metadataPreferences.getProperty("http://ns.adobe.com/xap/1.0/","Thumbnails/*[1]/xmpGImg:image");
myString = myString.replace("&#xA;", "\n");
jpeg_string = decodeBase64 (myString);
jpeg_file = new File (file_name);
jpeg_file.encoding = 'binary';
jpeg_file.open ('w');
jpeg_file.write (jpeg_string);
jpeg_file.close();

Similar Messages

  • If I extract my previews to recover lost images, will they still show up in the catalog?  Can I extract just certain files?

    if I extract my previews from lightroom, will they still show up in the catalog? I am trying to recover certain images. Can I just extract specific folders?

    I also had ringtones from the 1001 Ringtones app that were lost after the iOS5 conversion.
    I tried the the fix to uncheck the ringtones, sync and then re-check and sync, but that didn't work for me.
    What did work was that I re-downloaded the file from the original e-mail where the app sent it to me, then I hit "add file to library", found the file and then my old ringtones re-appeared.  However, they had a circle with an exclamation point next to them, and when I clicked on it, it said itunes could no longer file the location of the file.  So, I followed the screen steps to tell it where they were originally saved, and then they synced just fine.
    I hope this makes sense, good luck.

  • No InDesign previews

    Mac OSX 10.4.11
    Bridge CS4
    InDesign previews are not showing. I'm only icon previews. Any ideas?
    Thanks.

    No, it's well behaved now. I grouped and ungrouped with no problems. I dragged on to the page a copy of the type and EPS
    I had put in a library before I got the file fixed, and it still exported properly. And I have edited the text by
    changing its tracking. And again, it's behaving itself.
    All I can put it down to is the amount of fiddling I had to do when setting the type on the path originally to get it
    looking right. Somewhere along the line I guess I caused a corruption that the INX transition removed.
    k

  • My Creative Cloud InDesign download is stuck - it says "Extracting InDesign CS6 at the top

    My download has been stopped for a while now - it just says "waiting" next to the programme and "Extracting Indesign CS6" at the top of the screen (downloading CS6 to be compatible with the Mac software at Uni.) Anyone else had this problem and know how to resolve it? I really need the software ASAP!

    Hi Bethchudley94,
    You can also try downloading InDesign CS6 from following direct download link.
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    Hope this helps.
    Please let me know in case of any problem.
    Regards,
    Sumit Singh

  • Edge Animate Ellipses Changing into Squares in Indesign preview play. What's wrong?

    Edge Animate Ellipses Changing into Squares in Indesign preview play. What's wrong? Previewing on a PC desktop.

    I'm using a OAM file. Placing it as I would an image. In EA, I grouped an ellipse with a text box and then applied the fade on effect to the group. Each fades on as the timeline progresses. I hope that answers your question. let me know if not. I also tried to ungroup the two layers and apply the fade to each individually but it produced the same effect in the content viewer.

  • Can I extract an InDesign preview image?

    Somehow one of my Tiff images that I use in InDesign has been corrupted. PS won't open it (it tells me that it is not a Tiff file), so the only record I have of the image is the preview that InDesign grabbed when I first imported the image. InDesign shows me the image when I go to that page, but when I try to export or print, InDesign tells me it can't find the file.
    This image is not a very important one. It is a simple drawing I made in PS with a few fills and I'm quite happy with the quality that I see in InDesign. So I thought I'd try to export it to PDF and grab the image from within the PDF. Wouldn't export. OK, how about embedding the file and exporting? No go. Print? No.
    That is my problem. Instead of me spending a few hours to redraw the image, given that I'm happy with what I see on screen, can I get the image out of InDesign?

    Sandee, maybe I didn't do what you suggested. Let me use colours to explain what I did. I clicked on the white pointer, clicked on the image and it was surrounded by a brown rectangle, then I copied (or cut) and nothing got copied to the clipboard. I tried images that are OK, and still nothing happened. I am using CS, maybe that's why I can't copy a preview image.
    Do you mean that when you copy an image with the direct selection tool, that you are copying InDesign's stored preview to the clipboard?
    I also tried these:
    1. Copying the image and pasting it back into InDesign CS. That worked, but I couldn't copy the second image to the clipboard.
    2. Cut the image and repasted into InDesign. Again, I wasn't able to copy or cut to the clipboard.
    Maybe trying to paste into Photoshop CS is where the problem lies. I'm going to download a trial version of CS3 to see if that works.

  • Varying black intensity in PDF/InDesign preview - any ideas if harmful?

    Hi guys,
    I am encountering the following oddity in displaying my book as PDF or even inside Indesign.
    The intensity of my Black color is varying on some spreads pretty randomly. Look at the picture below to see what I mean. Notice the difference between the upper and lower part on the left.
    You see, how to the upper part is less black? Of course, since this is a threaded text, the text is exactly the same attribute-wise. There are also no overlaying or overprinting features on top, bottom or whatsoever. Black text on white paper.
    Anyway. So I thought: This looks weird. I checked the color values in Photoshop by importing and rasterizing the respective pages. They seem to match. I did a print test, they seem to match.
    Now the funny part: I thought, this must be an anti-aliasing issue so I made a screenshot from Acrobat and Indesign and what I see is that the text on the pages get anti aliased differently! (right column)
    My question now is:
    Why?
    Where do I set it up to be the same?
    Does it have effects on printing?
    Thanks a lot guys! I am bit worried here, since it happens totally randomly.
    I am on Windows 7 64bit running ID CS5 with all patches.

    Alright, I checked the seperations, all text appears to be on the K channel, nowhere else.
    However, the text appears to get anti aliased with the upper method (subpixel AA) only on layers that contain NO transparency. I checked that with the Flattener Preview and only on pages without transparency I see a difference.
    So what should I do now? Does it affect my printing results? Or should I change the flattener settings? (I would rather not touch that)
    Thanks a lot so far! Happy to hear more.

  • Indesign previews in creative cloud dont show fonts?!?!

    ok.. so surely this is not the way its supposed to happen
    indesign file with a non web font uploaded to creative cloud
    preview gets created with a substituted font.. = design looks rubbish and certainly wouldnt work to show a client as suggested.
    i tried also uploading the font in the hope it would work, but no luck
    any help appreciated : )

    Sorry...thought this was a DPS question.
    Creative Cloud hasn't been officially released. If you're a beta tester please ask this question in the prerelease area.
    Bob

  • Indesign Preview Issues

    Has anyone had a similar problem to the one we are encountering.
    We use a pdf workflow and we export to press pdf directly from the book feature in InDesign CS6. The export seems to go through with no issues, however after the export is complete, InDesign then attempts to generate a preview which can then take up to 30 - 40 minutes to process.
    I'm aware of the preview preferences within InDesign, however when we were on CS5 this didn't happen. I am trying to find out whether this is peculiar to the CS6 version & if so is there a workaround without turning off the preview preference?
    Any help would be appreciated.

    Is this box checked?
    If so, try unchecking it.

  • Show InDesign preview as spread in Bridge

    We recently upgraded to CS5. In CS3, Bridge showed the start spread for InDesign documents as previews, but in CS5 only the first page of a document shows up. For editorial work it is much better to see both pages. Is there any way to get Bridge to show the full start spread again?

    Only the number of pages to preview and their size can be set in the InDesign-preferences, as far as I can see.
    To be a bit clearer: I want is to see both pages of the opening document spread together in Bridge. This used to be the case in CS3.

  • Zoom in to indesign preview in creative cloud

    am i missing the zoom buttons?
    how will i be able to show a client a preview on creative cloud, and get them to comment without them being able to read the text?
    if i upload an indesign page layout, and share it with someone, they cant read small text without downloading the document (thus requiring indesign) is this correct?

    Hi Dave!
    I am a Webdesigner and would love to show clients a full rez crisp view of there sites. The canvas is generally very large for GUI mockups. A 100% zoom would be soooo helpful. In fact I cant currently show my designs through creative cloud for this reason. I totally agree with aurelien-foutoyet This would be an amaizing feature for web and typography designers.
    Thanks,
    Jared

  • Problem extracting InDesign CS5.5 trial - error message "illegal seek"

    Hi,
    trying to download Indesign trial CS5.5
    I think the file downloads, however when it trys to extract I get a box appear saying
    "the following disc images could not be installed;
    InDesign_7_5_LS1.dmg - illegal seek"
    I can't open from the actual  file either.
    I have tried downloading multiple times.
    Can anybody please help!
    Thanks

    Hi Lucy
    I just spent a few minutes on Adobe Live Chat. They provided an alternate link to download the product -- hopefully bypassing the Download Assistant which I think is the real problem. We'll see. Here's a link to them if you want to try it. I'm re-downloading it now and am hopeful.
    http://www.adobe.com/support/chat/ivrchat.html

  • Extracting JPEG preview image from DNG file

    My company is using the DNG SDK to support raw or DNG files for users of our digital asset management software. We extract a jpeg preview/thumbnail from ALL file types we support.
    My question is: how can we extract a jpeg preview from a DNG file, using the latest version of the DNG SDK?
    Currently, our software uses the SDK to read a DNG file and write a tiff file, and passes the tiff to imagemagick to get a resized jpeg we can use for a preview or thumbnail.
    When we extract the tiff from the customer's file, we get a base version of the image that does not show subsequent colour adjustments made in (eg) CS3; the customer would like to get a preview that shows (especially) the colour adjustments that have been made.
    I know the jpeg preview exists inside the DNG, I used exiftools to extract it,and it does show the colour adjustments made.
    How do I get that preview image out of the DNG file using the DNG SDK? Does the DNG SDK support that operation?
    The SDK has a lot of API, but not much documentation or samples to show usage.
    Thanks for any help anyone can provide.

    Maybe it isn't the smartest way, but this should work:<br /><br />... call info.Parse (host, stream) etc here - the usual stuff<br />{<br />     // find biggest jpeg image for preview<br />     unsigned int subMaxW=0;<br />     int subMaxI=-1;<br />     for(unsigned int i=0;i<info.fIFDCount;i++)<br />     {<br />          dng_ifd* pIFD=info.fIFD[i].Get();<br />          if (ccJPEG==pIFD->fCompression && 1==pIFD->fNewSubFileType)<br />          {<br />               if (pIFD->fImageWidth>subMaxW)<br />               {<br />                    subMaxW=pIFD->fImageWidth;<br />                    subMaxI=i;<br />               }<br />          }<br />     }<br />     if (subMaxI>=0) // load desired jpeg preview<br />     {<br />          unsigned int i=subMaxI;<br /><br />          dng_ifd* pIFD=info.fIFD[i].Get();<br />          if (ccJPEG==pIFD->fCompression && 1==pIFD->fNewSubFileType)<br />          {<br />               // seek to pIFD->fTileOffset[0] and load jpeg<br />          }               <br />     }<br />}

  • Indesign preview cmyk

    Hi There - how can I preview CMYK in my kuler extension in indesign cc2014?

    InDesign cc 2014 is currently using the Kuler Flash Panel.  This panel does not allow users to see private themes created by the user.  You can still use your themes in ID by doing one of the below workarounds. 
    (1) Download ASE files on kuler.adobe.com: you can download ASE files on Kuler and then import them into ID for preview purposes.
    (2) Make your theme public: you can make your themes public and then search for them in the community section of the Kuler Flash panel.  If your theme names are common, you may want to choose a distinct name so they are easier to find.
    I hope one of these options will work for you.

  • Why are some InDesign previews large and others small?

    I seem to save the individual files out (they are the same physical dimensions) yet some have large previews in Bridge and others have small previews in Bridge. Any ideas? Thanks!

    It seems to be connected to whether or not you saved Preview images when you originally saved the files.
    Re-opening and re-saving in CS4 should solve the problem.

Maybe you are looking for