Answers.Body: <p>This sounds like a problem with the CSS that Calibre is generating for the epub file. Without seeing the code, it's impossible to say for sure, but my guess is that it's got the width and height for images both set to 100%, which would distort the images in the way you're describing. The answer is to simply remove the height declaration, which will make the images full width of whatever height is appropriate given their aspect ratio.</p>
  
  <p>I don't use Calire, so I can't tell you how to use that tool to do this, but if you're comfortable editing HTML and CSS, all you'll need to do is crack open the epub file (rename it from .epub to .zip, then unzip it), find the images being affected in the HTML, figure out which selectors the CSS is targeting them with, and go change the relevant CSS declarations.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-03-26T19:22:23.890Z
Answers.Text: the css gives the exact size of each image, e.g - .calibre21 { width:596px; height: 367px;}, but I don't think any image was 596px wide. (The word doc's in the office.)
Answers.UserDisplayName: order-from-chaos
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-03-26T19:23:51.773Z
Answers.Text: In that case, just remove the height. I would also suggest making the width 100% rather than a pixel width.
Answers.UserDisplayName: Tom
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-03-26T19:25:08.047Z
Answers.Text: OK will try that and let you know.
Answers.UserDisplayName: order-from-chaos
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-03-26T20:00:52.750Z
Answers.Text: great, glad it worked out!
Answers.UserDisplayName: Tom
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-03-26T18:00:06.913Z
Answers.LastActivityDate: 2014-03-26T18:00:06.913Z
Answers.UserDisplayName: Tom
Answers.Body: <p>An alternative answer to Tom's proposition to modify CSS:</p>
  
  <p>I didn't want to manually change the HTML/CSS files. I have an original LaTeX file, that I convert into HTML/CSS using <code>htlatex my_file.tex</code> and then I convert it into mobi using Calibre. My images were distorted too.</p>
  
  <p>One solution to keep all the process automatic is to decrease the size of the original pictures, e.g., using <code>convert my_pic.png -resize x500 my_pic.png</code>. It works for me.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-17T14:33:45.967Z
Answers.LastActivityDate: 2015-11-17T14:33:45.967Z
Answers.UserDisplayName: Antonin
Body: <p>I'm experimenting with Calibre. I have a Word document, with several JPEG images inserted, each of them 537px wide. I exported the document as html, zipped everything and re-opened in Calibre. </p>
  
  <p>After conversion, in the Calibre reader the images are squashed horizontally. 
  Is there anyway to have them scale proportionally?</p>
  
  <p>Also, the cover - a PNG - does not scale proportionally (e.g. when the TOC is opened, it squashes horizontally too).</p>
  
  <p>thanks </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-03-26T17:27:45.903Z
Comments.Text: In to which format are you converting your document?
Comments.UserDisplayName: Sekhemty
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-03-26T19:15:00.063Z
Comments.Text: I'm saving as epub.
Comments.UserDisplayName: order-from-chaos
Tags: <conversion><calibre>
Title: How to avoid ebook image distortion
UserDisplayName: order-from-chaos
ThreadText: # How to avoid ebook image distortion
  
  (Asked by: username_0 on 2014-03-26)
  
  I'm experimenting with Calibre. I have a Word document, with several JPEG images inserted, each of them 537px wide. I exported the document as html, zipped everything and re-opened in Calibre.
  
  After conversion, in the Calibre reader the images are squashed horizontally.
  Is there anyway to have them scale proportionally?
  
  Also, the cover - a PNG - does not scale proportionally (e.g. when the TOC is opened, it squashes horizontally too).
  
  thanks
  
  **Tags:** conversion, calibre
  
  > **Comments:**
  > **username_1**: In to which format are you converting your document?  
  > **username_0**: I'm saving as epub.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2014-03-26. Score: 1 | Accepted answer
  
  This sounds like a problem with the CSS that Calibre is generating for the epub file. Without seeing the code, it's impossible to say for sure, but my guess is that it's got the width and height for images both set to 100%, which would distort the images in the way you're describing. The answer is to simply remove the height declaration, which will make the images full width of whatever height is appropriate given their aspect ratio.
  
  I don't use Calire, so I can't tell you how to use that tool to do this, but if you're comfortable editing HTML and CSS, all you'll need to do is crack open the epub file (rename it from .epub to .zip, then unzip it), find the images being affected in the HTML, figure out which selectors the CSS is targeting them with, and go change the relevant CSS declarations.
  
  > **Comments:**
  > **username_0**: the css gives the exact size of each image, e.g - .calibre21 { width:596px; height: 367px;}, but I don't think any image was 596px wide. (The word doc's in the office.)  
  > **username_2**: In that case, just remove the height. I would also suggest making the width 100% rather than a pixel width.  
  > **username_0**: OK will try that and let you know.  
  > **username_2**: great, glad it worked out!  
  
  ---
  
  ### Answer by username_3 on 2015-11-17. Score: 0
  
  An alternative answer to Tom's proposition to modify CSS:
  
  I didn't want to manually change the HTML/CSS files. I have an original LaTeX file, that I convert into HTML/CSS using `htlatex my_file.tex` and then I convert it into mobi using Calibre. My images were distorted too.
  
  One solution to keep all the process automatic is to decrease the size of the original pictures, e.g., using `convert my_pic.png -resize x500 my_pic.png`. It works for me.
  
  
  ---
  
  