Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Jun 18, 2024 10:26 am

Hi, I am Sungwon.

When you click 'File' -> 'Save As' on PowerPoint and select a folder, a window that specifies the file name and format pops up. If you click "Tools" at the bottom right of the window, there is a "Picture Compression" menu at the bottom, where you can reduce the total file size by compressing the picture size.

Is there a method for picture compression among the methods of 'Spire Presentation for Java'?

SungwonShin
 
Posts: 12
Joined: Thu Dec 28, 2023 2:24 am

Wed Jun 19, 2024 7:27 am

Hello,

Thanks for your inquiry.
Sorry, our product does not support compressing images in documents when saving them. As a solution, you can extract the images from the document and compress them using Java's built-in image processing library (such as javax.imageio) or other third-party libraries, and then replace the original images with the compressed images. Please refer to the following tutorials for extracting and replacing images. If you have any questions, please feel free to contact us.
Extract Images in PowerPoint Documents: https://www.e-iceblue.com/Tutorials/Jav ... -Java.html
Replace an Image in PowerPoint in Java: https://www.e-iceblue.com/Tutorials/Jav ... -Java.html

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Presentation