![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
EPUB -> AZW3 images get squished
Hey all, I'm trying to convert an EPUB file that uses small images for scene breaks. But when I convert to AZW3, those images turn huge (take up a whole page) and are squished all narrow. So it looks like a dark line down the centre of the screen.
Both the EPUB and AZW3 files look perfect when viewed using the Calibre Viewer, but when the file goes onto my Kindle (Paperwhite 3) the images get weird. I tried changing the height and width of the image to 50% but all that got me was a shorter line. The original image is 70 x 64 px. I tried converting to a MOBI file and the images displayed perfectly, but I'd like to figure out what's happening in the AZW3 conversion in case it comes up again. Anyone have any thoughts? (If you do, please explain as simply as possible, I am NOT the tech-savviest!) |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,903
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
<div class="_idgenobjectlayout1">
<div id="_idContainer009" class="calibre3"> <img alt="" class="_idgenobjectattribute" role="presentation" src="../images/00006.png"/> </div> </div> ._idgenobjectlayout1 { border-bottom-width: 0; border-left-width: 0; border-right-width: 0; border-top-width: 0; display: block; text-align: center; margin: 0; padding: 0; } .calibre3 { border-bottom-width: 0; border-left-width: 0; border-right-width: 0; border-top-width: 0; display: inline-block; height: 1em; width: 1em; margin: 0; padding: 0; } ._idgenobjectattribute { height: 50%; width: 50%; } Hope I've done that right. |
![]() |
![]() |
![]() |
#4 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,621
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
height or width (never both) should be auto; unless you are using correct ratio of px, so _idgenobjectattribute is wrong unless the image is 1:1 (square).
Also calibre3 likely should have no height or width setting, or should be scrapped entirely. |
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Removing the height + width from calibre3 made the image a lot bigger in the editor (maybe three times the size, very rough estimate). Also set width to auto in _idgenobjectattribute, since the image isn't a square.
Went ahead and put it on the kindle - now it displays properly (as in, not a squished-together dark line, I can see it's a little spiral thing) but it still takes up about half the page. |
![]() |
![]() |
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,903
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Also, what's the code look like in the ePub? |
|
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Set the width as 1em in _idgenobjectattribute, deleted the height. It worked! The image looks fine now, it's tiny the way it's almost certainly supposed to be.
It did make everything else using _idgenobjectattribute tiny as well, but I can live with that. Thank you so much! The CSS in the EPUB file; <div class="_idGenObjectLayout-2"> <div id="_idContainer007"> <img alt="" class="_idGenObjectAttribute-1" role="presentation" src="image/shutterstock_81955303-2_vine2.png"/> </div> </div> div._idGenObjectLayout-2 { text-align: center; } img._idGenObjectAttribute-1 { height: 100%; min-width: 100%; width: 100%; } |
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
So the thing is that this is STILL happening, as far as I can tell every time I'm converting EPUB to AZW3. And most of the time, I can't find any problem with the images or CSS.
Could it be an issue with my Kindle? I'm using an out of date firmware, 5.15.1.1. Or is there some Calibre setting that I might not have calibrated properly? I'd really like to not have to deal with this over and over again. :edited to add: I should mention that images DON'T get compressed when I convert from EPUB to MOBI. Which is part of what has me pretty sure the problem isn't the files/original CSS. Last edited by Siavahda; Yesterday at 03:28 AM. |
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,903
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When you look at the images of both the ePub and KF8 using the calibre editor, are you seeing the same resolution?
|
![]() |
![]() |
![]() |
#10 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
As far as I can tell, yes.
|
![]() |
![]() |
![]() |
#11 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,621
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
If you set width as a % rather than as px, then set height to auto. If it's px then you can still use auto or correct ratio of px.
|
![]() |
![]() |
![]() |
#12 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Often the height isn't set to px to begin with. And what I'm asking if there's any way to arrange things that I don't have to edit each file individually every time.
|
![]() |
![]() |
![]() |
Tags |
azw3, azw3 conversion, conversion |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion epub to AZW3 removes images | FelixKrull | Conversion | 1 | 10-17-2022 05:38 AM |
AZW3 to EPUB conversion: images cropped | dr_Fell | Conversion | 9 | 07-01-2018 05:17 PM |
EPUB to MOBI (AZW3). Black SVG images with CSS styles | uka | Conversion | 6 | 03-04-2018 09:50 PM |
Calibre Epub to AZW3: Scale images to fit Voyage/PW? | cw30000 | Conversion | 3 | 07-08-2017 12:10 AM |
Images going from ePub tu mobi or azw3 format | valegar44 | Kindle Formats | 2 | 09-09-2014 01:07 AM |