Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica Technical FAQs Services & Resources / Mathematica / Notebook Interface
-----
 /
Notebooks & Palettes
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*Application Packages
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

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






 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja]