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

Sizing images in InDesign layout for epub export

Return to Member Forum

  • Author
    Posts
    • #63314
      Reya1600
      Member

      First post, though I've been finding answers for over a year on this great site! :)

      I have CS5. I created a print book with about 120 images and am now converting it for epub export. It's the second epub export I've done, so I'm still a beginner to this. Does it matter how large I scale images within the layout I'm preparing for epub? Will InDesign refer to the linked photo and its dimensions, or resize the image down if I don't enlarge it to the width of the page? Or can I leave the images in the text flow as they are, sized however they are, and later modify the html to say width=”100%” for those I want to scale to the reader's screen that way?

      I don't want indesign to resize them smaller than the width of my page (set at 600x860px per lynda.com video), because if I later want them to be set at 100% width, there might be some quality issues.

      Thanks in advance for any help!

    • #63325
      Reya1600
      Member

      I haven't been able to find an answer to this yet from anyone, nor anywhere else on the web. I did some experimenting, and it seems that InDesign does resize images to how they are scaled in the document when they're exported to epub. So, I enlarged nearly all of them to the width of the page (600px), figuring I could resize later in the html or the image file itself, if needed. It did make the epub file size very large though, about 27MB. I had image quality set to “Maximum” in the export options too.

      If anyone has any thoughts or experience to share on this, I'd appreciate it. :)

    • #63331
      Laras
      Member

      I usually edit the image files once they're exported to EPUB. I open every file in the “Images” folder and check the resolution. It doesn't take that long and it prevents those greater-then-2-mega-px files from sneaking in and being rejected by the iBookstore.

    • #63335
      Reya1600
      Member

      Thanks, Laras. I have been doing some of that editing post-export. With so many images, it's a little time-consuming, but so far it seems to be working ok.

    • #63666
      Liang
      Member

      I'm not sure about CS5, but in CS6 you can choose to either export images at a specific size or 'relative to page width'. Regarding the latter, I have experimented a bit by comparing the sizes of images set in InDesign against the resulting code once exported to EPUB. To the best of my knowledge, if you choose to export relative to page width:

      InDesign creates a copy of each image basing the dimensions of the new file on the picture box dimensions from InDesign. Keeping this in mind and the fact that images are rasterized as specified in the object export settings, the size of the original linked image becomes irrelevant.

      In the code, a class is created for every differing width of image based on the percentage width of the InDesign page. If your images are laid out using column guides, the number of different img classes that InDesign creates will be reduced as you are limiting the variety of image widths used within your document. For example:

      If your InDesign page is 210mm and an image / picture box has a width of 105mm, in the resulting HTML, InDesign will assign the image a class (in this case “frame-3”)

      <img class=”frame-3″ src=”image/Imagefilename.jpeg”/>

      and a rule will be added to the CSS file that stipulates that frame-3 should display at 50% of the eReader's page width:

      img.frame-3 {width:50%;}

      If your image sits inside a div (paired with a caption for example), the div will receive a class too and additional rules will be applied to the object.

      Now. This is the part that I'm slightly unsure of! It seems to me that the above holds true when the iPad (can't vouch for any other devices) is held in portrait orientation. When held in landscape orientation (and iBooks displays a double page spread rather than a single page), images only change size accordingly if they are larger than the new page – but if not, they remain at the size they were displayed while in portrait mode. Roughly speaking, this means that if an image is displayed at 25% width in portrait, when the device is rotated to landscape, it is displayed at approx 50% of a single page. All roughly speaking mind ie. disregarding margin dims etc.

      Can anyone shed any more light on this subject or confirm that what I've just said is correct? I've concluded all this by experimentation but because of a degree of inconsistency in the results cannot yet claim that any of it is for definite! I'm having issues controlling the size of images (tall ones are forcing captions to split and jump to the next page) and would like to fully understand for certain firstly how InDesign writes the rules and secondly how iBooks interprets them.

      Cheers.

Viewing 4 reply threads
  • The forum ‘EPUB and eBook’ is closed to new topics and replies.
Forum Ads