Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2013, 11:08 AM   #1
travger
Evangelist
travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.
 
travger's Avatar
 
Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
settings for viewer?

I believe something is wrong with my viewer.

I converted epub to mobi. Epub cover is ok in Calibre viewer, but mobi cover is bigger and distorts when I resize the window. I want it to retain it's aspect ratio. Now I don't know if this has always been so - it is the first time I've looked at mobi file with Calibre viewer. (I have 'maintain aspect ratio' checked in output settings)

Secondly, I modified an epub (in Sigil), and can vouch that cover aspect ratio is xMid... etc . In Calibre viewer, cover is distorted (actually, all big pictures are distorted). About that I'm pretty sure - in my home computer cover aspect does not follow the window.

There must be some setting or tweak...

trav
travger is offline   Reply With Quote
Old 11-27-2013, 11:36 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The Calibre viewer is really an epub viewer, and any other format is silently converted to epub format before being displayed. Therefore you should not rely on the Calibre viewer to accurately show how any other format would be shown on a device that handles it natively. For mobi format you should use either the Kindle app or the Kindle Previewer to get a better feel for how it will be handled
itimpi is offline   Reply With Quote
Advert
Old 11-27-2013, 12:06 PM   #3
travger
Evangelist
travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.
 
travger's Avatar
 
Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
I know that all other formats are converted 'on the fly' .

I believe that when the epub problem is solved, mobi will behave too.
travger is offline   Reply With Quote
Old 11-27-2013, 10:19 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Covers for all non epub formats are always stretched to fit the window, this has always been the case.

For epub, depending on how the cover is coded in the epub, you may or may not get the cover stretching. Dont use sigil, do an epub to epub conversion in calibre setting preserve cover aspect ratio under epub output and you will see that the cover's aspect ratio is preserved when opening it in the viewer.
kovidgoyal is offline   Reply With Quote
Old 11-29-2013, 11:35 AM   #5
travger
Evangelist
travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.
 
travger's Avatar
 
Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
I did epub > epub, but cover + other pictures are still stretched (and yes, aspect ratio is ticked). I'm 99% sure that on my home PC (Win XP), I opened a epub in Calibre viewer, saw the distorted cover, opened with Sigil and pasted 'xMidYMid' instead of 'none'. After that cover did not stretch in Calibre viewer.

Also, everything I put in in Sigil was pretty much the same in Calibre viewer.

I do not see any place in settings that deals with cover (or other big pictures).
I'm setting up Calibre on the laptop and have no access to my home PC, and those stretched pictures really irritate me.
travger is offline   Reply With Quote
Advert
Old 11-29-2013, 11:58 AM   #6
travger
Evangelist
travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.
 
travger's Avatar
 
Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
I found at least one culprit: xMidYMid_meet. So the covers are now ok (at least in epub).
But I know that I have added big maps into epubs and they did not stretch with the window.
travger is offline   Reply With Quote
Old 11-29-2013, 11:59 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your big pictures likely have some css causing them to stretch like width:100% or something like that. Impossible to say without access to the file.
kovidgoyal is offline   Reply With Quote
Old 11-29-2013, 02:52 PM   #8
travger
Evangelist
travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.travger ought to be getting tired of karma fortunes by now.
 
travger's Avatar
 
Posts: 485
Karma: 270594
Join Date: Aug 2010
Device: palm tx, Windows7, Galaxy A5
Code:
  <h2 id="filepos847684"><img alt="bk2BIG" src="../Images/bk2BIG.jpg" /><br /></h2>
I removed width, and now the image is on the left (in Calibre viewer).

This one is centered, but stretched:

Code:
  <h2 id="filepos1724997"><img alt="bk3BIG" src="../Images/bk3BIG.jpg" width="100%" /><br /></h2>
Code:
h2 {
    font-size: 1.25em;
    line-height: 1.2;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1em;
    text-align:center;
    text-indent: 0;
    }
Sigil shows them correctly. I suspect that I may have user stylesheet activated at home, it overrides the Calibre defaults (only thing that I can think of).
travger is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Kindle Touch] No Image viewer and pdf viewer with white margins MaxPowerITA Kindle Developer's Corner 7 04-24-2012 05:27 AM
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc kovidgoyal Calibre 68 05-30-2011 08:46 PM
Troubleshooting Calibre Settings to replicate Amazon store settings? kdwosk Amazon Kindle 0 02-22-2011 02:34 PM
# user css for viewer.py/ ebook-viewer/ prs-650 tscamera Calibre 0 01-02-2011 06:28 PM
eBook viewer Print Preview settings not saved Agama Calibre 3 08-22-2010 08:04 PM


All times are GMT -4. The time now is 01:50 PM.


MobileRead.com is a privately owned, operated and funded community.