We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Font Drift when Converting Presentation Slides to Pictures

222.jpg (153.1 KB)
I follow the demo:

foreach (ISlide sld in pres.Slides)
    string filePath = Path.Combine(fileDirect, "Image" + FormatIntToLengthFour(i) + ".jpg");
    float ScaleX = (float)(1.0 / pres.SlideSize.Size.Width) * imageWidth;
    float ScaleY = (float)(1.0 / pres.SlideSize.Size.Height) * imageHeight;

    Bitmap bmp = sld.GetThumbnail(ScaleX, ScaleY);
    bmp.Save(filePath, System.Drawing.Imaging.ImageFormat.Jpeg);

it doesn’t work well.111.jpg (147.9 KB)
111.jpg (148 KB)
222.jpg (153 KB)

It runs in Linux system.

Thank you for contacting support.

Please check your results using the latest version of Aspose.Slides if it is possible. Also, please make sure the fonts used in your presentation have been installed on the operating system, or use loading specific fonts as external ones, for example:


Documents: Custom Font
API Reference: FontsLoader.LoadExternalFonts method

If the issue persists, please share the following data and information:

  • presentation file (you can zip the file and upload it here)
  • Linux distribution where the code was executed
  • .NET target platform in your app
  • Aspose.Slides version you used

We will do our best to help you.

englishPPtest.zip (578.4 KB)
ubantu 18
.net core 2.0
Aspose.Slides version:22.5

I tried this “FontsLoader.LoadExternalFonts” but it doesn’t work.

Thank you for the additional information. I’ve reproduced the problem with displaying text when converting slides to images and added a ticket with ID SLIDESNET-43246 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate this case. You will be notified when the issue is resolved.

Thank you!I’ll keep waiting for the best results!

Our development team will do their best to resolve the issue. Thank you for using Aspose.Slides.

The issues you have found earlier (filed as SLIDESNET-43246) have been fixed in Aspose.Slides for .NET 22.8 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.