View Single Post
Old 08-15-2017, 01:47 AM   #67
slowsmile
Witchman
slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.slowsmile ought to be getting tired of karma fortunes by now.
 
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
Hitch...My thanks for confirming that the plugin works on your K2 device.

Hitch said..

Quote:
"As William seems very worried about the plugin, on a real device, I've tested it. The code seems to work fine--it outputs perfectly good KF7/KF8 coding. To be honest, I confess that I don't understand why you think, William, that the book on a real device would perform worse than on the emulator--I thought that the idea was that the emulator was performing worse than the real device--but I'm here to tell you that it's performing fine, on both, and the KF7 images look exactly as expected."
Well Hitch the reason might be because I think that we both might have missed something. We have both perhaps assumed that the other was formatting their percentage image line in the same format. But the truth of what I suspect is that you may have been formatting all your test epubs for KP and KP3 in standard image percentage formatting(just using the height/width attributes in an image tag) whereas I have been formatting all my height/width percentage values in the image tag as an inline style viz. in other words -- concerning the the strange and conflicting KP and KP3 problems -- we might have unknowingly been formatting the percentage values in different ways which might well have caused different results or outcomes for each of us on KP and KP3 eInk emulations.

If what I'm saying is true you wont even need to use my plugin to prove this. And I think we are both agreed that if you format an ebook image in standard formatting with percentage values then it will not display on a KF7 device.

I've even prepared a simple epub test file for you as an attachment below to make it easier for you to see this for yourself. This epub contains my image styling (using inline styling with % values in the image tag) just for one image. All you or anyone else has to do is run this epub on KP and KP3 eInk emulations and you will see the image above the title displayed as plain as day(which is what I am seeing). This proves to me that if you format your image using this inline style method then that image will be displayed on all KF7 emulations. Please also note that this styling also works for all KF8 emulations as well.

And if you or anyone else confirms my findings then that also would seem to further indicate that media queries and dual formatting are completely unnecessary for KF7 and KF8 images. All you really have to do is format a single image line using % values for height and width inside an inline style within an image tag and the image will appropriately display on all KP and KP3 eInk emulations and will also display correctly on all KF8 emulations as well.
Attached Files
File Type: epub Test2.epub (384.4 KB, 156 views)

Last edited by slowsmile; 08-15-2017 at 07:53 AM. Reason: your
slowsmile is offline   Reply With Quote