01-01-2019, 03:53 PM | #1 |
Zealot
Posts: 125
Karma: 1370
Join Date: Mar 2012
Device: none
|
Correcting image sizes from Sigil to Kindle Previewer
I have a large project which was originally done in InDesign. I needed to create a reflowable .mobi file. After realizing doing this thru InDesign there were too many nested images to deal with so I just exported an HTML file from InDesign and did the formatting in Jutoh.
Jutoh did a great job re nesting the images but I did have to correct alot of styling which exported incorrectly but overall I was pretty satisfied. Now came the bad part as converting the html to an epub using Sigil generated alot of errors I was able to correct and get an errorless epub that looked pretty good but the final file the client wanted was a mobi so I opened in Calibre and converted the epub over to a mobi. The result is the images are crushed to a point where they are almost 1/2 of what they looked like in the epub so what I'm asking is whats the best way to get the images as close in size as the epub in this mobi file? see images in attached files. thx R Last edited by ralphiedee; 01-01-2019 at 03:56 PM. |
01-01-2019, 04:35 PM | #2 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Since you are doing the conversion with Calibre, you might want to ask that question in their forum. Especially since Calibre has a large number of conversion options that may or may not be in play when converting to mobi.
Last edited by KevinH; 01-01-2019 at 04:39 PM. |
Advert | |
|
01-01-2019, 04:38 PM | #3 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Or try with Kindle Previewer to do the conversion straight from the epub. Also do you want an old style .mobi or a .azw3 (more like an epub but still reflowable)?
|
01-01-2019, 09:41 PM | #4 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@ralphiedee...
"...so what I'm asking is whats the best way to get the images as close in size as the epub in this mobi file?" This is a well known problem in Kindle mobi files where image dimensions are altered at random for all images that are smaller than max page/screen size. Here are some practical ways to resolve this problem. You could manually code each image in the epub as a percentage of current device screen width -- example shown below: <p class="centered"><img alt=" " src="../Images/Your_Image.jpeg" style="width: 40%;height: auto;"/></p> Or you could use Sigil's CustomCleanerPlus plugin and just select the "Reformat smaller images..." option which will automatically convert all image formatting in the epub to percentage format values(as shown above). After conversion, you should be able to further fine tune individual image size by altering the "width" value as needed in the epub. Last edited by slowsmile; 01-01-2019 at 10:58 PM. |
01-02-2019, 06:26 PM | #5 |
Bibliophagist
Posts: 35,400
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
@slowsmile: Unfortunately, the .mobi format does not allow for image sizes in percents. Pixels only need apply.
|
Advert | |
|
01-03-2019, 04:11 AM | #6 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@DNSB...
"...Unfortunately, the .mobi format does not allow for image sizes in percents. Pixels only need apply." True enough, but KF8 image format should always use percentage values. So if you want correct image displays on both KF7 and KF8 devices then just use my AddKindleMediaQueries plugin. This plugin automatically dual formats all images in you epub for both KF8 devices(as percentage screen values) as well as for KF7 devices(as absolute pixel values). Which image format is actually displayed for the current Kindle device is decided by the media queries in the css. Last edited by slowsmile; 01-03-2019 at 04:22 AM. |
01-03-2019, 12:37 PM | #7 | |
Bibliophagist
Posts: 35,400
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
OTOH, one friend of mine loves your AddKindleMediaQueries plugin for mostly automating a task that she used to handle by copy/paste/editing. Some editing is still required but 90% is automated. |
|
01-03-2019, 12:54 PM | #8 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
There is no reason to upload a "mobi" so-called to the KDP platform. Since January 2012 I have uploaded every book as a validated epub built by Sigil. If one refrains from including a cover image, no problem has ever arisen.
The vast majority of my images are 800 pixels wide, and I include a width="100%" instruction in the html. There is no problem with the older Kindle devices because their ruling motto is to enlarge all images to full width anyhow. Can you not persuade your client/friend/whatever to upload an epub? Tell him/her/it that all the best people are doing it! |
01-03-2019, 03:56 PM | #9 |
Zealot
Posts: 125
Karma: 1370
Join Date: Mar 2012
Device: none
|
Hmm, alot to report back here. Original post was about getting images to be the same size dimensions as the epub file as exporting thru Calibre to a mobi gave me tiny images. So I did as suggested and coded each image as percentage inside Sigil and made the new Kindle previewer convert the epub to the mobi file and the images look fine. But then I decided to convert the epub to mobi in Calibre and it crushed the images back to where I was before.
All of this is for a client of mine and having gotten so sidetracked I also realized that the file size was 127mb. Way too big to upload to KDP anyway. Not gonna lose sleep over this as this book is 700 pages, but I learn something everyday. R |
01-03-2019, 08:35 PM | #10 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@Notjohn...
"The vast majority of my images are 800 pixels wide, and I include a width="100%" instruction in the html. There is no problem with the older Kindle devices because their ruling motto is to enlarge all images to full width anyhow. " The OP's problem really has nothing to do with only ever using full width or max page images throughout your epub as you suggest. So your suggestion of always loading all epub images as width="100%" -- as full page/screen size images -- is really not a solution at all and is quite irrelevant, since most people on this thread have been talking about the problem of accurately loading ebook images with dimensions that are all less than max page size. An example, to help your own apparent misunderstanding, is how would you accurately format a small logo-size image in your epub that is not width="100%" and not max page size so that it's dimensions are rendered and displayed as accurately as possible on all Kindle KF7 and KF8 devices?? That's the problem that is currently being discussed on this thread. Last edited by slowsmile; 01-03-2019 at 08:43 PM. |
01-04-2019, 01:43 AM | #11 | |||
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Quote:
@notjohn: your constant haranguing of people to "just use an ePUB" does NOT solve the image issue, by any means. You're not addressing the problem by saying that. Anyone with images that are NOT the full-width of a screen, nor intended to be, really need to be addressed with a proper MOBI and media-queries. An ePUB will NOT work in that circumstance. I understand why you say it, but you are endeavoring to simplify something that at the moment, should not be simplified, not for professional results. Hitch |
|||
01-07-2019, 10:55 AM | #12 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
"Good enough for government work," as we used to say in the defense industry (and probably still do). |
|
01-07-2019, 09:41 PM | #13 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
From Sigil to Kindle Previewer Conversion Problems! | oiver55 | Sigil | 33 | 03-09-2015 07:57 PM |
Kindle Touch image sizes | talchas | Amazon Kindle | 0 | 11-23-2011 02:47 PM |
Kindle Automatically Doubles Image Sizes | wallcraft | Amazon Kindle | 5 | 04-01-2011 11:59 AM |
Image sizes in Kindle | chrisborg | Amazon Kindle | 2 | 05-17-2010 01:49 AM |