View Single Post
Old 10-31-2019, 09:08 AM   #49
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by slowsmile View Post
@Hitch....

I'm not saying it will not work, but because of the larger sized HDV requirement for images then on a KF7 display your image will go to full screen width by default because of the rather large image sizes required for HDV. The HDV image sizing compliance is shown below:
  1. For 50% screen width, your image must be at least 600 x 900 px in size.
  2. For 75% screen width, your image must be at least 900 x 1350 px in size.
  3. For 100% screen width, your image must be at least 1200 x 1800 px in size.
The above HDV pixel sizings MUST be adhered to for all images on KFX devices or you will get image degradation. There's really no wiggle room here.

Let's take an example. Say you want to insert a banner-like image to be displayed at 75% screen width and you insert such an image that is in compliance with HDV for KFX for an image that is 75% of screen width. That means that your image used must be 900 x 1350 pixels in size for HDV compliance. The width value is the all-important value here. And if you see that image after running my AddKindleMediaQueries then it will look OK on KFX but, because that image is stored as 900 x 1350 pixels in the epub, the image display on your KF7 device will just default to full-screen width which is not what you want -- you want 75% screen width.
Caveat: I haven't tested any of this, certainly not recently. The demise of CS has left those of us still standing insanely busy, so testing is not really in our schedule these days, sadly (I always thought it was the fun part of the gig!). Having disclosed that:

So...you put an image in your file, that's 900x1350, right? That's the 100% size of the image, correct? For the KF8 coding, you tell it to display at 75% of the width of the screen, not to be confused with 75% of the width of the image. Right? So, on a large-enough KF8 device, say a Fire 10", it would display 75% of the relevant screen width. Whatever the pixels may be.

We run your plugin, or do our own math...and that would get us what coding, precisely, from the plugin, William, for KF7? Would the KF7 portion instruct the device to display that at 1350px wide? Or 75% of 1350px wide?

What if we don't use the plugin, but use the same coding, and write our own width display coding, and tell the CSS for "mobi" or 'mobionly" that we want it to be, say...what, 400px wide? (I also don't recall all the old KF7 screensizes off the top of my head, but the first-gen was 600x800, so I'm going with ~75% of the old 600px width). (I agree that the plugin may need alteration, or perhaps, a 2nd gen version, that does additional calculation--not what's the % size of the image, but what's the relevant size of the image on a KF7 device? I don't believe, sadly, that we have individual mqs for unique devices, eg. the DX versus the K1, etc., but...)

So, as always, we have KF8 coding (and presumably KFX) for the full size and KF7 set in pixels, using hidden to hide one from the other.

Do you think that the pixel dimensions are going to interfere with the KF8 coding, or...?

I guess maybe it's been too long since I had my own hands in the code, and did some testing, so I'm having difficulty envisioning the issue here. Yes, the HDX sizes are big, but at my firm, we use images that are those sizes and more, sometimes.

(SIGH). I guess this means I have to do some testing. Dammit. I barely have enough time to shower and get myself dressed these days.


Hitch
Hitch is offline   Reply With Quote