Sustainable Web Development with Ruby on Rails: ebook images

Hi,

There seems to be an issue with the images in the epub format of the book.

They’re not resizing and are too big to read on the devices I’ve tried it on. The images are larger than the page and can’t be viewed or scrolled.

So far I’ve seen the same problem in Calibre eReader and on my Kobo Elipsa.

Running the mobi version of the book I see that the images are correctly resized but the book index and contents are missing.

The PDF version of the book is resized correctly but the text contrast is poor and as expected there is no page reflow.

These are the files as downloaded directly from PragProg, I’m happy to add some extra conversion myself in Calibre but so far I don’t know what would work best.

My preferred solution would be that the epub version correctly resized.

Any suggestions?

Thanks.

Hi @seandunn,

I’ve forwarded your note to the author. This book is a distribution, which means the author handles the production. Thanks for reading!

Best,
Margaret

Hi, author here. I just downloaded Calibre for MacOs and opened the epub file. I’m not seeing the issue or maybe I don’t know exactly what issue you are seeing. For me, the window that opens up shows the text and images. When I resize the window, the images stretch or shrink. I don’t have an Elipsa to test with - do you know if it has a software simulator?

What other software or devices are exhibiting this problem? I have tested it on my Kindle and the Kindle previewer app and everything works as expected.

Hi Margaret and Dave,

Thanks both for taking the time to reply. Dave, loving the book so far otherwise BTW!

The issue seems like a clipping/bounding thing. So the image in the Calibre ebook view is unscaled and overflowing any bounding element. Resizing the window reflows the text of the book but doesn’t affect the images.

That’s running on Fedora, so I wonder if it’s something specific to that version. I’ll try redownloading from PragProg and put that directly on to the Elipsa. Also I have an older Mac and I’ll test it on that as well for comparison.

I’ve settled on viewing the PDF version on my Elipsa and that’s OK, so not the end of the world. Not sure if there is an emulator for it but I’ve not seen one so far.

Cheers,
Sean.

Sorry this is happening. I tried googling this problem and couldn’t find anything. FWIW, the markup inside the epub is pretty basic with almost no styling (which I assumed would be most compatible), for example:

<p>Rails doesn’t talk about the parts this way, but we will, since it allows us to group similar parts together when talking about how they work. The figure <a href="#fig:default-application-architecture">“Rails’ Default Application Architecture”</a><span class="latex-only"> on the next page</span> shows all the parts of Rails 6 and which of the four categories they fall into. The diagram shows that:</p>
<figure>
<img src="../media/file0.png" alt="" /><figcaption>Rails’ Default Application Architecture<a name="fig:default-application-architecture"></a></figcaption>
</figure>

Yeah that looks straight forward enough.

I came up with an alternative solution, I installed Koreader and Plato, two alternative ebook readers for the Kobo Elipsa.

Both seem to work perfectly. So for me at least the problem is gone.

If anyone else has the same issue then I’d take this route as it was very easy and gives you so many new options for formatting.

Cheers,
Sean.