Customizing images
Before you add an image such as a photo to your document, it’s best to preprocess it using graphics software. LaTeX isn’t designed for image post-processing. However, there are some basic ways to customize how an image is included.
How to do it...
The graphicx package allows customization via simple options:
- You can scale an image by specifying a scaling factor, such as the following:
\includegraphics[scale=0.5]{filename}
- You can resize an image to a fixed width using width and height options, as in the previous recipe.
- You can rotate an image by specifying an anti-clockwise rotation angle, like so:
\includegraphics[angle=90]{filename}
- You can rotate around a particular origin by adding a key, such as c for the center, B for the baseline, and l, r, t, and b for left, right, top, and bottom, respectively. A combination would be understood, such as tl for the top-left corner. The default rotation point is the center of the image...