img_dpi
(mPDF ≥ 1.0)
img_dpi – Specify size conversion for images using pixels
Description
void img_dpi
Specify how to convert image sizes specified in px
units (pixels). As a print medium, PDF documents do not have any
inherent size for pixels. Width and height values of images set in pixels need to be converted to a real length. The
dots-per-inch (dpi) affects the conversion from pixels for images; other objects using pixels as a length, are set by a
separate variable $dpi
Note: It is recommended that the values for $dpi and $img_dpi are the same.
Note: This variable can be changed as any configuration variable
Values
$img_dpi
Values
- INTEGER : set conversion for pixel - dots per inch
Default: 96
Changelog
Version | Description |
---|---|
1.0 | Variable was added. |
See Also
- dpi - Specify conversion for other values set in pixels