Skip to content

Latex: Figures with no size defined get overscaled #8253

@Blendify

Description

@Blendify

Describe the bug
When generating a latex/pdf output figures get scaled up too much if the they have no size defined. Instead the image should only be scaled to its natural size (the size in px from the image file) or scaled to the page width if the image file size is too big.

To Reproduce
Rst file

.. figure:: /some/image.png

   Caption.

.. figure:: /some/image.png
  :width: 200px

   Caption.

image.png is 200px wide.

Expected behavior
The results should be the same for the two images

Your project
https://svn.blender.org/svnroot/bf-manual/trunk/blender_docs/

Screenshots
If applicable, add screenshots to help explain your problem.
image

Environment info

  • OS: Ubuntu
  • Python version: 3.8
  • Sphinx version: 3.2.1
  • Sphinx extensions: none
  • Extra tools: texlive-xetex latexmk

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions