How do I reduce the size of notebooks that have graphics?
 A Mathematica notebook stores bitmap images of all graphics contained in the notebook. You can use the following package to remove these cached images and reduce the size of the notebook. http://support.wolfram.com/mathematica/interface/notebooks/files/RemoveImageCache.m Make this package available to Mathematica by following the instructions on this page. http://support.wolfram.com/mathematica/kernel/files/makingavailable.html Here is an example of using this package. It presumes that a notebook named graph.nb exists in your current working directory. In[1]:= |  |
In[2]:= |  |
Out[2]= |
 |
The RemoveImageCache command will generate an error message if any of the following are true: | | the source file doesn't exist, |
| | the source file is not a notebook, |
| | the destination file exists. |
You can use the OverWrite option to automatically overwrite files that already exist. In[3]:= |  |

Out[3]= |
 |
RemoveImageCache works by loading the entire notebook into the Mathematica kernel, removing the bitmap caches, and then writing the new notebook expression to the destination file. It is therefore limited by the memory resources available to the kernel. Download this FAQ as a Mathematica 5.2 Notebook
Questions or comments? Send email to support@wolfram.com.
|