Spire.Presentation 10.12 supports compressing images

Spire.Presentation 10.12 supports compressing images

2025-12-29 07:08:25

We're glad to announce the release of Spire.Presentation 10.12. This version supports compressing images and configuring output image DPI when converting slides to images. Additionally, several issues that arose when converting PPTX to PDF and loading PowerPoint documents have been successfully resolved. Check below for the details.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-2994 Added support for compressing images.
Presentation presentation = new Presentation();
presentation.LoadFromFile(inputFile);

foreach (ISlide slide in presentation.Slides)
{
    foreach (Spire.Presentation.IShape shape in slide.Shapes)
    {
        if (shape is SlidePicture)
        {
            SlidePicture ps = shape as SlidePicture;
            // Compress the image: remove cropped areas (true) and set target resolution to 150 DPI (commonly used for web display)
            ps.PictureFill.CompressImage(true, 150f);
        }
    }
}
presentation.SaveToFile(outputFile, FileFormat.Pptx2013);
New feature SPIREPPT-3004 Added support for configuring output image DPI when converting slides to images.
presentation.SaveToImage(int pageIndex, int dpiX, int dpiY);
Bug SPIREPPT-3016 Fixed an issue where bullet points were rendered incorrectly after converting PPTX to PDF.
Bug SPIREPPT-3019 Fixed an issue where content was clipped after converting PPTX to PDF.
Bug SPIREPPT-3031 Fixed an issue where slide backgrounds were displayed incorrectly after converting PPTX to PDF.
Bug SPIREPPT-3048 Fixed an issue that loading a PPTX document threw a “Object reference not set to an instance of an object.” exception.
Click the link to download Spire.Presentation 10.12:
More information of Spire.Presentation new release or hotfix:

Coupon Code Copied!

Christmas Sale

Celebrate the season with exclusive savings

Save 10% Sitewide

Use Code:

View Campaign Details