Free Support Forum -

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 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)



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.