In my document I have a lot of images. Some are small icons and others are massive screenshots. The images should display either
- Their full resolution if the image is smaller than the width of the document, or
- Scaled down to the width of the document itself if the image is larger.
Right now each image is scaled to the width of the document regardless of how big the original image is. This means that the smaller images are blown up and pixelated, but the larger images look great.
Thanks!
\if-statements. However things become complicated if, say, your images are of different sizes and resolutions and you have a specific output device. For example, what do you expect if there is a 600dpi, 22cm-wide figure and your printer is of 600dpi? Probably you can fit that 22cm into\textwidth(about 14cm by default) but it would not be a good ratio. Settingscale=.5, at least in this case, might be better. – Symbol 1 May 28 '15 at 16:13