View Single Post
Old 03-19-2023, 03:40 AM   #10
feklee
Member
feklee began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2013
Device: Kindle M2L4EK
Quote:
Originally Posted by kovidgoyal View Post
You would need to remove the width attribute from all img tags which can be done via the Transform HTLM tab of the Look & feel section of the conversion dialog.
Thanks for the suggestion. Here is an example of an image that gets heavily stretched vertically across an entire page, minus caption (code reformatted by me):

Code:
<div class="img_wrap" id="div12">
  <div class="block_51" id="c01-fig7">
    <div class="squeeze squeeze51_0">
      <img
        alt=""
        class="squeeze-epub"
        src="images/Abra_9781101905050_epub3_010_r1.jpg"
        style="width:100%;"
      ><img
         alt=""
         class="squeeze-amzn"
         height="373"
         src="images/Abra_9781101905050_epub3_010_r1.jpg"
         width="284">
    </div>
  </div>
  <p class="caption" id="p60"> eirmod tempor invidunt ut labore et dolore </p>
</div>
What I tried as transformation rule:


However, all that this does is create two equally stretched images. First, I tried just removing width, and when that didn't work, I just remove pretty much everything.

(note that I'm fine exporting to mobi, but I'm also happy to continue testing Calibre in case that helps)
Attached Thumbnails
Click image for larger version

Name:	rule.png
Views:	232
Size:	49.9 KB
ID:	200465  
feklee is offline   Reply With Quote