![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2013
Device: iPad 2
|
How to autofit images on Calibre
Hi wonderful people! I'm new here. I'm sure the information is here somewhere, I just haven't found it yet.
I have portrait (not landscape) images I wish to be visible on the entire screen of all devices. I understand there's some coding I can add to force it to fit the screen. Something like "maxheight = 100%"? What's the exact code and where do I type it in? Currently, I take a word doc, convert it to html, zip the html file, use Calibre to convert the zip file to ePub, but either the images cut off at the bottom and the rest of the image appears at the top of the next page, or the image is too wide and gets cut off on the side (though proportionally it looks right). What code do I need to add and where do I type it in? Thanks so much! |
![]() |
![]() |
![]() |
#2 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Welcome to Mobileread.
![]() Moderator Notice
The thread you posted to is 4 years old. I moved your post to its own thread for further discussion. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2013
Device: iPad 2
|
Thanks for repositioning my post! Any ideas on how to format an image in Calibre so that the image takes up the whole page without being cut off?
|
![]() |
![]() |
![]() |
#4 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
For conversion straight to ePub I'm not sure how. You may be able to do it in Sigil by modifying the code calibre uses to wrap images for the cover page. I grabbed the below example from a random book from my library. Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 563 751" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="751" width="563" xlink:href="../Images/cover.jpeg"></image> </svg> The code below does preserve the aspect ratio. Code:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 563 751" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="751" width="563" xlink:href="../Images/cover1.jpeg"></image> </svg> Good Luck. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help getting images into Ebook using Calibre | BunnyGal | Conversion | 8 | 03-25-2013 10:16 PM |
Calibre and Images. | stego | Calibre | 0 | 09-14-2012 10:33 AM |
PRS-650 My Calibre Recipes with no images etc | mufc | Sony Reader | 0 | 01-29-2011 09:24 AM |
Calibre and TOC with images | davidhburton | Calibre | 9 | 11-02-2010 01:16 AM |
Images on calibre | =X= | Calibre | 13 | 04-14-2009 07:15 PM |