|
|
#46 | ||
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 543
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
"Good enough" for what? "Good enough" for whom? You? I think that referring back to the beginning of the thread is instructive here. The problem I described was I want to the dimensions of an image to be defined be a specified height and proportional width UNLESS the window size made it impossible for those height-based dimension to fit on the screen without affecting the aspect ratio, in which case the image would be resized to maintain the correct aspect ratio. Your response was: Quote:
Now, I'm ALL ears if you have a way acheive what you said should be acheivable in your earlier post. Based on RbnJrg extensive and patient explanations, I am under the impression that there is no way to get ADE to have a fixed height ("make the image the height you want") but rescale (that is, override the fixed height) to fit the screen if it has to be reduced in width ("reduced so the aspect ratio is correct"). If I am wrong, no one would be happier to discover it than I. Again, limited by my amateur understanding, it appears that RbnJrg's max-height-based solution works perfectly in non-ADE environments. And, in an ADE environment, it will simple produce an image that is alway filling 100% of the width of the viewing window, but at least is not skewing the aspect ratio, provided that it is (like the image in the original example) naturally wider than it is tall. So, JSWolf, if you have an actionable code that—in ADE and all other ereading environments—will always accomplish a fixed height that will rescale if the screen is too small (which, as per the above response, you said is a live option), please share it. Last edited by ElMiko; 10-21-2025 at 11:33 AM. |
||
|
|
|
|
|
#47 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,446
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
So how do you update software that you have no control over when the device is brand new or the firmware is brand new? You don't. You hope whoever designed the eBook knows what he/she is doing. And having to code so it works on an older RMSDK is something eBook designers have to deal with. |
|
|
|
|
| Advert | |
|
|
|
|
#48 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 543
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
Or is it more reasonable to expect the consumer to either a) complain to the manufacturer, or b) buy a new pressure cooker? But beyond this little thought experiment, I think the more illuminating feature of this back and forth is that all of your contributions have been to say that everyone is doing it wrong; there hasn't been a single line of CSS that you have put forward as an alternative that would satisfy your criticisms while also addressing the topic at hand.... Of course, you don't owe anybody any solutions, particularly if you are a paid ebook creator who has a proprietary interest in maintaining a competitive edge. I couldn't really hold that against you. But then responding to help queries just to say that everyone's code is wrong without offering your own as an alternative seems like a bizarre way to participate in a help forum/thread. It makes more sense to just let everyone keep pumping out comparatively bad ebooks, while you reap the professional rewards for being the only that does it right... right? Last edited by ElMiko; 10-22-2025 at 03:28 AM. |
|
|
|
|
|
|
#49 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,774
Karma: 178402710
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Do you also whinge that all web pages do not render properly on Netscape Navigator 1.0?
|
|
|
|
|
|
#50 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 543
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Reluctantly reviving this thread to raise a weird behavior related to code discussed here. Namely:
Code:
.autoIMG {
text-indent: 0;
text-align: center;
max-height: 32em;
width: auto;
margin: 0;
}
.autoIMGimage {
max-width: 100%;
max-height: 32em;
margin: 0 auto;
display: block;
}
BUT... When viewed in the ReadiumReader plugin, the max-height limit is never recognized (see ImageScale-RP attached)! Does anyone know if this is a plugin error? Maybe I imagine it, but I was under the impression that the Readium plugin was an appropriate proxy for KOReader. |
|
|
|
| Advert | |
|
|
|
|
#51 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,923
Karma: 9553607
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
You shouldn't define a height in terms of "em". What if the ereader's screen height is lower than -for example- 32em? Define the height in terms of "%" of the parent block, or better yet, in terms of "vh". According to the size of your image, a good value would be "max-height: 90vh".
Quote:
|
|
|
|
|
|
|
#52 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 543
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
But also do you know why the max height isn't being honored in the Readium plug-in? |
|
|
|
|
|
|
#53 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,446
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#54 | |||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,923
Karma: 9553607
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Quote:
|
|||
|
|
|
|
|
#55 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,774
Karma: 178402710
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
|
|
|
|
#56 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,446
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It's also not appropriate for older versions of ADE/RMSDK.
|
|
|
|
|
|
#57 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 543
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Quote:
Do you know which of the three plugins (Bibi, EpubJS, and Readium) are the closest to KOreader? |
|
|
|
|
|
|
#58 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,923
Karma: 9553607
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
None. All of them are epub3 ereaders and KOReader is an epub2 one that supports some css3 properties. But if you employ only css 2.1, the three plugins will display something similar to KOReader (that is a good epub2 ereader, better than ADE).
|
|
|
|
|
|
#59 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 543
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
|
Did your Readium plugin work with the file I attached, or did you create a new test case from scratch using the code? Because if the former, then that's really weird. If the latter, I'd love to see if there were any differences in the rest of the code that would account for it.
|
|
|
|
|
|
#60 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,923
Karma: 9553607
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
|
|
|
![]() |
| Tags |
| image height, image scaling |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| line-height is fixed? | nano5 | Viewer | 5 | 01-25-2025 08:01 AM |
| Image height | JSWolf | KOReader | 6 | 03-29-2021 04:29 PM |
| QT5 and image height | Turtle91 | Sigil | 23 | 02-21-2013 01:44 PM |
| Image height in div | soparch | ePub | 5 | 03-29-2012 01:18 PM |
| What image height causes images to fill the screen? | karenbryant | ePub | 7 | 01-04-2012 04:23 AM |