Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LaTeX: sync pdftex engine default imageresolution with pxunit
Closes: sphinx-doc#8253 The 'pxunit' key from latex_elements tell how to handle image dimensions specified in px units. pdftex has another setting \pdfimageresolution which is used when an image file does not provide readable or legit values for the x and/or y resolution. This commit syncs them: this way if an image will behave the same if loaded with no explicit size set, or with one such size is set using px unit, _and_ the graphics file does not have readable image resolution data (or that data matches the 'pxunit' setting). Works also with 'lualatex' as latex_engine. Does not work with 'xelatex' and 'uplatex'.
- Loading branch information