Preserve Aspect Ration Stretches Image

Bug #1721864 reported by Ukie on 2017-10-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Setting "Preserve the aspect ratio of the image inserted as cover" for DOCX output does not preserve the aspect ratio but rather stretches it in the other direction.
See attached EPUB. After converting to DOCX, the image is stretched vertically.

Calibre 3.9 (Mac)
Word 2016 (15.38)

I also think it would be better to keep the aspect ratio by default for everyone. Why would anyone want to insert a distorted cover image?

Ukie (ukiews) wrote :
Ukie (ukiews) wrote :

For reference, I am using "Letter" size for the output.

Kovid Goyal (kovid) wrote :
  • book.docx Edit (430.9 KiB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
Changed in calibre:
status: New → Invalid
Ukie (ukiews) wrote :

Kovid, thank you for taking a look.
However, the image is still stretched/squished.

Look closely at the cover and compare it to the original. The image is squished. Notice that the magnifying glass is no longer a circle.

Changed in calibre:
status: Invalid → New
Ukie (ukiews) wrote :

I have tried this with multiple books and the result is the same.

Ukie (ukiews) wrote :

Attached is a comparative image.
On the right is the actual cover (proper aspect ratio)
On the left is what Calibre does (squashed)

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers