Compress presentations
This page is shown in English for now.
Overview
Compress pictures, remove cropped image areas when they are no longer needed, and choose presentation compression settings before saving. This is useful for decks with large photographs or repeated media. The amount saved depends on the content and settings you choose.
Usage example
This C# example loads input.pptx, compresses the presentation, and saves it as compressed.pptx.
Use Aspose.Slides for .NET 26.11 or later. For setup, see Install Aspose.Slides for .NET.
using Aspose.Slides;
using Aspose.Slides.Export;
using Aspose.Slides.LowCode;
using var presentation = new Presentation("input.pptx");
Compress.CompressPresentation(presentation);
presentation.Save("compressed.pptx", SaveFormat.Pptx);
Measured on one synthetic detail-grid fixture: 584,030 → 128,323 bytes. Both renders use the same scale and 252 × 336-point frame. Compression removes the cropped margins and reduces the stored image to 525 × 700 pixels; size savings depend on the input.
FAQ
Is this a single whole-file optimization switch?
Aspose.Slides for .NET 26.11 adds Compress.CompressPresentation, which combines unused layout/master removal, embedded-font subsetting and 150-DPI picture compression. It permanently removes cropped picture areas. For picture-only processing, use Compress.CompressImages; for finer control, see the individual-picture compression example. Since version 26.11, the same whole-presentation call is also available in Java, Node.js via Java, Python via .NET and C++. The example and the links on this page are for .NET.
Does image compression change editable text or charts?
Picture compression targets picture data, not editable text or chart data. Review the images because resizing or recompression can reduce their detail.
How should I choose a resolution for presentation images?
Choose a target based on the displayed picture size and intended screen or print use. Keep more resolution for large displays, printing and detailed diagrams, and compare the rendered output before discarding the original.
Guides
Related feature: Remove unused masters, layouts and media.
Runnable .NET examples
Todos os recursos (English)