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

Free Support Forum - aspose.com

Slide.GetThumbnail method fails in docker linux


Creating slide thumbnail is failing in docker. More OS details are here

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION="10 (buster)"
// aspose.slides : 21.5.0
// docker OS {Unix}
====Docker file content====
FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base
RUN apt-get update -y && apt-get install -y apt-utils
RUN apt-get install -y libgdiplus && apt-get install -y libc6-dev

c# code

using (var p = new Presentation("/app/ppt/SlideThumbnailIssue.pptx"))
	foreach (var sld in p.Slides)
			var c = sld.GetThumbnail(1, 1);			
		catch (Exception ex)


PPT: https://bcg01.egnyte.com/dl/jAUdc41Sq3

Link will be deactivated after few days.

Sarvesh Mishra

Thank you for the query. Could you share your error stack trace, please?


Here is the stacktrace
Message: A generic error occurred in GDI+.

at System.Drawing.SafeNativeMethods.Gdip.CheckStatus(Int32 status)
at System.Drawing.Graphics.FillPath(Brush brush, GraphicsPath path)
at .(GraphicsPath , Brush , Color , Single , Graphics )
at .(GraphicsPath , PointF , Brush , Pen , ​ , ​ , Graphics )
at .(String , RectangleF , ​ , ​ )
at .​ (String , RectangleF , ​ )
at Aspose.Slides.BaseSlide.(​ )
at Aspose.Slides.Slide.(​ , IShapeFrame , `2 , ​ , InterruptionToken )
at Aspose.Slides.Slide.GetThumbnail(Size imageSize)
at Aspose.Slides.Slide.GetThumbnail(Single scaleX, Single scaleY)
at DockerAspose.Controllers.WeatherForecastController.Get() in C:\Users\xxxxxx\source\repos\DockerAspose\DockerAspose\Controllers\WeatherForecastController.cs:line 173

Thank you for the additional information. I logged the issue in our tracking system with ID SLIDESNET-42636. Our development team will investigate this case. I will inform you of any progress.

@Andrey_Potapov Can we directly track these issues using tracking Id?
Can you tell by when this issue will be resolved? Is there any SLA defined for accepted issues?


You can see the issue status at the bottom of this thread.

The issue investigation will begin at week 2021/26.

Our development team does its best for our clients and customers on a first-come, first-served basis. But you may escalate the priority of the issue by contacting Paid Support.

The issues you have found earlier (filed as SLIDESNET-42636) have been fixed in this update.