I would like to define a maximum height and a maximum width for an image at same time. I suppose there must be a package to do this, but actually I'm unable to find it...
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
You can use the
The MWE is as follows:
Experiment with images with different aspect ratios to see the effect. |
|||||
|
|
If you load the package
and then use
In this way the image will be scaled at the maximum size so that its width and its height will not exceed the two stated dimensions and no distortion will be made. |
|||
|
|
|
You can use
|
|||||||
|


