graphicscache – Cache includegraphics calls
This LaTeX package provides caching of \includegraphics calls, with several useful effects:
- Recompilations are much faster (10x speedup observed).
-
Images can be postprocessed with ghostscript
before inclusion, thus:
- Automatic downscaling to specified DPI
- Automatic JPEG compression with configurable quality
- Much smaller files (e.g. 10MB instead of 150MB)!
Note: Due to the one-by-one invocation of pdflatex and ghostscript for each graphics element, the first compilation is typically slower than usual.
Note: graphicscache needs the \write18 call (also called shell escape). This is a security risk if you have untrusted TeX sources.
graphicscache supports pdfLaTeX and LuaLaTeX; XeLaTeX is not supported.
Sources | /macros/latex/contrib/graphicscache |
Documentation | |
Repository | https://github.com/xqms/graphicscache |
Version | 0.4 2022-12-20 |
Licenses | 3-clause BSD License |
Copyright | 2018–2021 Max Schwarz |
Maintainer | Max Schwarz |
Contained in | TeX Live as graphicscache MiKTeX as graphicscache |
Topics | Graphics Conditional compilation Compilation External code |
Download the contents of this package in one zip archive (178.7k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
Community Comments