View Single Post
Old 08-28-2015, 08:31 PM   #3
mattmc
Connoisseur
mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.
 
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
Quote:
Originally Posted by KevinH View Post
Old mobi is based on a subset of html 3.2. According to that spec, this is done by adding inline in the image tab a height and width which is always interpreted as pixels.

So try something along the lines of having both

height=100 width=50

as attributes of the img tag.
Thanks, that's good, precise information of the kind I was looking for. Now, check it out:

I tried using the width and height attributes inline on the <img> tag, and it didn't seem to do anything (on my K1). I tried both increasing and reducing the image size, no dice.

Check out my code, and what it resulted in based on Unpack:

Code:
<!-- Original: -->
<h1 class="someClass"><img class="_idGenPageitem-1" src="image/102249.jpg" width="50" height="50" alt=""/></h1>

<!-- Unpacked: -->
<h1 width="0" align="center"><font size="+3" face="Adobe Garamond"><img src="Images/image00851.jpeg" width="50" height="50" alt=""/></font></h1>
So the width/height attrs are actually coming through, at least. Do we know that this works on K1? Any ideas of what else could be wrong?

Thanks!

Edit: Also tried this, with no dice: (no <h1> and all that)
Code:
<img align="center" src="Images/image00852.jpeg" width="50" height="50" alt="" />

Last edited by mattmc; 08-28-2015 at 08:43 PM.
mattmc is offline   Reply With Quote