Skip navigation
Currently Being Moderated

ePub graphics are not sized correctly

May 21, 2012 1:15 PM

Tags: #export #epub

ePub graphics are not sized correctly after transfering ePub to my iPad using iTunes.

 

I am running indesign 6.0 on microsoft system 7 and transfering the ePub to my new iPad (32gb  2048 x 1536 resolution).

 

The graphic is set for "custom rasteration" with size set to "relative to page width".

 

The graphic displays correctly in Adobe Digital Editions but when I transfer the ePub to my iPad it appears full size.

 

If i set the cover to "Rasterize first page" the graphic on the cover is sized correctly but the graphic in the document is full size.

 

When i create the identical file using inDesign 5.5 everything works correctly.

 

What am i doing wrong or what setting am I not setting correctly?

 

Thanks,

 

Dennis

 
Replies
  • Currently Being Moderated
    May 21, 2012 6:10 PM   in reply to Dennis W.

    What are the pixel dimensions of the image that's not being sized correctly? What's the image resolution? Is the image "floating" on the page or is it anchored into a text frame? (If so, how wide is the text frame into which it's anchored?) Exactly what settings have you chosen in Object Image Options?

     

    If you give me this information, I'll try to test it tomorrow morning.

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2012 9:47 PM   in reply to Dennis W.

    Attachments aren't allowed on the forum. You can use the camera icon and select a JPEG image of the export options.

     
    |
    Mark as:
  • Currently Being Moderated
    May 22, 2012 5:37 AM   in reply to Dennis W.

    While I'm not a big epub expert (more of my knowledge is CSS/HTML) I can tell you that image is WAY TOO LARGE.

     

    Like Steve, I can't really picture what you're doing and some screen shots would be helpful.

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    May 22, 2012 6:35 AM   in reply to Bob Levine

    Welcome to the world of how different EPUB readers handle the same HTML and CSS code.

     

    I just did a test with a picture which had the Relative to Page Size and Custom Rasterization settings from InDesign CS5.5  and CS6.

     

    As far as I can tell each version of InDesign is writing the correct code but in a different way. ADE responds to it the same, but iBooks on your iPad does not.

     

    Here are the details: I created a 45 pica wide text frame and anchored a 14 pica wide graphic frame.

     

    InDesign CS5.5 exports the relative size as part of the image tag like this:

     

    <img width="31%" src="images/CMYK%20balloons_fmt.jpeg" alt="CMYK%20balloons.psd" />

     

    InDesign CS6 creates a class for the <div> tag for the graphic frame and references it in the CSS it creates. Here's the HTML:

     

    <div class="frame-2">
    <img class="frame-1" src="image/CMYK%20balloons_fmt.jpeg" alt="CMYK%20balloons.psd"
                                             />
    </div>

     

    Here's the CSS for frame-1:

     

    }
    img.frame-1 {
         width : 27%;
    }

     

    I would say that both of those are correct code. However, iBooks handles the CS6 version differently.

     

    Here's how the CS5.5 version looks in iBooks:

     

    CS55.jpg

     

    And here's how the CS6 code looks:

     

    CS6.jpg

    It handles it differently. So I'd say, if it's important that on the iPad, that it be smaller, you should edit the code to insert the scaling attribute into the HTML tag instead of the CSS,

     
    |
    Mark as:
  • Currently Being Moderated
    May 22, 2012 10:30 AM   in reply to Dennis W.

    I sent this info to a couple people who know more than I do and I'll let you know if I find out more.

     
    |
    Mark as:
  • Currently Being Moderated
    May 31, 2012 4:50 AM   in reply to Dennis W.

    I've had similar problems with image export overrides being ignored. I've found that the only half-decent way of getting around this is to paste the image into another identically sized and pointless box, which is then custom rasterised correctly.

     

    This only seems to affect custom rasterisation of one image; if the setting to preserve appearence from layout is enabled, it seems to work OK (but creates duplicate cover files for my ebooks, which I find annoying).

     

    Alex

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 11, 2012 10:21 AM   in reply to Dennis W.

    Sorry to bring up an old thread, but I'm having a similar problem.

     

    When I export an ePub out of ID CS6, all my images fill the width of the iPad screen. They should not. When exported out of CS5.5, they are the proper size (maybe 40-50% width).

     

    My images/graphics are set to "relative to page width" in the Object Export Settings. I checked my ePub Export Options and they look correct.

     

    Also, the images look correct when viewed in Adobe Digital Editions or other viewers. It's only on the iPad that they are too large.  I didn't have this issue when usuing CS5.5.

     

    Any ideas / fixes?

     

    (Note: I'm using an iPad 1 with OS 5.1.1 and InDesign CS6 vers. 8.0.1)

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 11, 2012 10:33 AM   in reply to FragileMedia

    Have you tried the fix I suggested above – creating a new box, pasting into that and rasterising it? I created a script to wrap it for me and I can live with it.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 11, 2012 10:45 AM   in reply to ukzembla

    Well, most of my graphics are groups of text in a text box, that's placed/anchored in the main text box and exported as a JPG. Is that what you mean?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 11, 2012 11:48 AM   in reply to FragileMedia

    Pretty much, though these days I do everything as fixed size. I set up a few object styles (e.g. for landscape / portrait) and then post-process the HTML into percentage widths based on the object style, as I found the "relative" setting to be a bit flaky.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points