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

Free Support Forum - aspose.com

Dotnet core 6 Breaking change aspose function ConvertToPNGMemoryStream in docker (debian 11)

Hello,

With the dotnet 6 core there is a new breaking change for aspose function :

public MemoryStream ConvertToPNGMemoryStream(); which use Gdip

Actually I use a workaround in my docker file I add these line when I create the image :

FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim AS base
RUN apt-get update
RUN apt-get install -y apt-utils
RUN apt-get install -y libgdiplus
RUN apt-get install -y --no-install-recommends libc6-dev

and in my csproj : I enable a new item group with this parameter :

 <ItemGroup>
    <RuntimeHostConfigurationOption Include="System.Drawing.EnableUnixSupport" Value="true" />
</ItemGroup>

Actually it work but for how many time ? Is it planned to solve the probleme ?

Thanks,
Nicolas

@NNO

We have already logged an issue to test Aspose.PDF functionality under .NET 6.0 in Windows and non-Windows environments as PDFNET-50918. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.