Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

EPUB export from InDesign CS5 creates duplicate images for single picture used multiple times

Return to Member Forum

  • Author
    Posts
    • #60649

      I am using InDesign CS5 (PC) to create ebooks. The documents are all one piece (not a “book”) with one continuous, linked text box. I use a small graphic as a section break marker inside the book. It is the exact same image and path each time it is used. In fact, I placed it once, then copied and pasted it each time. In the links panel, all 35 instances of the image are grouped together and share the same file path. I relinked them as a group just to be absolutly sure.

      However, when I export to EPUB, the image is duplicated 34 times. Instead of just being in the EPUB file once and used in several places, it has been re-recreated and renamed for each instance. This is a waste of file space.

      Does anyone know how to prevent this from happening? I'm looking for a way to export from InDesign and only have the image contained once in the EPUB file. I know I can manually edit the EPUB in Sigil to remove the duplicates, but such a manual method isn't feasible given the volume of documents I am working on.

    • #60668
      Amy Gilbert
      Participant

      I just brought this up in another thread. If you uncheck the “Formatted” (CS5) or “Preserve Appearance from Layout” (CS5.5) button on the Image panel of the EPUB export dialog box, it will only produce one image that is identical to what you have on your hard drive. I believe any object styles associated with the frame are retained, it just doesn't resize or otherwise put effects on the image itself. Or I actually have my graphics inline with the text most of the time. The paragraph style used to format the inline image is retained.

      If retaining the formatting is important for other images in your document and you really need to check that box, you can use a Regular Expressions find/change in a text editor like Notepad++ for the PC (free) to find all instances of your image and change the name by deleting the numbers that are appended to the name. Notepad++ has a feature that lets you find text in multiple files in a given folder. I'm no Regular Expressions expert but I think it would be something like this: imagename_fmtd+ and then replace with imagename_fmt. d means any digit and + means one or more times.

      Hope this helps

      Amy

Viewing 1 reply thread
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads