Bug with image width

Denis Kolodin avatarDenis Kolodin created an issue

When I export ePub I see a bug with images (look an attachment). It appears in Adobe Digital Editions and others.

To fix this bug software like Sigil uses max-width:100%; property in style.

Please, add this property to epub theme:

img { border:0; max-width:100%; }

P.S. I think it's useful to add property for other themes, like basic, because bug appears with every theme in small browser's window.

Comments (2)

  1. Roland Meister

    Hello, thanks for the feedback!

    The suggestion looks good to me. I'll take a look at it.

    Meanwhile, could you try the epub_max_image_width option (new with version 1.2), which scales oversized images at build time down to a maximum width? While the main intent is a little bit different, it may also solve your current problem.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.