We have .NET Core
application which is hosted under Linux based Docker container. System.Drawing
library wasn’t working here so we needed to installed libpng
with command apt-get install -y --no-install-recommends libgdiplus libc6-dev
.
It sorted out image problem but we can see lots of warnings in CloudWatch like libpng warning: iCCP: known incorrect sRGB profile
. We also tried to set LogLevel "System.Drawing": "Error"
but no luck.
Is there any way we can completely avoid this messages?
2
Answers
I replaced all
Image
process related code fromSystem.Drawing
library toMagickImage
and so now, I don't needlibpng
.Libpng-1.6 onwards is stricter in checking ICC profiles than previous versions. This warning is printed every time a broken png is found. This warning can be ignored and fixes will include:
A script that will change all .png files in the current directory:
More can refer to this post:
libpng warning: iCCP: known incorrect sRGB profile