Free Support Forum - aspose.com

Slide.GetThumbnail method fails in docker linux

Hi,

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_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“https://www.debian.org/support
BUG_REPORT_URL=“https://bugs.debian.org/

// aspose.slides : 21.5.0
// docker OS {Unix 5.4.72.2}
====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)
{
	try
	{
		var c = sld.GetThumbnail(1, 1);			
	}
	catch (Exception ex)
	{
		;
	}
}

}

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

Link will be deactivated after few days.

Regards,
Sarvesh Mishra

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

Hi,
@Andrey_Potapov

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

@mishra.sarvesh,
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?

@mishra.sarvesh,

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.